utils

package
v1.12.0-beta.8rc Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 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 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 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 TestRegion string

Region which correlates to the tenant, used to formulate tenant scoped hostnames

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