Documentation
¶
Index ¶
- Constants
- func KonnectPersonalAccessToken(t *testing.T) string
- func KonnectTestRunID(t *testing.T) string
- func KonnectURL(t *testing.T) string
- func Labels(t *testing.T) map[string]string
- func NamePrefix(t *testing.T) string
- func SDK(t *testing.T, apiType APIType, opts ...func(*sdkkonnectgo.SDK)) *sdkkonnectgo.SDK
- type APIType
Constants ¶
View Source
const (
// KonnectTestRunIDEnv is the environment variable name for the Konnect test run ID.
KonnectTestRunIDEnv = "KONNECT_TEST_RUN_ID"
)
Variables ¶
This section is empty.
Functions ¶
func KonnectPersonalAccessToken ¶
KonnectPersonalAccessToken returns the Konnect PAT from the environment.
func KonnectTestRunID ¶
KonnectTestRunID returns the Konnect test run ID from the environment.
func KonnectURL ¶
KonnectURL returns the Konnect url from the environment.
func NamePrefix ¶
NamePrefix returns a prefix for the test name.
func SDK ¶
func SDK(t *testing.T, apiType APIType, opts ...func(*sdkkonnectgo.SDK)) *sdkkonnectgo.SDK
SDK returns a new SDK instance. It requires the KONNECT_API_PAT and KONNECT_API_URL environment variables to be set.
Types ¶
Click to show internal directories.
Click to hide internal directories.