testkit

package
v0.0.0-...-face4fc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForFunction

func WaitForFunction(interval time.Duration, timeout time.Duration, conditionalFunc func() bool) error

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(t *testing.T, fields map[string]string) *Logger

func (*Logger) AddField

func (l *Logger) AddField(key, val string)

func (Logger) ContextMsg

func (l Logger) ContextMsg(msg string) string

func (Logger) Log

func (l Logger) Log(msg string)

func (Logger) NewExtended

func (l Logger) NewExtended(fields map[string]string) *Logger

type TestConfig

type TestConfig struct {
	Tenant    string
	RuntimeId string

	Runtime struct {
		EventsURL  string `envconfig:"default=https://gateway.kyma.local"`
		ConsoleURL string `envconfig:"default=https://console.kyma.local"`
	}

	DirectorURL                    string        `envconfig:"default=https://compass-director.compass-system.svc.cluster.local:3000"`
	CompassNamespace               string        `envconfig:"default=compass-system"`
	IntegrationNamespace           string        `envconfig:"default=kyma-integration"`
	TestTargetNamespace            string        `envconfig:"default=compass-runtime-agent-test"`
	TestPodAppLabel                string        `envconfig:"default=compass-runtime-agent-tests"`
	MockServicePort                int32         `envconfig:"default=8080"`
	MockServiceName                string        `envconfig:"default=compass-runtime-agent-tests-mock"`
	ConfigApplicationWaitTime      time.Duration `envconfig:"default=40s"`
	ProxyInvalidationWaitTime      time.Duration `envconfig:"default=150s"`
	GraphQLLog                     bool          `envconfig:"default=false"`
	ScenarioLabel                  string        `envconfig:"default=COMPASS_RUNTIME_AGENT_TESTS"`
	ApplicationInstallationTimeout time.Duration `envconfig:"default=180s"`

	DexSecretNamespace      string        `envconfig:"default=kyma-system"`
	DexSecretName           string        `envconfig:"default=admin-user"`
	IdProviderDomain        string        `envconfig:"default=kyma.local"`
	IdProviderClientTimeout time.Duration `envconfig:"default=10s"`
}

func ReadConfig

func ReadConfig() (TestConfig, error)

Directories

Path Synopsis
Package secrets contains components for accessing/modifying client secrets
Package secrets contains components for accessing/modifying client secrets

Jump to

Keyboard shortcuts

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