utils

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: 10 Imported by: 2

Documentation

Index

Constants

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

PKCE

Variables

View Source
var ExpiredAuthenticationToken string

ExpiredAuthenticationToken - to test authentication retries

View Source
var IdpHost string
View Source
var LongTestTimeout = time.Second * 600

TestTimeOut - the timeout to be used for requests to the api in search tests

View Source
var Password string
View Source
var PkceClientID string
View Source
var RunSuffix = time.Now().Unix()

RunSuffix - run instance identifier suffix based on timestamp

View Source
var StubbyTestCollection = "testcollection0"

StubbyTestCollection - A collection for stubby testing

View Source
var TenantCreationOn bool

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

View Source
var TestAuthenticationToken string

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

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

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 string

TestMLTenant - the tenant to be used for the API

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

TestModule - A namespace for integration testing

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

TestModule 2- A namespace for integration testing

View Source
var TestProvisionerTenant string

TestProvisionerTenant - the tenant to be used for the API

View Source
var TestSplunkCloudHost string

TestSplunkCloudHost - the url for the test api to be used

View Source
var TestTenant string

TestTenant - the tenant to be used for the API

View Source
var TestTimeOut = time.Second * 30

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

View Source
var TestUsername string

TestUsername - the user running tests on behalf of

View Source
var Username string

Functions

func GetFilename added in v1.5.0

func GetFilename() string

GetFilename uses reflection to get current filename

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