Fix glusterfs e2e not using correct storageclass

This commit is contained in:
Matthew Wong
2019-02-12 10:18:18 -05:00
parent 836db5c90e
commit 6d73de1154
2 changed files with 2 additions and 0 deletions

View File

@@ -227,6 +227,7 @@ func testProvisioning(input *provisioningTestInput) {
func TestDynamicProvisioning(t StorageClassTest, client clientset.Interface, claim *v1.PersistentVolumeClaim, class *storage.StorageClass) *v1.PersistentVolume {
var err error
if class != nil {
Expect(*claim.Spec.StorageClassName).To(Equal(class.Name))
By("creating a StorageClass " + class.Name)
_, err = client.StorageV1().StorageClasses().Create(class)
// The "should provision storage with snapshot data source" test already has created the class.