rabbah commented on a change in pull request #3671: Activation id in header
URL: 
https://github.com/apache/incubator-openwhisk/pull/3671#discussion_r209900948
 
 

 ##########
 File path: 
tests/src/test/scala/whisk/core/controller/test/ActionsApiTests.scala
 ##########
 @@ -1285,13 +1291,17 @@ class ActionsApiTests extends ControllerTestCommon 
with WhiskActionsApi {
       // will not wait long enough should get accepted status
       Post(s"$collectionPath/${action.name}?blocking=true&timeout=100") ~> 
Route.seal(routes(creds)) ~> check {
         status shouldBe Accepted
+        headers should contain(RawHeader(ActivationIdHeader, 
response.fields("activationId").convertTo[String]))
+
       }
 
       // repeat this time wait longer than active ack delay
       Post(s"$collectionPath/${action.name}?blocking=true&timeout=500") ~> 
Route.seal(routes(creds)) ~> check {
         status shouldBe OK
         val response = responseAs[JsObject]
         response shouldBe activation.withoutLogs.toExtendedJson
+        headers should contain(RawHeader(ActivationIdHeader, 
response.fields("activationId").convertTo[String]))
+
 
 Review comment:
   Extra line. 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to