Documentation ¶
Index ¶
- Variables
- func ExecuteCmd(command string, t *testing.T) (string, error, string)
- func Execute_cmd_with_global_flags(command string, searchString string, t *testing.T, expectStdErr bool) bool
- func MockedIdentityServer() *httptest.Server
- func Record_test_result(filepath string, testhook_arg string, t *testing.T)
- func RunTest(filepath string, t *testing.T)
- func SetConfigurationAndLogin() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DEVICE_HANDLER_AUTHORIZED = true
View Source
var Env1 = os.Getenv("TEST_ENVIRONMENT_1")
Valid test env1
View Source
var Env2 = os.Getenv("TEST_ENVIRONMENT_2")
Valid test env2
View Source
var Env3 = os.Getenv("TEST_ENVIRONMENT_3")
Valid test env3
View Source
var IdpHost = os.Getenv("IDP_HOST")
Auth url to provide token for request validation
View Source
var InvalidAuthUrl = "https://InvalidAuthUrl:443"
Invalid Auth Url
View Source
var InvalidHostUrl = "https://InvalidHostUrl:443"
Invalid Host Url
View Source
var Password = os.Getenv("TEST_PASSWORD")
View Source
var Password2 = os.Getenv("TEST_PASSWORD_2")
View Source
var TEST_DEVICE_CODE = "deviceCode"
View Source
var TEST_USER_CODE = "userCode"
View Source
var TEST_VERIFICATION_URL = "https://auth.testing.splunk.com/verify"
View Source
var TOKEN_HANDLER_AUTHORIZED = true
View Source
var TestSplunkCloudHost = os.Getenv("SPLUNK_CLOUD_HOST")
TestSplunkCloudHost - the url for the test api to be used
View Source
var TestTenant = os.Getenv("TENANT_ID")
TestTenant - the tenant to be used for the API
View Source
var TestTenant2 = os.Getenv("TENANT_ID_2")
TestTenant - the tenant to be used for the KC IDP flow
View Source
var Username = os.Getenv("TEST_USERNAME")
Username to be used in scloud login flow
View Source
var Username2 = os.Getenv("TEST_USERNAME_2")
Another set of User credentials to be used in scloud login flow
Functions ¶
func ExecuteCmd ¶ added in v1.7.0
func Execute_cmd_with_global_flags ¶
func Execute_cmd_with_global_flags(command string, searchString string, t *testing.T, expectStdErr bool) bool
Execute a global flag test case
func MockedIdentityServer ¶ added in v1.11.1
Create a moocked identity service and add endpoints handlers
func Record_test_result ¶
func SetConfigurationAndLogin ¶
Set config and Login
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.