Remove throwable's message from HTTP response on 500 codes.
diff --git a/tests/src/whisk/core/controller/test/ActivationsApiTests.scala b/tests/src/whisk/core/controller/test/ActivationsApiTests.scala
index 9b9150a..da02c1f 100644
--- a/tests/src/whisk/core/controller/test/ActivationsApiTests.scala
+++ b/tests/src/whisk/core/controller/test/ActivationsApiTests.scala
@@ -29,6 +29,7 @@
import whisk.core.controller.WhiskActivationsApi
import whisk.core.entity._
import whisk.http.ErrorResponse
+import whisk.http.Messages
/**
* Tests Activations API.
@@ -342,11 +343,7 @@
Get(s"$collectionPath/${entity.name}") ~> sealRoute(routes(creds)) ~> check {
status should be(InternalServerError)
- val error = responseAs[ErrorResponse].error
- error should include("missing required member")
- Seq(entity.name.asString, "annotations", "parameters", "exec", "trigger", "action", "rules", "binding", "response").map {
- error should not include (_)
- }
+ responseAs[ErrorResponse].error shouldBe Messages.corruptedEntity
}
}
}