You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/21 13:26:36 UTC

[GitHub] tz70s commented on a change in pull request #3473: Support string based status code from actions.

tz70s commented on a change in pull request #3473: Support string based status code from actions.
URL: https://github.com/apache/incubator-openwhisk/pull/3473#discussion_r176079078
 
 

 ##########
 File path: tests/src/test/scala/whisk/core/controller/test/WebActionsApiTests.scala
 ##########
 @@ -1711,6 +1711,19 @@ trait WebActionsApiBaseTests extends ControllerTestCommon with BeforeAndAfterEac
           }
         }
     }
+
+    it should s"allowed string based status code (auth? ${creds.isDefined})" in {
+      implicit val tid = transid()
+
+      Seq(s"$systemId/proxy/export_c.http").foreach { path =>
+        invocationsAllowed += 1
+        actionResult = Some(JsObject(webApiDirectives.statusCode -> JsString("200")))
+
+        Head(s"$testRoutePath/$path") ~> Route.seal(routes(creds)) ~> check {
 
 Review comment:
   Sure, thanks!

----------------------------------------------------------------
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