integration

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func KonnectPersonalAccessToken(t *testing.T) string

KonnectPersonalAccessToken returns the Konnect PAT from the environment.

func KonnectTestRunID

func KonnectTestRunID(t *testing.T) string

KonnectTestRunID returns the Konnect test run ID from the environment.

func KonnectURL

func KonnectURL(t *testing.T) string

KonnectURL returns the Konnect url from the environment.

func Labels

func Labels(t *testing.T) map[string]string

func NamePrefix

func NamePrefix(t *testing.T) string

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

type APIType added in v0.2.7

type APIType byte

APIType is an enum for the type of API to use.

const (
	// GlobalAPI is the global API.
	GlobalAPI APIType = iota
	// RegionalAPI is the regional API.
	RegionalAPI APIType = iota
)

Jump to

Keyboard shortcuts

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