dubeejw commented on a change in pull request #2591: User-Agent CLI/version
header
URL:
https://github.com/apache/incubator-openwhisk/pull/2591#discussion_r136176285
##########
File path: tests/src/test/scala/common/Wsk.scala
##########
@@ -142,17 +142,20 @@ trait ListOrGetFromCollection extends
FullyQualifiedNames {
*
* @param namespace (optional) if specified must be fully qualified
namespace
* @param expectedExitCode (optional) the expected exit code for the
command
+ * @param verboseFlag (optional) if true prints full verbose output
* if the code is anything but DONTCARE_EXIT, assert the code is as
expected
*/
def list(
namespace: Option[String] = None,
limit: Option[Int] = None,
nameSort: Option[Boolean] = None,
- expectedExitCode: Int = SUCCESS_EXIT)(
+ expectedExitCode: Int = SUCCESS_EXIT,
+ verboseFlag: Option[Boolean] = None)(
implicit wp: WskProps): RunResult = {
val params = Seq(noun, "list", resolve(namespace), "--auth",
wp.authKey) ++
{ limit map { l => Seq("--limit", l.toString) } getOrElse Seq() }
++
- { nameSort map { n => Seq("--name-sort") } getOrElse Seq() }
+ { nameSort map { n => Seq("--name-sort") } getOrElse Seq() } ++
+ { verboseFlag map { v => Seq("-v")} getOrElse Seq()}
Review comment:
https://github.com/apache/incubator-openwhisk/blob/master/tests/src/test/scala/common/Wsk.scala#L1041
----------------------------------------------------------------
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