dubeejw commented on a change in pull request #2741: Display content-type in 
__ow_headers for web actions
URL: 
https://github.com/apache/incubator-openwhisk/pull/2741#discussion_r138771580
 
 

 ##########
 File path: 
tests/src/test/scala/whisk/core/controller/test/WebActionsApiTests.scala
 ##########
 @@ -470,7 +470,8 @@ trait WebActionsApiTests extends ControllerTestCommon with 
BeforeAndAfterEach wi
           val content = JsObject("extra" -> "read all about it".toJson, 
"yummy" -> true.toJson)
           val p = if (path.endsWith("/")) "/" else ""
           invocationsAllowed += 1
-          m(s"$testRoutePath/$path", content) ~> Route.seal(routes(creds)) ~> 
check {
+          m(s"$testRoutePath/$path", 
HttpEntity(ContentTypes.`application/json`, content.compactPrint)) ~> 
Route.seal(
 
 Review comment:
   Tried to get rid of `compactPrint`, could not get the tests to compile by 
just passing the `JsObject`.
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to