You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/06/26 15:59:48 UTC
[incubator-openwhisk-cli] 08/36: Remove 'kinds' from CLI;
defer to backend. (#2053)
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
commit b4b2ba1a57868f7c41a5e6b0bdc04698462e4584
Author: rodric rabbah <ro...@gmail.com>
AuthorDate: Fri Mar 24 10:05:22 2017 -0400
Remove 'kinds' from CLI; defer to backend. (#2053)
* Remove 'kinds' from CLI; defer to backend.
* Fix messages.
* Add cli test for unknown kind.
* Move Kind Process to its Own Method to Declutter ParseAction (#9)
* pass flags to getExec.
---
tests/src/test/scala/whisk/core/cli/test/WskBasicUsageTests.scala | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/src/test/scala/whisk/core/cli/test/WskBasicUsageTests.scala b/tests/src/test/scala/whisk/core/cli/test/WskBasicUsageTests.scala
index de81b29..5fe9dbe 100644
--- a/tests/src/test/scala/whisk/core/cli/test/WskBasicUsageTests.scala
+++ b/tests/src/test/scala/whisk/core/cli/test/WskBasicUsageTests.scala
@@ -446,6 +446,14 @@ class WskBasicUsageTests
}
}
+ it should "report error when creating an action with unknown kind" in withAssetCleaner(wskprops) {
+ (wp, assetHelper) =>
+ val rr = assetHelper.withCleaner(wsk.action, "invalid kind", confirmDelete = false) {
+ (action, name) => action.create(name, Some(TestUtils.getTestActionFilename("echo.js")), kind = Some("foobar"), expectedExitCode = BAD_REQUEST)
+ }
+ rr.stderr should include regex "kind 'foobar' not in Set"
+ }
+
it should "create, and invoke an action that utilizes an invalid docker container with appropriate error" in withAssetCleaner(wskprops) {
val name = "invalid dockerContainer"
val containerName = s"bogus${Random.alphanumeric.take(16).mkString.toLowerCase}"
--
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>.