add e2e test when expansion is disabled

Also refactor some of the code that creates resizable SC
This commit is contained in:
Hemant Kumar
2019-02-07 12:05:00 -05:00
parent 7944fed44b
commit e3faa003a1
5 changed files with 78 additions and 34 deletions

View File

@@ -41,16 +41,17 @@ import (
// StorageClassTest represents parameters to be used by provisioning tests.
// Not all parameters are used by all tests.
type StorageClassTest struct {
Name string
CloudProviders []string
Provisioner string
StorageClassName string
Parameters map[string]string
DelayBinding bool
ClaimSize string
ExpectedSize string
PvCheck func(claim *v1.PersistentVolumeClaim, volume *v1.PersistentVolume)
VolumeMode *v1.PersistentVolumeMode
Name string
CloudProviders []string
Provisioner string
StorageClassName string
Parameters map[string]string
DelayBinding bool
ClaimSize string
ExpectedSize string
PvCheck func(claim *v1.PersistentVolumeClaim, volume *v1.PersistentVolume)
VolumeMode *v1.PersistentVolumeMode
AllowVolumeExpansion bool
}
type provisioningTestSuite struct {