dubeejw commented on a change in pull request #2463: Correct unable to set
apihost issue.
URL:
https://github.com/apache/incubator-openwhisk/pull/2463#discussion_r138787472
##########
File path: tests/src/test/scala/whisk/core/cli/test/WskConfigTests.scala
##########
@@ -259,6 +259,27 @@ class WskConfigTests extends TestHelpers with
WskTestHelpers {
}
}
+ it should "set api host with or without http prefix" in {
+ val tmpwskprops = File.createTempFile("wskprops", ".tmp")
+ try {
+ val env = Map("WSK_CONFIG_FILE" -> tmpwskprops.getAbsolutePath())
+ Seq("", "http://", "https://").foreach { prefix =>
+ Seq("10", "10:123", "aaa", "aaa:123").foreach { host =>
+ val apihost = s"$prefix$host"
+ withClue(apihost) {
+ val rr = wsk.cli(Seq("property", "set", "--apihost", apihost), env
= env)
+ rr.stdout should not include regex("Application exited
unexpectedly")
Review comment:
Errors are printed to `stderr`, so shouldn't need this check.
----------------------------------------------------------------
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