dgrove-oss closed pull request #300: Disable some provider tests in travis if
no pv is available
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/300
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/tools/travis/build-helm.sh b/tools/travis/build-helm.sh
index e4092f5..7e63f91 100755
--- a/tools/travis/build-helm.sh
+++ b/tools/travis/build-helm.sh
@@ -279,6 +279,17 @@ fi
echo "PASSED! Deployed Kafka provider and package"
+####
+# Test if persistant volume is available
+# Exist 0 if pv is not available
+# Continue the following provider tests if pv is available
+####
+RESULT=$(kubectl get pv | sed -n '2p' | awk '{print $5}')
+if [ "$RESULT" != "Available" ]; then
+ echo "No pv defined! Ignore alarm provider and cloudant provider test. Exist
with 0."
+ exit 0
+fi
+
####
# now test the installation of Alarm provider
####
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services