Documentation ¶
Index ¶
- Constants
- func AddApiGatewayCRIntoContext(ctx context.Context, apiGateway *v1alpha1.APIGateway) context.Context
- func AddCreatedTestObjectInContext(ctx context.Context, object client.Object) context.Context
- func GetApiGatewayCRsFromContext(ctx context.Context) ([]*v1alpha1.APIGateway, bool)
- func GetCreatedTestObjectsFromContext(ctx context.Context) ([]client.Object, bool)
- func GetK8sClientFromContext(ctx context.Context) (client.Client, error)
- func GetRetryOpts() []retry.Option
- func GetTestingFromContext(ctx context.Context) (*testing.T, error)
- func SetK8sClientInContext(ctx context.Context, k8sClient client.Client) context.Context
- func SetTestingInContext(ctx context.Context, testing *testing.T) context.Context
- type Config
- type Testsuite
- type TestsuiteFactory
Constants ¶
View Source
const ( AnyToken = "any" AuthorizationHeaderName = "Authorization" AuthorizationHeaderPrefix = "Bearer" OpaqueHeaderName = "opaque-token" )
Variables ¶
This section is empty.
Functions ¶
func GetApiGatewayCRsFromContext ¶
func GetApiGatewayCRsFromContext(ctx context.Context) ([]*v1alpha1.APIGateway, bool)
func GetK8sClientFromContext ¶
func GetRetryOpts ¶
func GetRetryOpts() []retry.Option
func SetK8sClientInContext ¶
Types ¶
type Config ¶
type Config struct { CustomDomain string `envconfig:"TEST_CUSTOM_DOMAIN,default=test.domain.kyma"` OIDCConfigUrl string `envconfig:"TEST_OIDC_CONFIG_URL,default=empty"` IssuerUrl string `envconfig:"-"` ClientID string `envconfig:"TEST_CLIENT_ID,default=empty"` ClientSecret string `envconfig:"TEST_CLIENT_SECRET,default=empty"` ReqTimeout uint `envconfig:"TEST_REQUEST_TIMEOUT,default=240"` ReqDelay uint `envconfig:"TEST_REQUEST_DELAY,default=5"` Domain string `envconfig:"TEST_DOMAIN,default=local.kyma.dev"` GatewayName string `envconfig:"TEST_GATEWAY_NAME,default=kyma-gateway"` GatewayNamespace string `envconfig:"TEST_GATEWAY_NAMESPACE,default=kyma-system"` TestConcurrency int `envconfig:"TEST_CONCURRENCY,default=4"` IstioNamespace string `envconfig:"TEST_ISTIO_NAMESPACE,default=istio-system"` IsGardener bool `envconfig:"IS_GARDENER,default=false"` }
type Testsuite ¶
type TestsuiteFactory ¶
Click to show internal directories.
Click to hide internal directories.