You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/21 23:20:25 UTC

[GitHub] dubee commented on a change in pull request #3799: Display proper error when sequence invocation fails due to missing component

dubee commented on a change in pull request #3799: Display proper error when sequence invocation fails due to missing component
URL: https://github.com/apache/incubator-openwhisk/pull/3799#discussion_r197304320
 
 

 ##########
 File path: tests/src/test/scala/system/basic/WskSequenceTests.scala
 ##########
 @@ -60,6 +56,27 @@ abstract class WskSequenceTests extends TestHelpers with ScalatestRouteTest with
 
   behavior of "Wsk Sequence"
 
+  it should "produce proper error when sequence component does not exist" in withAssetCleaner(wskprops) {
+    (wp, assetHelper) =>
+      val seqCompName = "seqComp"
+      val seqName = "seq"
+      val file = TestUtils.getTestActionFilename("echo.js")
+
+      wsk.action.create(seqCompName, Some(file))
+
+      assetHelper.withCleaner(wsk.action, seqName) { (action, seqName) =>
+        action.create(seqName, Some(seqCompName), kind = Some("sequence"))
+      }
+
+      wsk.action.delete(seqCompName)
 
 Review comment:
   Maybe should move the retry around delete.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services