| Index: appengine/logdog/coordinator/endpoints/logs/list_test.go
|
| diff --git a/appengine/logdog/coordinator/endpoints/logs/list_test.go b/appengine/logdog/coordinator/endpoints/logs/list_test.go
|
| index 33c1d18a286ee8ebf65ed64bc2897e6641f0410b..e3a8a94166acc9d0c1eeabdf86a87e7ad7081204 100644
|
| --- a/appengine/logdog/coordinator/endpoints/logs/list_test.go
|
| +++ b/appengine/logdog/coordinator/endpoints/logs/list_test.go
|
| @@ -192,12 +192,18 @@ func TestList(t *testing.T) {
|
| })
|
| })
|
|
|
| - Convey(`If the project does not exist, will return NotFound.`, func() {
|
| + Convey(`If the project does not exist, will return PermissionDenied.`, func() {
|
| req.Project = "does-not-exist"
|
|
|
| _, err := svc.List(c, &req)
|
| - So(err, ShouldBeRPCNotFound)
|
| + So(err, ShouldBeRPCPermissionDenied)
|
| })
|
|
|
| + Convey(`If the user can't access the project, will return PermissionDenied.`, func() {
|
| + req.Project = "proj-exclusive"
|
| +
|
| + _, err := svc.List(c, &req)
|
| + So(err, ShouldBeRPCPermissionDenied)
|
| + })
|
| })
|
| }
|
|
|