test_engine

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 ExecuteCmd(command string, t *testing.T) (string, error, string)

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

func MockedIdentityServer() *httptest.Server

Create a moocked identity service and add endpoints handlers

func Record_test_result

func Record_test_result(filepath string, testhook_arg string, t *testing.T)

func RunTest

func RunTest(filepath string, t *testing.T)

func SetConfigurationAndLogin

func SetConfigurationAndLogin() (string, error)

Set config and Login

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL