dubeejw commented on a change in pull request #2334: (Review) Added --last 
Activation Flag 
URL: 
https://github.com/apache/incubator-openwhisk/pull/2334#discussion_r125920222
 
 

 ##########
 File path: tests/src/test/scala/common/Wsk.scala
 ##########
 @@ -573,12 +578,17 @@ class WskActivation()
      * @param activationId the activation id
      * @param expectedExitCode (optional) the expected exit code for the 
command
      * if the code is anything but DONTCARE_EXIT, assert the code is as 
expected
+     * @param last retrieves latest acitvation
      */
     def logs(
-        activationId: String,
-        expectedExitCode: Int = SUCCESS_EXIT)(
+        activationId: Option[String] = None,
+        expectedExitCode: Int = SUCCESS_EXIT,
+        last: Option[Boolean] = None)(
             implicit wp: WskProps): RunResult = {
-        cli(wp.overrides ++ Seq(noun, "logs", activationId, "--auth", 
wp.authKey), expectedExitCode)
+        val params =
+          { activationId map {a => Seq(a)} getOrElse Seq() } ++
 
 Review comment:
   Space needed after `activationId map {`, and after `Seq(a)`.
 
----------------------------------------------------------------
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