Skip to content

Commit 368da5b

Browse files
steven0711dongstyle95
authored andcommitted
corresponding update for openwhisk commita3f41e665 (#464)
* corresponding update for openwhisk commita3f41e665 * scalafmt * scope problem * forgot ''
1 parent bf934aa commit 368da5b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/src/test/scala/org/apache/openwhisk/core/cli/test/WskCliBasicUsageTests.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,14 +435,15 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers {
435435

436436
it should "report error when creating an action with unknown kind" in withAssetCleaner(wskprops) {
437437
(wp, assetHelper) =>
438+
val runtimeParam = "foobar"
438439
val rr = assetHelper.withCleaner(wsk.action, "invalid kind", confirmDelete = false) { (action, name) =>
439440
action.create(
440441
name,
441442
Some(TestUtils.getTestActionFilename("echo.js")),
442-
kind = Some("foobar"),
443+
kind = Some(runtimeParam),
443444
expectedExitCode = BAD_REQUEST)
444445
}
445-
rr.stderr should include regex "The request content was malformed"
446+
rr.stderr should include regex (s"""The specified runtime '$runtimeParam' is not supported by this platform""")
446447
}
447448

448449
it should "report error when creating an action with zip but without kind" in withAssetCleaner(wskprops) {

0 commit comments

Comments
 (0)