Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#14 from andyzhangx/e2e
Browse files Browse the repository at this point in the history
add more e2e tests
  • Loading branch information
andyzhangx authored Feb 4, 2019
2 parents 8a04a02 + dcf3605 commit 366a3c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ script:
- hack/verify-all.sh
- make test
- make azuredisk
- make azuredisk-windows
- make azuredisk-container
- test/e2e/run-test.sh
- go test -covermode=count -coverprofile=profile.cov ./pkg/...
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
- test/e2e/run-test.sh
- make azuredisk-windows
- make azuredisk-container
16 changes: 16 additions & 0 deletions test/e2e/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,19 @@ retcode=$?
if [ $retcode -gt 0 ]; then
exit $retcode
fi

echo "create volume test:"
value=`$GOPATH/bin/csc controller new --endpoint $endpoint --cap 1,block CSIVolumeName --req-bytes 2147483648 --params skuname=Standard_LRS,kind=managed`
retcode=$?
if [ $retcode -gt 0 ]; then
exit $retcode
fi

volumeid=`echo $value | awk '{print $1}'`
echo "got volume id: $volumeid"
echo "delete volume test:"
$GOPATH/bin/csc controller del --endpoint $endpoint $volumeid
retcode=$?
if [ $retcode -gt 0 ]; then
exit $retcode
fi

0 comments on commit 366a3c4

Please sign in to comment.