add travis badge
fix test case
Update credentials.json
Update TemplateTests.scala
Update TemplateTests.scala
Update credentials.json
diff --git a/README.md b/README.md
index c671676..bf41257 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
#Openwhisk Package Template
==========================
+[![Build Status](https://travis-ci.org/openwhisk/openwhisk-package-template.svg?branch=master)](https://travis-ci.org/openwhisk/openwhisk-package-template)
This package is a template for Openwhisk Packages, it can be used to build, test and integrate new packages.
```
diff --git a/tests/credentials.json b/tests/credentials.json
index 1222949..ef3bc67 100644
--- a/tests/credentials.json
+++ b/tests/credentials.json
@@ -5,7 +5,7 @@
"credentials": {
"apiKey": "XXXXXXXX",
"apiToken": "YYYYYYY",
- "base_uri": "https://openwhisk.ng.bluemix.net/api/v1",
+ "base_uri": "https://api.service-x.com/v1"
}
}],
"another_service": [{
@@ -14,7 +14,7 @@
"credentials": {
"apiKey": "ZZZZZZZZZZ",
"apiToken": "MMMMMMMMMM",
- "base_uri": "https://openwhisk.ng.bluemix.net/api/v1",
+ "base_uri": "https://service-y.net/api/v2"
}
}]
-}
\ No newline at end of file
+}
diff --git a/tests/src/TemplateTests.scala b/tests/src/TemplateTests.scala
index dcdd473..66909a6 100644
--- a/tests/src/TemplateTests.scala
+++ b/tests/src/TemplateTests.scala
@@ -31,17 +31,17 @@
implicit val wskprops = WskProps()
val wsk = new Wsk()
- val credentials = TestUtils.getVCAPcredentials("template")
+ val credentials = TestUtils.getVCAPcredentials("template_service")
val apiKey = credentials.get("apiKey");
behavior of "Template Package"
"helloworld action" should "return Hello, World!" in {
- val actionName = "/whisk.system/packageTemplate/helloworld"
- val params = HashMap("name" -> "Tareq".toJson);
+ val actionName = "/whisk.system/packageTemplate/helloWorld"
+ val params = HashMap("name" -> "Openwhisk".toJson);
withActivation(wsk.activation, wsk.action.invoke(actionName, params)) {
- _.fields("response").toString should include(s""""message": "Hello, Tareq!"""")
+ _.fields("response").toString should include(s""""message":"Hello, Openwhisk!"""")
}
}
}