You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/05/02 14:05:38 UTC

[GitHub] [incubator-openwhisk-cli] mdeuser commented on a change in pull request #437: Fix tests when whisk.feature.requireApiKeyAnnotation=false

mdeuser commented on a change in pull request #437: Fix tests when whisk.feature.requireApiKeyAnnotation=false
URL: https://github.com/apache/incubator-openwhisk-cli/pull/437#discussion_r280434218
 
 

 ##########
 File path: tests/src/test/scala/org/apache/openwhisk/core/cli/test/WskCliBasicUsageTests.scala
 ##########
 @@ -659,18 +657,29 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers {
     }
 
     wsk.action.create(name, file, web = Some("true"), update = true)
+    val expectedExistingAnnotations = if (requireAPIKeyAnnotation) {
 
 Review comment:
   instead of having duplicate JsArray entry lines (common entries are coded twice), how about defining a single "base" JsArray and conditionally adding the array element
   ```
   JsObject("key" -> JsString(WhiskAction.provideApiKeyAnnotationName), "value" -> JsBoolean(false)),
   ```
   

----------------------------------------------------------------
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