testkit

package
v0.0.0-...-980806f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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 DirectorClientConfig

type DirectorClientConfig struct {
	URL                        string `envconfig:"default=http://compass-director.compass-system.svc.cluster.local:3000/graphql"`
	Namespace                  string `envconfig:"default=compass-system"`
	OauthCredentialsSecretName string `envconfig:"default=compass-provisioner-credentials"`
}

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
	DirectorClient DirectorClientConfig
	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