This is an automated email from the ASF dual-hosted git repository. markusthoemmes pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push: new 2f251d1 use DeveloperError in place of ContainerError (#364) 2f251d1 is described below commit 2f251d1435639325baf5b02203a13e7de791f57e Author: David Cariello <drcar...@us.ibm.com> AuthorDate: Wed Sep 5 12:01:44 2018 -0500 use DeveloperError in place of ContainerError (#364) --- .../test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala b/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala index 4827363..4e893dd 100644 --- a/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala +++ b/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala @@ -274,7 +274,7 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers { val response = activation.response response.result.get .fields("error") shouldBe Messages.abnormalInitialization.toJson - response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.ContainerError) + response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.DeveloperError) } } @@ -290,7 +290,7 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers { response.result.get.fields("error") shouldBe Messages .timedoutActivation(3 seconds, true) .toJson - response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.ApplicationError) + response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.DeveloperError) } } @@ -304,7 +304,7 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers { withActivation(wsk.activation, wsk.action.invoke(name)) { activation => val response = activation.response response.result.get.fields("error") shouldBe Messages.abnormalRun.toJson - response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.ContainerError) + response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.DeveloperError) } } @@ -490,7 +490,7 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers { val run = wsk.action.invoke(name) withActivation(wsk.activation, run) { activation => - activation.response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.ApplicationError) + activation.response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.DeveloperError) activation.response.result.get .fields("error") shouldBe s"Failed to pull container image '$containerName'.".toJson activation.annotations shouldBe defined @@ -584,7 +584,7 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers { val hungRun = wsk.action.invoke(name, Map("forceHang" -> true.toJson)) withActivation(wsk.activation, hungRun) { activation => // the first action must fail with a timeout error - activation.response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.ApplicationError) + activation.response.status shouldBe ActivationResponse.messageForCode(ActivationResponse.DeveloperError) activation.response.result shouldBe Some( JsObject("error" -> Messages.timedoutActivation(3 seconds, false).toJson)) }