utils

package
v1.0.0-beta.3rc Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const NativeAppRedirectURI = "https://login.splunkbeta.com"

PKCE

Variables

View Source
var ExpiredAuthenticationToken = os.Getenv("EXPIRED_BEARER_TOKEN")

ExpiredAuthenticationToken - to test authentication retries

View Source
var IdpHost = os.Getenv("IDP_HOST")
View Source
var Password = os.Getenv("TEST_PASSWORD")
View Source
var PkceClientID = os.Getenv("REFRESH_TOKEN_CLIENT_ID")
View Source
var StubbyTestCollection = "testcollection0"

StubbyTestCollection - A collection for stubby testing

View Source
var TenantCreationOn = os.Getenv("TENANT_CREATION") == "1"

TenantCreationOn specifies whether tenants should be created on the fly for identity service /tenant CRUD testing

View Source
var TestAuthenticationToken = os.Getenv("BEARER_TOKEN")

TestAuthenticationToken - the authentication that gives permission to make requests against the api

View Source
var TestCollection = fmt.Sprintf("gocollection%d", TimeSec)

TestCollection - A collection for integration testing

View Source
var TestInvalidTestTenant = "INVALID_TENANT_ID"

TestInvalidTestTenant - the invalid tenant ID that denies permission to make requests against the api

View Source
var TestMLTenant = os.Getenv("ML_TENANT_ID")

TestTenant - the tenant to be used for the API

View Source
var TestModule = fmt.Sprintf("gomod%d", TimeSec)

TestModule - A namespace for integration testing

View Source
var TestModule2 = fmt.Sprintf("gomod2%d", TimeSec)

TestModule 2- A namespace for integration testing

View Source
var TestProvisionerTenant = os.Getenv("TENANT_PROVISIONER_ID")

TestTenant - the tenant to be used for the API

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 TestTimeOut = time.Second * 5

TestTimeOut - the timeout to be used for requests to the api

View Source
var TestUsername = os.Getenv("BACKEND_CLIENT_ID")

TestUsername - the user running tests on behalf of

View Source
var TimeSec = time.Now().Unix()

TimeSec denotes the current timestamp

View Source
var Username = os.Getenv("TEST_USERNAME")

Functions

func MakeSdkClient

func MakeSdkClient(tr idp.TokenRetriever, tenant string) (*sdk.Client, error)

Get an client without the testing interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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