tests

package
v0.0.0-...-997eeb3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MPL-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package tests provides the Sidero tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cluster talos.Cluster, vmSet *vm.Set, capiManager *capi.Manager, options Options) (ok bool)

Run all the tests.

Types

type Options

type Options struct {
	KernelURL, InitrdURL string
	InstallerImage       string

	RegistryMirrors []string
}

Options for the test.

type TestFunc

type TestFunc func(t *testing.T)

TestFunc is a testing function prototype.

func TestEnvironmentDefault

func TestEnvironmentDefault(ctx context.Context, metalClient client.Client, cluster talos.Cluster, kernelURL, initrdURL string) TestFunc

TestEnvironmentDefault verifies default environment creation.

func TestManagementCluster

func TestManagementCluster(ctx context.Context, metalClient client.Client, cluster talos.Cluster, vmSet *vm.Set, capiManager *capi.Manager) TestFunc

TestManagementCluster deploys the management cluster via CAPI.

nolint: gocognit

func TestServerClassDefault

func TestServerClassDefault(ctx context.Context, metalClient client.Client, vmSet *vm.Set) TestFunc

TestServerClassDefault verifies server class creation.

func TestServerMgmtAPI

func TestServerMgmtAPI(ctx context.Context, metalClient client.Client, vmSet *vm.Set) TestFunc

TestServerMgmtAPI patches all the servers for the management API.

func TestServerPatch

func TestServerPatch(ctx context.Context, metalClient client.Client, talosInstaller string, registryMirrors []string) TestFunc

TestServerPatch patches all the servers for the config.

func TestServerRegistration

func TestServerRegistration(ctx context.Context, metalClient client.Client, vmSet *vm.Set) TestFunc

TestServerRegistration verifies that all the servers got registered.

func TestServersReady

func TestServersReady(ctx context.Context, metalClient client.Client) TestFunc

TestServersReady waits for all the servers to be 'Ready'.

Jump to

Keyboard shortcuts

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