framework

package
v0.4.8-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeShare

func ChangeShare(t *TestArgs)

func CleanupTestNamespace

func CleanupTestNamespace(t *TestArgs)

func CreateCSIDriverPlugin

func CreateCSIDriverPlugin(t *TestArgs)

TODO presumably this can go away once we have an OLM based deploy that is also integrated with our CI so that repo images built from PRs are used when setting up this driver's daemonset

func CreateShare

func CreateShare(t *TestArgs)

func CreateShareRelatedRBAC

func CreateShareRelatedRBAC(t *TestArgs)

func CreateTestNamespace

func CreateTestNamespace(t *TestArgs) string

func CreateTestPod

func CreateTestPod(t *TestArgs)

func DeleteShare

func DeleteShare(t *TestArgs)

func DeleteShareRelatedRBAC

func DeleteShareRelatedRBAC(t *TestArgs)

func ExecPod

func ExecPod(t *TestArgs)

func LaunchDriver

func LaunchDriver(t *TestArgs)

TODO presumably this can go away once we have an OLM based deploy that is also integrated with our CI so that repo images built from PRs are used when setting up this driver's daemonset

func LogAndDebugTestError

func LogAndDebugTestError(t *TestArgs)

LogAndDebugTestError is not intended as a replacement for the use of t.Fatalf through this e2e suite, but when errors occur that could benefit from a dump of the CSI Driver pod logs, use this method instead of simply calling t.Fatalf

func RestartDaemonSet

func RestartDaemonSet(t *TestArgs)

func SetupClients

func SetupClients(t *TestArgs)

func WaitForDaemonSet

func WaitForDaemonSet(t *TestArgs) error

Types

type TestArgs

type TestArgs struct {
	T                   *testing.T
	Name                string
	SecondName          string
	SearchString        string
	MessageString       string
	ShareToDelete       string
	SearchStringMissing bool
	SecondShare         bool
	SecondShareSubDir   bool
	DaemonSetUp         bool
	TestPodUp           bool
	TestDuration        time.Duration
}

Jump to

Keyboard shortcuts

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