Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CSITestDrivers = map[string]func() testsuites.TestDriver{ "hostpath": driver.InitHostPathCSIDriver, "nfs": driver.InitNFSDriver, }
View Source
var CSITestSuites = []func() testsuites.TestSuite{ testsuites.InitVolumesTestSuite, testsuites.InitVolumeIOTestSuite, testsuites.InitVolumeModeTestSuite, testsuites.InitSubPathTestSuite, testsuites.InitProvisioningTestSuite, testsuites.InitSnapshottableTestSuite, }
List of testSuites to be executed
Functions ¶
This section is empty.
Types ¶
type DriverDefinition ¶
type DriverDefinition struct { // DriverInfo is the static information that the storage testsuite // expects from a test driver. See test/e2e/storage/testsuites/testdriver.go // for details. The only field with a non-zero default is the list of // supported file systems (SupportedFsType): it is set so that tests using // the default file system are enabled. DriverInfo testsuites.DriverInfo // ShortName is used to create unique names for test cases and test resources. ShortName string // StorageClass must be set to enable dynamic provisioning tests. // The default is to not run those tests. StorageClass struct { // FromName set to true enables the usage of a storage // class with DriverInfo.Name as provisioner and no // parameters. FromName bool // FromFile is used only when FromName is false. It // loads a storage class from the given .yaml or .json // file. File names are resolved by the // framework.testfiles package, which typically means // that they can be absolute or relative to the test // suite's --repo-root parameter. // // This can be used when the storage class is meant to have // additional parameters. FromFile string } // SnapshotClass must be set to enable snapshotting tests. // The default is to not run those tests. SnapshotClass struct { // FromName set to true enables the usage of a // snapshotter class with DriverInfo.Name as provisioner. FromName bool } // ClaimSize defines the desired size of dynamically // provisioned volumes. Default is "5GiB". ClaimSize string // ClientNodeName selects a specific node for scheduling test pods. // Can be left empty. Most drivers should not need this and instead // use topology to ensure that pods land on the right node(s). ClientNodeName string }
DriverDefinition needs to be filled in via a .yaml or .json file. It's methods then implement the TestDriver interface, using nothing but the information in this struct.
func (*DriverDefinition) DeepCopyObject ¶
func (d *DriverDefinition) DeepCopyObject() runtime.Object
func (*DriverDefinition) GetObjectKind ¶
func (d *DriverDefinition) GetObjectKind() schema.ObjectKind
Click to show internal directories.
Click to hide internal directories.