Skip to content

Commit b982517

Browse files
specialforestumagnus
authored andcommitted
Add basic test
1 parent abd7de3 commit b982517

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

test/e2e/dynamic_provisioning_test.go

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

93+
ginkgo.It("should create a volume on demand with storage account having shared access key disabled", func(ctx ginkgo.SpecContext) {
94+
pods := []testsuites.PodDetails{
95+
{
96+
Cmd: "echo 'hello world' > /mnt/test-1/data && grep 'hello world' /mnt/test-1/data",
97+
Volumes: []testsuites.VolumeDetails{
98+
{
99+
ClaimSize: "10Gi",
100+
MountOptions: []string{
101+
"-o allow_other",
102+
"--file-cache-timeout-in-seconds=120",
103+
"--cancel-list-on-mount-seconds=0",
104+
},
105+
VolumeMount: testsuites.VolumeMountDetails{
106+
NameGenerate: "test-volume-",
107+
MountPathGenerate: "/mnt/test-",
108+
},
109+
},
110+
},
111+
},
112+
}
113+
test := testsuites.DynamicallyProvisionedCmdVolumeTest{
114+
CSIDriver: testDriver,
115+
Pods: pods,
116+
StorageClassParameters: map[string]string{
117+
"skuName": "Standard_GRS",
118+
"storeAccountKey": "false",
119+
"allowSharedKeyAccess": "false",
120+
"AzureStorageAuthType": "msi",
121+
"AzureStorageIdentityClientID": "dummy",
122+
},
123+
}
124+
test.Run(ctx, cs, ns)
125+
})
126+
93127
ginkgo.It("should create a volume on demand with mount options", func(ctx ginkgo.SpecContext) {
94128
pods := []testsuites.PodDetails{
95129
{

0 commit comments

Comments
 (0)