run

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E2E

type E2E struct {
	AwsCfg          aws.Config
	Logger          logr.Logger
	NoColor         bool
	Paths           E2EPaths
	TestConfig      e2e.TestConfig
	TestLabelFilter string
	TestProcs       int
	Timeout         time.Duration
	TestResources   cluster.TestResources
	SkipCleanup     bool
	SkippedTests    string
}

func (*E2E) PrintResults

func (e *E2E) PrintResults(ctx context.Context, e2eResult E2EResult) error

func (*E2E) Run

func (e *E2E) Run(ctx context.Context) (E2EResult, error)

type E2EArtifacts

type E2EArtifacts struct {
	ArtifactsFolder string
	AwsCfg          aws.Config
	Logger          logr.Logger
	LogsBucket      string
	LogsBucketPath  string
}

func (*E2EArtifacts) Upload

func (e *E2EArtifacts) Upload(ctx context.Context) error

type E2ECleanup

type E2ECleanup struct {
	AwsCfg        aws.Config
	Logger        logr.Logger
	TestResources cluster.TestResources
}

func (*E2ECleanup) Run

func (e *E2ECleanup) Run(ctx context.Context) []Phase

type E2EOutput

type E2EOutput struct {
	ArtifactsBucket     string
	ArtifactsBucketPath string
	ClusterRegion       string
}

func (*E2EOutput) PrintJSON

func (e *E2EOutput) PrintJSON(e2eResult any) error

func (*E2EOutput) PrintText

func (e *E2EOutput) PrintText(e2eResult E2EResult)

type E2EPaths

type E2EPaths struct {
	CleanupLog      string
	Configs         string
	Ginkgo          string
	GinkgoOutputLog string
	Reports         string
	ReportsFileJSON string
	SetupLog        string
	// prefix (path) for logs/artifacts on S3, instance name will be appended to this path
	// ex: logs/<cluster-name>
	LogsBucketPath string
	// either nodeadm.test or ./test/e2e/suite/nodeadm
	TestsBinaryOrSource string
	// path to test config file e2e.TestConfig
	TestConfigFile string
	// path to test resources file cluster.TestResources
	TestResourcesFile string
}

type E2EReport

type E2EReport struct {
	ArtifactsFolder string
}

func (*E2EReport) Parse

func (e *E2EReport) Parse(ctx context.Context, reportPath string) (E2EResult, error)

type E2EResult

type E2EResult struct {
	ArtifactsBucketPath string       `json:"artifactsBucketPath"`
	CleanupLog          string       `json:"cleanupLog"`
	FailedTests         []FailedTest `json:"failedTests"`
	GinkgoLog           string       `json:"ginkgoLog"`
	// added as an indicator for log line to parse out to generate slack notification
	NodeadmE2eTestResultJSON bool    `json:"nodeadmE2eTestResultJSON"`
	Phases                   []Phase `json:"phases"`
	SetupLog                 string  `json:"setupLog"`
	TestFailed               int     `json:"testFailed"`
	TestRan                  int     `json:"testRan"`
	TotalTests               int     `json:"totalTests"`
}

type E2ERunner

type E2ERunner struct {
	AwsCfg          aws.Config
	Logger          logr.Logger
	NoColor         bool
	Paths           E2EPaths
	TestLabelFilter string
	TestProcs       int
	TestTimeout     string
	TestResources   cluster.TestResources
	SkippedTests    string
}

func (*E2ERunner) Run

func (e *E2ERunner) Run(ctx context.Context) []Phase

Run runs the E2E tests and returns the failure phase with the error

type FailedTest

type FailedTest struct {
	CollectorLogsBundle string `json:"collectorLogsBundle"`
	FailureMessage      string `json:"failureMessage"`
	InstanceName        string `json:"instanceName"`
	GinkgoLog           string `json:"ginkgoLog"`
	Name                string `json:"name"`
	NodeadmVersion      string `json:"nodeadmVersion"`
	SerialLog           string `json:"serialLog"`
	State               string `json:"state"`
}

type Phase

type Phase struct {
	Name           string `json:"name"`
	Error          error  `json:"-"`
	FailureMessage string `json:"failureMessage"`
	Status         string `json:"status"`
}

Jump to

Keyboard shortcuts

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