testkit

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Azure = "Azure"
	GCP   = "GCP"
)

Variables

This section is empty.

Functions

func CreateGardenerProvisioningInput

func CreateGardenerProvisioningInput(config *TestConfig, version, provider string) (gqlschema.ProvisionRuntimeInput, error)

func CreateKymaConfigInput

func CreateKymaConfigInput(version string) (*gqlschema.KymaConfigInput, error)

func GetAndParseInstallerCR

func GetAndParseInstallerCR(installationCRURL string) ([]*gqlschema.ComponentConfigurationInput, error)

func WaitForFunction

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

Types

type GCPConfig

type GCPConfig struct {
	// Credentials is base64 encoded service account key
	Credentials string `envconfig:"default=''"`
	ProjectName string `envconfig:"default=''"`
}

GCPConfig specifies config for test on GCP

type GardenerConfig

type GardenerConfig struct {
	Providers   []string `envconfig:"default=Azure"`
	AzureSecret string   `envconfig:"default=''"`
	GCPSecret   string   `envconfig:"default=''"`
}

type KymaConfig

type KymaConfig struct {
	Version string `envconfig:"default=1.11.0"`
	// PreUpgradeVersion is used in upgrade test
	PreUpgradeVersion string `envconfig:"default=1.10.0"`
}

type TestConfig

type TestConfig struct {
	InternalProvisionerURL string `envconfig:"default=http://localhost:3000/graphql"`
	Tenant                 string `envconfig:"default=3e64ebae-38b5-46a0-b1ed-9ccee153a0ae"`

	Gardener GardenerConfig

	// Currently Provisioner do not support standalone GCP
	GCP GCPConfig

	Kyma KymaConfig

	QueryLogging bool `envconfig:"default=false"`
}

func ReadConfig

func ReadConfig() (TestConfig, error)

func (TestConfig) String

func (c TestConfig) String() string

Directories

Path Synopsis
compass

Jump to

Keyboard shortcuts

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