Merge pull request #119 from andyzhangx/sanity-test-v4.0.2

test: upgrade sanity-test to v4.0.2
This commit is contained in:
Andy Zhang 2020-12-26 22:07:57 +08:00 committed by GitHub
commit 9d781a9180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ function install_csi_sanity_bin {
mkdir -p $GOPATH/src/github.com/kubernetes-csi
pushd $GOPATH/src/github.com/kubernetes-csi
export GO111MODULE=off
git clone https://github.com/kubernetes-csi/csi-test.git -b v2.2.0
git clone https://github.com/kubernetes-csi/csi-test.git -b v4.0.2
pushd csi-test/cmd/csi-sanity
make install
popd
@ -43,10 +43,11 @@ function provision_nfs_server {
apt-get update -y
apt-get install -y nfs-common
docker run -d --name nfs --privileged -p 2049:2049 -v $(pwd)/nfsshare:/nfsshare -e SHARED_DIRECTORY=/nfsshare itsthenetwork/nfs-server-alpine:latest
sleep 10
}
provision_nfs_server
# wait for nfs-server running complete
sleep 10
install_csi_sanity_bin
readonly endpoint='unix:///tmp/csi.sock'