scenarios

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

test package includes baremetal test storage class definition for e2e tests

and definition of e2e test suites with ginkgo library
main file for e2e tests is in cmd/tests directory
we can run defined test suites with following command:
go test cmd/tests/baremetal_e2e.go -ginkgo.v -ginkgo.progress --kubeconfig=<kubeconfig>

Index

Constants

View Source
const (
	ControllerName = "csi-baremetal-controller"
	ContextTimeout = 20 * time.Minute
)

Variables

View Source
var (
	BaremetalDriver = InitBaremetalDriver

	PersistentVolumeClaimSize = "100Mi"
)

Functions

func CreateStressTestStatefulSet

func CreateStressTestStatefulSet(ns string, amountOfReplicas int32, volumesPerReplica int, scName string,
	claimSize string) *appsv1.StatefulSet

CreateStressTestStatefulSet creates StatefulSet manifest for test purposes Receives namespace as ns, amount of SS replicas, amount of PVCs per replica, name of StorageClass that serves PVCs, size of PVCs. Returns instance of appsv1.StatefulSet

func DefineControllerNodeFailTestSuite

func DefineControllerNodeFailTestSuite(driver testsuites.TestDriver)

func DefineDifferentSCTestSuite

func DefineDifferentSCTestSuite(driver *baremetalDriver)

DefineDifferentSCTestSuite defines different SCs tests

func DefineDriveHealthChangeTestSuite

func DefineDriveHealthChangeTestSuite(driver *baremetalDriver)

DefineDriveHealthChangeTestSuite defines custom csi-baremetal e2e tests

func DefineLabeledDeployTestSuite

func DefineLabeledDeployTestSuite()

DefineLabeledDeployTestSuite defines label tests

func DefineNodeRebootTestSuite

func DefineNodeRebootTestSuite(driver *baremetalDriver)

DefineNodeRebootTestSuite defines custom csi-baremetal node reboot test

func DefineSchedulerTestSuite

func DefineSchedulerTestSuite(driver *baremetalDriver)

DefineSchedulerTestSuite defines tests for scheduler extender

func DefineStressTestSuite

func DefineStressTestSuite(driver *baremetalDriver)

DefineStressTestSuite defines custom csi-baremetal stress test

func InitBaremetalDriver

func InitBaremetalDriver() *baremetalDriver

func PrepareCSI

func PrepareCSI(d *baremetalDriver, f *framework.Framework, deployConfig bool) (*testsuites.PerTestConfig, func())

PrepareCSI deploys CSI and enables logging for containers

Types

This section is empty.

Jump to

Keyboard shortcuts

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