steven0711dong commented on a change in pull request #479: Trigger parameter issue URL: https://github.com/apache/openwhisk-cli/pull/479#discussion_r383476638
########## File path: tests/src/test/scala/system/basic/WskCliBasicTests.scala ########## @@ -491,6 +491,47 @@ class WskCliBasicTests extends TestHelpers with WskTestHelpers { wsk.trigger.list().stdout should include(triggerName) } + it should "return error message when updating feed param on trigger that contains no feed param" in withAssetCleaner( + wskprops) { (wp, assetHelper) => + val triggerName = withTimestamp("t1tor1") + val ns = wsk.namespace.whois() + val params = Map("a" -> "A".toJson) + + assetHelper.withCleaner(wsk.trigger, triggerName) { (trigger, _) => + trigger.create(triggerName, parameters = params) + } + wsk + .cli( + Seq("trigger", "update", triggerName, "-F", "feedParam", "feedParamVal", "--auth", wskprops.authKey) ++ wskprops.overrides, + expectedExitCode = ERROR_EXIT) + .stderr should include("this trigger does not contain a feed") + } + + it should "return error message when creating or updating feed with both --param and --trigger-param/--feed-param flags" in withAssetCleaner( Review comment: This test case is for both create and update. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services