konnect

package
v3.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientCertificate

func CreateClientCertificate(ctx context.Context, t *testing.T, cpID string) (certPEM string, keyPEM string)

CreateClientCertificate creates a TLS client certificate and POSTs it to Konnect Control Plane configuration API so that KIC can use the certificates to authenticate against Konnect Admin API.

func CreateKonnectAdminAPIClient

func CreateKonnectAdminAPIClient(t *testing.T, cpID, cert, key string) *adminapi.KonnectClient

CreateKonnectAdminAPIClient creates an *kong.Client that will communicate with Konnect Control Plane's Admin API.

func CreateTestControlPlane

func CreateTestControlPlane(ctx context.Context, t *testing.T) string

CreateTestControlPlane creates a control plane to be used in tests. It returns the created control plane's ID. It also sets up a cleanup function for it to be deleted.

func SkipIfMissingRequiredKonnectEnvVariables

func SkipIfMissingRequiredKonnectEnvVariables(t *testing.T)

SkipIfMissingRequiredKonnectEnvVariables skips the test if the required Konnect environment variables are missing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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