Skip to content

Commit 3fbecb2

Browse files
authored
Merge pull request #33 from csi-driver/testci
refactor of integration test
2 parents 092b287 + 24cdc99 commit 3fbecb2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/run-test.sh

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

2020
csc=$GOPATH/bin/csc
21+
volSize="2147483648"
2122

2223
endpoint="tcp://127.0.0.1:10000"
2324
if [ $# -gt 0 ]; then
@@ -46,7 +47,7 @@ fi
4647
# begin to run CSI functions one by one
4748
if [ -v aadClientSecret ]; then
4849
echo "create volume test:"
49-
value=`$csc controller new --endpoint $endpoint --cap 1,block CSIVolumeName --req-bytes 2147483648 --params skuname=Standard_LRS`
50+
value=`$csc controller new --endpoint $endpoint --cap 1,block CSIVolumeName --req-bytes $volSize --params skuname=Standard_LRS`
5051
retcode=$?
5152
if [ $retcode -gt 0 ]; then
5253
exit $retcode
@@ -89,8 +90,8 @@ if [ -v aadClientSecret ]; then
8990
fi
9091
sleep 15
9192

92-
echo "create volume in a specified storage account under a specified resource group:"
93-
value=`$csc controller new --endpoint $endpoint --cap 1,block CSIVolumeName --req-bytes 2147483648 --params skuname=Standard_LRS,storageAccount=$storageAccountName,resourceGroup=$resourceGroup`
93+
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`
9495
retcode=$?
9596
if [ $retcode -gt 0 ]; then
9697
exit $retcode

0 commit comments

Comments
 (0)