mdeuser commented on a change in pull request #2357: Cli should ignore a config
file env variable value of empty string
URL:
https://github.com/apache/incubator-openwhisk/pull/2357#discussion_r121459837
##########
File path: tests/src/test/scala/common/Wsk.scala
##########
@@ -869,7 +869,8 @@ class WskApi()
{ apiname map { a => Seq("--apiname", a) } getOrElse Seq() } ++
{ swagger map { s => Seq("--config-file", s) } getOrElse Seq() } ++
{ responsetype map { t => Seq("--response-type", t) } getOrElse
Seq() }
- cli(wp.overrides ++ params, expectedExitCode, showCmd = true,
env=Map("WSK_CONFIG_FILE" -> cliCfgFile.getOrElse("")))
+ val envMap = { cliCfgFile map {f => Map("WSK_CONFIG_FILE" -> f) }
getOrElse Map() }
Review comment:
after thinking more about the map ++ reversal proposal, don't it since it
seems more logical for method env parameters should always be overriding the
system.env
----------------------------------------------------------------
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