chetanmeh commented on a change in pull request #4387: Make tests working in
case the "provide-api-key" feature is disabled
URL:
https://github.com/apache/incubator-openwhisk/pull/4387#discussion_r269525471
##########
File path: tests/src/test/scala/system/basic/WskRestBasicTests.scala
##########
@@ -44,6 +44,9 @@ class WskRestBasicTests extends TestHelpers with
WskTestHelpers with WskActorSys
val defaultAction: Some[String] =
Some(TestUtils.getTestActionFilename("hello.js"))
+ val requireApiKeyAnnotation =
+
Option(WhiskProperties.getProperty("whisk.feature.requireApiKeyAnnotation")).map(_.toBoolean).getOrElse(true)
Review comment:
Better to add a method `WhiskProperties.getBoolean(key, defaultValue)` and
use that
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services