You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2018/09/14 14:58:13 UTC

[incubator-openwhisk-deploy-kube] branch master updated: Add travis test for providers (#296)

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new ee8ead1  Add travis test for providers (#296)
ee8ead1 is described below

commit ee8ead107b3e5e53aec67dbabf040daf8b4fbec7
Author: Ying Chun Guo <gu...@cn.ibm.com>
AuthorDate: Fri Sep 14 22:58:09 2018 +0800

    Add travis test for providers (#296)
---
 helm/openwhisk-providers/charts/ow-alarm/README.md |  2 +-
 .../charts/ow-cloudant/README.md                   |  2 +-
 tools/travis/build-helm.sh                         | 54 ++++++++++++++++++++++
 3 files changed, 56 insertions(+), 2 deletions(-)

diff --git a/helm/openwhisk-providers/charts/ow-alarm/README.md b/helm/openwhisk-providers/charts/ow-alarm/README.md
index 1d2dee6..0121352 100644
--- a/helm/openwhisk-providers/charts/ow-alarm/README.md
+++ b/helm/openwhisk-providers/charts/ow-alarm/README.md
@@ -65,7 +65,7 @@ invoker:
 
 You may install this chart with command like
 ```
-helm install ./helm/providers/charts/alarm --namespace=openwhisk --name owdev-alarm-provider
+helm install ./helm/openwhisk-providers/charts/ow-alarm --namespace=openwhisk --name owdev-alarm-provider
 ```
 
 You can use `helm status owdev-alarm-provider` to check the status. When you see pod is running and job is completed, you can check alarm package by `wsk package get /whisk.system/alarms -i --summary`
diff --git a/helm/openwhisk-providers/charts/ow-cloudant/README.md b/helm/openwhisk-providers/charts/ow-cloudant/README.md
index 956aad2..65c995c 100644
--- a/helm/openwhisk-providers/charts/ow-cloudant/README.md
+++ b/helm/openwhisk-providers/charts/ow-cloudant/README.md
@@ -67,7 +67,7 @@ invoker:
 
 You may install this chart with command like
 ```
-helm install ./helm/providers/charts/cloudant --namespace=openwhisk --name owdev-cloudant-provider
+helm install ./helm/openwhisk-providers/charts/ow-cloudant --namespace=openwhisk --name owdev-cloudant-provider
 ```
 
 You can use `helm status owdev-cloudant-provider` to check the status. When you see pod is running and job is completed, you can check cloudant package by `wsk package get /whisk.system/cloudant -i --summary`
diff --git a/tools/travis/build-helm.sh b/tools/travis/build-helm.sh
index b5cf333..e4092f5 100755
--- a/tools/travis/build-helm.sh
+++ b/tools/travis/build-helm.sh
@@ -260,3 +260,57 @@ fi
 # fi
 
 echo "PASSED! Deployed openwhisk and invoked Hello action"
+
+####
+# now test the installation of kafka provider
+####
+helm install helm/openwhisk-providers/charts/ow-kafka --namespace=openwhisk --name=kafkap4travis
+
+jobHealthCheck "install-package-kafka"
+
+deploymentHealthCheck "kafkaprovider"
+
+# Verify messaging package is installed
+RESULT=$(wsk package list /whisk.system -i | grep messaging)
+if [ -z "$RESULT" ]; then
+  echo "FAILED! Could not list messaging package via CLI"
+  exit 1
+fi
+
+echo "PASSED! Deployed Kafka provider and package"
+
+####
+# now test the installation of Alarm provider
+####
+helm install helm/openwhisk-providers/charts/ow-alarm --namespace=openwhisk --name alarmp4travis
+
+jobHealthCheck "install-package-alarm"
+
+deploymentHealthCheck "alarmprovider"
+
+# Verify alarms package is installed
+RESULT=$(wsk package list /whisk.system -i | grep alarms)
+if [ -z "$RESULT" ]; then
+  echo "FAILED! Could not list alarms package via CLI"
+  exit 1
+fi
+
+echo "PASSED! Deployed Alarms provider and package"
+
+####
+# now test the installation of Cloudant provider
+####
+helm install helm/openwhisk-providers/charts/ow-cloudant --namespace=openwhisk --name cloudantp4travis
+
+jobHealthCheck "install-package-cloudant"
+
+deploymentHealthCheck "cloudantprovider"
+
+# Verify cloudant package is installed
+RESULT=$(wsk package list /whisk.system -i | grep cloudant)
+if [ -z "$RESULT" ]; then
+  echo "FAILED! Could not list cloudant package via CLI"
+  exit 1
+fi
+
+echo "PASSED! Deployed Cloudant provider and package"