openwhisk-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-openwhisk] dubee commented on a change in pull request #4328: Set API key annotation for a WskConsole test
Date Fri, 08 Mar 2019 22:59:55 GMT
dubee commented on a change in pull request #4328: Set API key annotation for a WskConsole
test
URL: https://github.com/apache/incubator-openwhisk/pull/4328#discussion_r263958597
 
 

 ##########
 File path: tests/src/test/scala/system/basic/WskConsoleTests.scala
 ##########
 @@ -88,7 +90,10 @@ abstract class WskConsoleTests extends TestHelpers with WskTestHelpers
{
   it should "show repeated activations" in withAssetCleaner(wskprops) { (wp, assetHelper)
=>
     val name = withTimestamp("countdown")
     assetHelper.withCleaner(wsk.action, name) { (action, _) =>
-      action.create(name, Some(TestUtils.getTestActionFilename("countdown.js")))
+      action.create(
+        name,
+        Some(TestUtils.getTestActionFilename("countdown.js")),
+        annotations = Map(WhiskAction.provideApiKeyAnnotationName -> JsBoolean(true)))
 
 Review comment:
   @rabbah, the test suite is an abstract class. I don't believe this suite gets ran outside
of the CLI repo. Which explains why it did not fail anywhere else.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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

Mime
View raw message