Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadGlobalConfigFile ¶
func ReadGlobalConfigFile()
Types ¶
type E2EConfig ¶
type E2EConfig struct {
Setup Setup `yaml:"setup"`
Cleanup Cleanup `yaml:"cleanup"`
Trigger Trigger `yaml:"trigger"`
Verify Verify `yaml:"verify"`
}
E2EConfig corresponds to configuration file e2e.yaml.
type GlobalE2EConfig ¶
GlobalE2EConfig stores E2EConfig which can be used globally.
var GlobalConfig GlobalE2EConfig
type KindExposePort ¶ added in v1.1.0
type KindSetup ¶ added in v1.1.0
type KindSetup struct {
ImportImages []string `yaml:"import-images"`
ExposePorts []KindExposePort `yaml:"expose-ports"`
}
type ReusingCases ¶ added in v1.1.0
type ReusingCases struct {
Cases []VerifyCase `yaml:"cases"`
}
type Setup ¶
type Setup struct {
Env string `yaml:"env"`
File string `yaml:"file"`
Kubeconfig string `yaml:"kubeconfig"`
Steps []Step `yaml:"steps"`
Timeout any `yaml:"timeout"`
InitSystemEnvironment string `yaml:"init-system-environment"`
Kind KindSetup `yaml:"kind"`
// contains filtered or unexported fields
}
func (*Setup) GetKubeconfig ¶ added in v1.3.0
func (*Setup) GetTimeout ¶ added in v1.1.0
type Verify ¶
type Verify struct {
RetryStrategy VerifyRetryStrategy `yaml:"retry"`
Cases []VerifyCase `yaml:"cases"`
FailFast bool `yaml:"fail-fast"`
Concurrency bool `yaml:"concurrency"`
}
type VerifyCase ¶
type VerifyCase struct {
Name string `yaml:"name"`
Query string `yaml:"query"`
Actual string `yaml:"actual"`
Expected string `yaml:"expected"`
Includes []string `yaml:"includes"`
}
func (*VerifyCase) GetActual ¶
func (v *VerifyCase) GetActual() string
GetActual resolves the absolute file path of the actual data file.
func (*VerifyCase) GetExpected ¶
func (v *VerifyCase) GetExpected() string
GetExpected resolves the absolute file path of the expected data file.
type VerifyRetryStrategy ¶
Click to show internal directories.
Click to hide internal directories.