test: run example tests

This commit is contained in:
andyzhangx 2021-07-05 04:01:55 +00:00
parent 262d335441
commit 010cd3bd42
2 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,9 @@ echo "begin to create deployment examples ..."
kubectl apply -f ./deploy/example/storageclass-nfs.yaml
kubectl apply -f ./deploy/example/deployment.yaml
kubectl apply -f ./deploy/example/statefulset.yaml
kubectl apply -f ./deploy/example/daemonset-nfs-ephemeral.yaml
if [[ "$#" -gt 0 ]]&&[[ "$1" == *"ephemeral"* ]]; then
kubectl apply -f ./deploy/example/daemonset-nfs-ephemeral.yaml
fi
echo "sleep 60s ..."
sleep 60
@ -30,6 +32,8 @@ kubectl get pods -o wide
kubectl get pods --field-selector status.phase=Running | grep deployment-nfs
kubectl get pods --field-selector status.phase=Running | grep statefulset-nfs-0
kubectl get pods --field-selector status.phase=Running | grep daemonset-nfs-ephemeral
if [[ "$#" -gt 0 ]]&&[[ "$1" == *"ephemeral"* ]]; then
kubectl get pods --field-selector status.phase=Running | grep daemonset-nfs-ephemeral
fi
echo "deployment examples running completed."

View File

@ -38,6 +38,7 @@ setup_e2e_binaries() {
}
print_logs() {
bash ./hack/verify-examples.sh ephemeral
echo "print out driver logs ..."
bash ./test/utils/nfs_log.sh
}