Documentation ¶
Index ¶
- func CreateClientCertificate(ctx context.Context, t *testing.T, cpID string) (certPEM string, keyPEM string)
- func CreateKonnectAdminAPIClient(t *testing.T, cpID, cert, key string) *adminapi.KonnectClient
- func CreateTestControlPlane(ctx context.Context, t *testing.T) string
- func SkipIfMissingRequiredKonnectEnvVariables(t *testing.T)
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 ¶
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 ¶
SkipIfMissingRequiredKonnectEnvVariables skips the test if the required Konnect environment variables are missing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.