You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/28 18:45:44 UTC

[GitHub] dubeejw commented on a change in pull request #2435: Ensure Action Update Creates a Web Action

dubeejw commented on a change in pull request #2435: Ensure Action Update Creates a Web Action
URL: https://github.com/apache/incubator-openwhisk/pull/2435#discussion_r124624009
 
 

 ##########
 File path: tests/src/test/scala/whisk/core/cli/test/WskBasicUsageTests.scala
 ##########
 @@ -652,14 +655,43 @@ class WskBasicUsageTests
                     "key" -> JsString("web-export"),
                     "value" -> JsBoolean(true)),
                 JsObject(
+                    "key" -> JsString(origKey),
+                    "value" -> origValue),
+                JsObject(
                     "key" -> JsString("raw-http"),
                     "value" -> JsBoolean(false)),
                 JsObject(
                     "key" -> JsString("final"),
                     "value" -> JsBoolean(true)),
                 JsObject(
-                    "key" -> JsString(key),
-                    "value" -> value),
+                    "key" -> JsString(updatedKey),
+                    "value" -> updatedValue),
+                JsObject(
+                    "key" -> JsString("exec"),
+                    "value" -> JsString("nodejs:6")))
+    }
+
+    it should "ensure action update creates an action with --web flag" in withAssetCleaner(wskprops) {
+        (wp, assetHelper) =>
+            val name = "webaction"
+            val file = Some(TestUtils.getTestActionFilename("echo.js"))
+
+            assetHelper.withCleaner(wsk.action, name) {
+                (action, _) => action.create(name, file, web = Some("true"), update = true)
 
 Review comment:
   @mdeuser, the test above this one does what you mentioned.
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services