runner

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Results

type Results struct {
	Options   *types.Options
	Scenarios []ScenarioResult
}

func MergeResults

func MergeResults(previous *ResultsFile, current *Results) *Results

func (*Results) HasFailures

func (r *Results) HasFailures() bool

func (*Results) PrintJUnitDetails

func (r *Results) PrintJUnitDetails()

func (*Results) PrintSummary

func (r *Results) PrintSummary()

func (*Results) WriteToFile

func (r *Results) WriteToFile(filename string) error

type ResultsFile

type ResultsFile struct {
	Configuration TestConfiguration `json:"configuration"`
	Results       []ScenarioResult  `json:"results"`
}

func LoadResultsFile

func LoadResultsFile(filename string) (*ResultsFile, error)

type ScenarioResult

type ScenarioResult struct {
	CloudProvider     kubermaticv1.CloudProvider   `json:"cloudProvider"`
	OperatingSystem   kubermaticv1.OperatingSystem `json:"operatingSystem"`
	ContainerRuntime  string                       `json:"containerRuntime"`
	KubernetesRelease string                       `json:"kubernetesRelease"`
	KubernetesVersion semver.Semver                `json:"kubernetesVersion"`
	KubermaticVersion string                       `json:"kubermaticVersion"`
	Duration          time.Duration                `json:"-"`
	DurationSeconds   int                          `json:"durationInSeconds"`
	ClusterName       string                       `json:"clusterName"`
	Status            ScenarioStatus               `json:"status"`
	Message           string                       `json:"message"`
	// contains filtered or unexported fields
}

func (*ScenarioResult) BetterThan

func (sr *ScenarioResult) BetterThan(other ScenarioResult) bool

func (*ScenarioResult) Equals

func (sr *ScenarioResult) Equals(other ScenarioResult) bool

func (*ScenarioResult) MatchesScenario

func (sr *ScenarioResult) MatchesScenario(scenario scenarios.Scenario) bool

func (*ScenarioResult) PrintJUnitDetails

func (r *ScenarioResult) PrintJUnitDetails()

type ScenarioStatus

type ScenarioStatus string
const (
	ScenarioPassed  ScenarioStatus = "passed"
	ScenarioFailed  ScenarioStatus = "failed"
	ScenarioSkipped ScenarioStatus = "skipped"
)

type TestConfiguration

type TestConfiguration struct {
	OSMEnabled          bool     `json:"osmEnabled"`
	DualstackEnabled    bool     `json:"dualstackEnabled"`
	KonnectivityEnabled bool     `json:"konnectivityEnabled"`
	TestClusterUpdate   bool     `json:"testClusterUpdate"`
	Tests               []string `json:"tests"`
}

type TestRunner

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

func NewKubeRunner

func NewKubeRunner(opts *ctypes.Options, log *zap.SugaredLogger, versions kubermatic.Versions) *TestRunner

func (*TestRunner) Run

func (r *TestRunner) Run(ctx context.Context, testScenarios []scenarios.Scenario) (*Results, error)

func (*TestRunner) Setup

func (r *TestRunner) Setup(ctx context.Context) error

Jump to

Keyboard shortcuts

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