houshengbo commented on a change in pull request #2592: Rename 
CliActivationResponse & CliActivation, and change them from inner classes to 

 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)
+object activationResponse extends DefaultJsonProtocol {
+    implicit val serdes = jsonFormat3(activationResponse.apply)
+ * Activation record as it is returned by the CLI.
+ */
+ case class activationResult (
+        activationId: String,
+        logs: Option[List[String]],
+        response: activationResponse,
+        start: Instant,
+        end: Option[Instant], // This field is optional in responses of REST 
+        duration: Option[Long], // This field is optional in responses of REST 
 Review comment:
   I guess it would bring convenience if API is able to provide the information 
in a consistent manner, defining what is optional or not, and what would be the 
default values for them if they are not available. Client side directly picks 
up what is in the http response.
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:

With regards,
Apache Git Services

Reply via email to