Documentation ¶
Index ¶
- func RunTestSuite(f *framework.Framework, config framework.VolumeTestConfig, ...)
- func SubpathTestPod(f *framework.Framework, subpath, volumeType string, source *v1.VolumeSource, ...) *v1.Pod
- func TestBasicSubpath(f *framework.Framework, contents string, pod *v1.Pod)
- func TestBasicSubpathFile(f *framework.Framework, contents string, pod *v1.Pod, filepath string)
- func TestDynamicProvisioning(t StorageClassTest, client clientset.Interface, ...) *v1.PersistentVolume
- type StorageClassTest
- type TestResource
- type TestSuite
- type TestSuiteInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestSuite ¶
func RunTestSuite(f *framework.Framework, config framework.VolumeTestConfig, driver drivers.TestDriver, tsInits []func() TestSuite, tunePatternFunc func([]testpatterns.TestPattern) []testpatterns.TestPattern)
RunTestSuite runs all testpatterns of all testSuites for a driver
func SubpathTestPod ¶
func SubpathTestPod(f *framework.Framework, subpath, volumeType string, source *v1.VolumeSource, privilegedSecurityContext bool) *v1.Pod
SubpathTestPod returns a pod spec for subpath tests
func TestBasicSubpath ¶
TestBasicSubpath runs basic subpath test
func TestBasicSubpathFile ¶
TestBasicSubpathFile runs basic subpath file test
func TestDynamicProvisioning ¶ added in v1.13.1
func TestDynamicProvisioning(t StorageClassTest, client clientset.Interface, claim *v1.PersistentVolumeClaim, class *storage.StorageClass) *v1.PersistentVolume
TestDynamicProvisioning tests dynamic provisioning with specified StorageClassTest and storageClass
Types ¶
type StorageClassTest ¶ added in v1.13.1
type StorageClassTest struct { Name string CloudProviders []string Provisioner string StorageClassName string Parameters map[string]string DelayBinding bool ClaimSize string ExpectedSize string PvCheck func(volume *v1.PersistentVolume) error NodeName string SkipWriteReadCheck bool VolumeMode *v1.PersistentVolumeMode }
StorageClassTest represents parameters to be used by provisioning tests
type TestResource ¶
type TestResource interface {
// contains filtered or unexported methods
}
TestResource represents an interface for resources that is used by TestSuite
type TestSuite ¶
type TestSuite interface {
// contains filtered or unexported methods
}
TestSuite represents an interface for a set of tests which works with TestDriver
func InitProvisioningTestSuite ¶ added in v1.13.1
func InitProvisioningTestSuite() TestSuite
InitProvisioningTestSuite returns provisioningTestSuite that implements TestSuite interface
func InitSubPathTestSuite ¶
func InitSubPathTestSuite() TestSuite
InitSubPathTestSuite returns subPathTestSuite that implements TestSuite interface
func InitVolumeIOTestSuite ¶
func InitVolumeIOTestSuite() TestSuite
InitVolumeIOTestSuite returns volumeIOTestSuite that implements TestSuite interface
func InitVolumeModeTestSuite ¶
func InitVolumeModeTestSuite() TestSuite
InitVolumeModeTestSuite returns volumeModeTestSuite that implements TestSuite interface
func InitVolumesTestSuite ¶
func InitVolumesTestSuite() TestSuite
InitVolumesTestSuite returns volumesTestSuite that implements TestSuite interface
type TestSuiteInfo ¶
type TestSuiteInfo struct {
// contains filtered or unexported fields
}
TestSuiteInfo represents a set of parameters for TestSuite