e2e

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTests

func RunTests(conf instanceRunConf, inventoryCatalogue map[string]*hardwareCatalogue) (testInstanceID string, testCommandResult *testCommandResult, err error)

func RunTestsInParallel

func RunTestsInParallel(conf ParallelRunConf) error

RunTestsInParallel Run Tests in parallel by spawning multiple admin machines.

Types

type E2EIPManager added in v0.6.1

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

type E2ESession

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

func (*E2ESession) TestGithubClient added in v0.9.2

func (e *E2ESession) TestGithubClient(ctx context.Context, githubToken string, owner string, repository string, personal bool) (git.ProviderClient, error)

type Ec2TestRunner added in v0.9.2

type Ec2TestRunner struct {
	AmiID    string `yaml:"amiId"`
	SubnetID string `yaml:"subnetId"`
	// contains filtered or unexported fields
}

type ParallelRunConf

type ParallelRunConf struct {
	TestInstanceConfigFile string
	MaxInstances           int
	MaxConcurrentTests     int
	InstanceProfileName    string
	StorageBucket          string
	JobId                  string
	Regex                  string
	TestsToSkip            []string
	BundlesOverride        bool
	CleanupVms             bool
	TestReportFolder       string
	BranchName             string
	BaremetalBranchName    string
	Logger                 logr.Logger
}

type TestInfraConfig added in v0.9.2

type TestInfraConfig struct {
	Ec2TestRunner     `yaml:"ec2,omitempty"`
	VSphereTestRunner `yaml:"vSphere,omitempty"`
}

func NewTestRunnerConfigFromFile added in v0.9.2

func NewTestRunnerConfigFromFile(logger logr.Logger, configFile string) (*TestInfraConfig, error)

type TestRunner added in v0.9.2

type TestRunner interface {
	// contains filtered or unexported methods
}

type TestRunnerType added in v0.9.2

type TestRunnerType string
const (
	Ec2TestRunnerType     TestRunnerType = "ec2"
	VSphereTestRunnerType TestRunnerType = "vSphere"
)

type TinkerbellTest added in v0.17.0

type TinkerbellTest struct {
	Name  string `yaml:"name"`
	Count int    `yaml:"count"`
}

TinkerbellTest maps each Tinkbell test with the hardware count needed for the test.

type VSphereTestRunner added in v0.9.2

type VSphereTestRunner struct {
	ActivationId string

	Url          string `yaml:"url"`
	Insecure     bool   `yaml:"insecure"`
	Library      string `yaml:"library"`
	Template     string `yaml:"template"`
	Datacenter   string `yaml:"datacenter"`
	Datastore    string `yaml:"datastore"`
	ResourcePool string `yaml:"resourcePool"`
	Network      string `yaml:"network"`
	Folder       string `yaml:"folder"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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