scenario

package
v0.0.0-...-5c79e43 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompassEnvConfig

type CompassEnvConfig struct {
	Tenant             string
	ScenariosLabelKey  string `envconfig:"default=scenarios"`
	DexSecretName      string
	DexSecretNamespace string
	RuntimeID          string
}

func (*CompassEnvConfig) GetDefaultTenant

func (s *CompassEnvConfig) GetDefaultTenant() string

GetDefaultTenant returns Compass ID of tenant that is used for tests

func (*CompassEnvConfig) GetDexSecret

func (s *CompassEnvConfig) GetDexSecret() (string, string)

GetDexSecret returns name and namespace of secret with dex account

func (*CompassEnvConfig) GetRuntimeID

func (s *CompassEnvConfig) GetRuntimeID() string

GetRuntimeID returns Compass ID of runtime that is tested

func (*CompassEnvConfig) GetScenariosLabelKey

func (s *CompassEnvConfig) GetScenariosLabelKey() string

GetScenariosLabelKey returns Compass label key for scenarios label

type E2EState

type E2EState struct {
	Domain           string
	GatewaySubdomain string
	SkipSSLVerify    bool
	AppName          string

	ServiceClassID           string
	ApiServiceInstanceName   string
	EventServiceInstanceName string
	EventSender              *testkit.EventSender
	RegistryClient           *testkit.RegistryClient
	Certificates             []tls.Certificate
}

func (*E2EState) GetAPIServiceInstanceName

func (s *E2EState) GetAPIServiceInstanceName() string

GetAPIServiceInstanceName allows to get APIServiceInstanceName so it can be shared between steps

func (*E2EState) GetCertificates

func (s *E2EState) GetCertificates() []tls.Certificate

func (*E2EState) GetEventSender

func (s *E2EState) GetEventSender() *testkit.EventSender

GetEventSender returns connected EventSender

func (*E2EState) GetEventServiceInstanceName

func (s *E2EState) GetEventServiceInstanceName() string

GetEventServiceInstanceName allows to get EventServiceInstanceName so it can be shared between steps

func (*E2EState) GetRegistryClient

func (s *E2EState) GetRegistryClient() *testkit.RegistryClient

GetRegistryClient returns connected RegistryClient

func (*E2EState) GetServiceClassID

func (s *E2EState) GetServiceClassID() string

GetServiceClassID allows to get ServiceClassID so it can be shared between steps

func (*E2EState) SetAPIServiceInstanceName

func (s *E2EState) SetAPIServiceInstanceName(serviceID string)

SetAPIServiceInstanceName allows to set APIServiceInstanceName so it can be shared between steps

func (*E2EState) SetEventServiceInstanceName

func (s *E2EState) SetEventServiceInstanceName(serviceID string)

SetEventServiceInstanceName allows to set EventServiceInstanceName so it can be shared between steps

func (*E2EState) SetGatewayClientCerts

func (s *E2EState) SetGatewayClientCerts(certs []tls.Certificate)

SetGatewayClientCerts allows to set application gateway client certificates so they can be used by later steps

func (*E2EState) SetServiceClassID

func (s *E2EState) SetServiceClassID(serviceID string)

SetServiceClassID allows to set ServiceClassID so it can be shared between steps

type Scenario

type Scenario interface {
	AddFlags(set *pflag.FlagSet)
	Steps(config *rest.Config) ([]step.Step, error)
	RunnerOpts() []step.RunnerOption
}

Scenario represents a test scenario to be run

Jump to

Keyboard shortcuts

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