This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new fb332cb  Set API key annotation for a WskConsole test (#4328)
fb332cb is described below

commit fb332cb4c6cf9e01cc79e095f0576db6ec08fbca
Author: James Dubee <[email protected]>
AuthorDate: Fri Mar 8 14:08:06 2019 -0500

    Set API key annotation for a WskConsole test (#4328)
---
 tests/src/test/scala/system/basic/WskConsoleTests.scala | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/src/test/scala/system/basic/WskConsoleTests.scala 
b/tests/src/test/scala/system/basic/WskConsoleTests.scala
index 3baa03c..349404c 100644
--- a/tests/src/test/scala/system/basic/WskConsoleTests.scala
+++ b/tests/src/test/scala/system/basic/WskConsoleTests.scala
@@ -35,6 +35,8 @@ import common.WskTestHelpers
 import spray.json.DefaultJsonProtocol._
 import spray.json._
 
+import org.apache.openwhisk.core.entity.WhiskAction
+
 /**
  * Tests of the text console
  */
@@ -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)))
     }
 
     val count = 3

Reply via email to