Skip to content

Commit d0c8d33

Browse files
authored
Merge pull request #43 from csi-driver/randomize-volume-name
test: randomize volume name
2 parents 5a9a148 + 6739b30 commit d0c8d33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration/run-test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
set -euo pipefail
1919

2020
csc=$GOPATH/bin/csc
21+
volname=`date +%s`
22+
volname="citest-$volname"
2123
volSize="2147483648"
2224

2325
endpoint="tcp://127.0.0.1:10000"
@@ -47,7 +49,7 @@ fi
4749
# begin to run CSI functions one by one
4850
if [ -v aadClientSecret ]; then
4951
echo "create volume test:"
50-
value=`$csc controller new --endpoint $endpoint --cap 1,block CSIVolumeName --req-bytes $volSize --params skuname=Standard_LRS`
52+
value=`$csc controller new --endpoint $endpoint --cap 1,block $volname --req-bytes $volSize --params skuname=Standard_LRS`
5153
retcode=$?
5254
if [ $retcode -gt 0 ]; then
5355
exit $retcode
@@ -91,7 +93,7 @@ if [ -v aadClientSecret ]; then
9193
sleep 15
9294

9395
echo "create volume in storage account($storageAccountName) under resource group($resourceGroup):"
94-
value=`$csc controller new --endpoint $endpoint --cap 1,block CSIVolumeName --req-bytes $volSize --params skuname=Standard_LRS,storageAccount=$storageAccountName,resourceGroup=$resourceGroup`
96+
value=`$csc controller new --endpoint $endpoint --cap 1,block $volname --req-bytes $volSize --params skuname=Standard_LRS,storageAccount=$storageAccountName,resourceGroup=$resourceGroup`
9597
retcode=$?
9698
if [ $retcode -gt 0 ]; then
9799
exit $retcode

0 commit comments

Comments
 (0)