rabbah commented on a change in pull request #2877: Better error controller
message for authorization failure
URL:
https://github.com/apache/incubator-openwhisk/pull/2877#discussion_r146131376
##########
File path:
tests/src/test/scala/whisk/core/controller/test/PackageActionsApiTests.scala
##########
@@ -591,7 +591,7 @@ class PackageActionsApiTests extends ControllerTestCommon
with WhiskActionsApi {
val auser = WhiskAuthHelpers.newIdentity()
Get(s"/${provider.namespace}/${collection.path}/${provider.name}/${entity.name}")
~> Route.seal(routes(auser)) ~> check {
status should be(Forbidden)
- responseAs[ErrorResponse].error shouldBe
Messages.notAuthorizedtoOperateOnResource
+ responseAs[ErrorResponse].error shouldBe
Messages.notAuthorizedtoAccessResource(s"${namespace}/${provider.name}")
Review comment:
don't need `{}` around a `namespace`: `$namespace`.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services