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/08/17 03:27:54 UTC

[GitHub] houshengbo commented on a change in pull request #2592: Make the result of response consistent for both Wsk CLI and REST

houshengbo commented on a change in pull request #2592: Make the result of response consistent for both Wsk CLI and REST
URL: https://github.com/apache/incubator-openwhisk/pull/2592#discussion_r133616790
 
 

 ##########
 File path: tests/src/test/scala/common/WskTestHelpers.scala
 ##########
 @@ -31,6 +31,55 @@ import spray.json._
 import java.time.Instant
 
 /**
+ * An arbitrary response of a whisk action. Includes the result as a JsObject as the
+ * structure of "result" is not defined.
+ */
+case class ActivationResponse(result: Option[JsObject], status: String, success: Boolean)
 
 Review comment:
   When a trigger is fired, there will be an activation linking to the rule, whose response does not have result available:
   {
       "namespace": "whisk.system",
       "name": "testRule",
       "version": "0.0.1",
       "subject": "whisk.system",
       "activationId": "c2f410c141b9422ca32ab63a7c43d08e",
       "cause": "a8adb44ac0e24b8a9f0486617300b5ae",
       "start": 1502940356583,
       "end": 0,
       "duration": 0,
       "response": {
           "status": "success",
           "statusCode": 0,
           "success": true
       },
       "logs": [],
       "annotations": [],
       "publish": false
   }
   
 
----------------------------------------------------------------
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