Skip to content

Commit 9928927

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored andcommitted
test: fix e2e test
fix
1 parent e4985f9 commit 9928927

File tree

1 file changed

+4
-37
lines changed

1 file changed

+4
-37
lines changed

test/e2e/dynamic_provisioning_test.go

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -92,40 +92,6 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
9292
test.Run(ctx, cs, ns)
9393
})
9494

95-
ginkgo.It("should create a volume on demand with storage account having shared access key disabled", func(ctx ginkgo.SpecContext) {
96-
pods := []testsuites.PodDetails{
97-
{
98-
Cmd: "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data",
99-
Volumes: []testsuites.VolumeDetails{
100-
{
101-
ClaimSize: "10Gi",
102-
MountOptions: []string{
103-
"-o allow_other",
104-
"--file-cache-timeout-in-seconds=120",
105-
"--cancel-list-on-mount-seconds=0",
106-
},
107-
VolumeMount: testsuites.VolumeMountDetails{
108-
NameGenerate: "test-volume-",
109-
MountPathGenerate: "/mnt/test-",
110-
},
111-
},
112-
},
113-
},
114-
}
115-
test := testsuites.DynamicallyProvisionedCmdVolumeTest{
116-
CSIDriver: testDriver,
117-
Pods: pods,
118-
StorageClassParameters: map[string]string{
119-
"skuName": "Standard_GRS",
120-
"storeAccountKey": "false",
121-
"allowSharedKeyAccess": "false",
122-
"AzureStorageAuthType": "msi",
123-
"AzureStorageIdentityClientID": "dummy",
124-
},
125-
}
126-
test.Run(ctx, cs, ns)
127-
})
128-
12995
ginkgo.It("should create a volume on demand with mount options", func(ctx ginkgo.SpecContext) {
13096
pods := []testsuites.PodDetails{
13197
{
@@ -619,9 +585,10 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
619585
CSIDriver: testDriver,
620586
Pods: pods,
621587
StorageClassParameters: map[string]string{
622-
"skuName": "Premium_LRS",
623-
"protocol": "nfs",
624-
"mountPermissions": "0",
588+
"skuName": "Premium_LRS",
589+
"protocol": "nfs",
590+
"mountPermissions": "0",
591+
"allowSharedKeyAccess": "false",
625592
},
626593
}
627594
test.Run(ctx, cs, ns)

0 commit comments

Comments
 (0)