You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by da...@apache.org on 2017/09/25 06:53:40 UTC

[incubator-openwhisk-wskdeploy] branch master updated: Update the document for the use case of message hub (#545)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2580015  Update the document for the use case of message hub (#545)
2580015 is described below

commit 258001556d6174147d69efccc2ae9f13dd90d03a
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Mon Sep 25 02:53:38 2017 -0400

    Update the document for the use case of message hub (#545)
    
    Closes #539
---
 tests/src/integration/cloudant/cloudant_test.go |  2 +-
 tests/src/integration/message-hub/README.md     | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/tests/src/integration/cloudant/cloudant_test.go b/tests/src/integration/cloudant/cloudant_test.go
index c915add..a9e0452 100644
--- a/tests/src/integration/cloudant/cloudant_test.go
+++ b/tests/src/integration/cloudant/cloudant_test.go
@@ -30,7 +30,7 @@ import (
 func TestCloudant(t *testing.T) {
 	os.Setenv("CLOUDANT_DATABASE", "testdb")
 	wskprops := common.GetWskpropsFromEnvVars(common.BLUEMIX_APIHOST, common.BLUEMIX_NAMESPACE, common.BLUEMIX_AUTH)
-	err := common.ValidateWskprops(wskprops)
+    err := common.ValidateWskprops(wskprops)
 	if err != nil {
 		fmt.Println(err.Error())
 		fmt.Println("Wsk properties are not properly configured, so tests are skipped.")
diff --git a/tests/src/integration/message-hub/README.md b/tests/src/integration/message-hub/README.md
new file mode 100644
index 0000000..b497d47
--- /dev/null
+++ b/tests/src/integration/message-hub/README.md
@@ -0,0 +1,15 @@
+# Test Case of message hub
+
+This is a test case for message hub. Before running this use case, please make sure you have set the following
+environment variables on your machine: MESSAGEHUB_ADMIN_HOST, KAFKA_BROKERS_SASL, SOURCE_TOPIC and DESTINATION_TOPIC.
+ 
+The environment variables, SOURCE_TOPIC and DESTINATION_TOPIC, are two topic names in message hub service. Both of them
+must be available in the message hub service you are about to use. The variable MESSAGEHUB_ADMIN_HOST specifies the url
+link of the admin host for the message hub. The variable KAFKA_BROKERS_SASL specifies the array of the kafka brokers, e.g.
+[kafka01-prod01.messagehub.services.net:9093 kafka02-prod01.messagehub.services.net:9093].
+
+It can be deployed and tested with:
+
+```bash
+$ wskdeploy -p tests/src/integration/message-hub
+```

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].