Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1344)

Unified Diff: appengine/logdog/coordinator/endpoints/logs/query_test.go

Issue 1971493003: LogDog: Project READ access for user endpoints. (Closed) Base URL: https://github.com/luci/luci-go@logdog-project-service-config
Patch Set: Updated patchset dependency Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/logdog/coordinator/endpoints/logs/query_test.go
diff --git a/appengine/logdog/coordinator/endpoints/logs/query_test.go b/appengine/logdog/coordinator/endpoints/logs/query_test.go
index 06158f715fc55855eb64a4b5b1c536a25dda922a..f66f1297e3b5f1aeda7c67c0174400c5e7eb55ec 100644
--- a/appengine/logdog/coordinator/endpoints/logs/query_test.go
+++ b/appengine/logdog/coordinator/endpoints/logs/query_test.go
@@ -169,14 +169,14 @@ func TestQuery(t *testing.T) {
req.Project = "does-not-exist"
_, err := svr.Query(c, &req)
- So(err, ShouldBeRPCNotFound)
+ So(err, ShouldBeRPCPermissionDenied)
})
- Convey(`An empty query to a project without access fails with NotFound.`, func() {
+ Convey(`An empty query to a project without access fails with PermissionDenied.`, func() {
req.Project = "proj-exclusive"
_, err := svr.Query(c, &req)
- So(err, ShouldBeRPCNotFound)
+ So(err, ShouldBeRPCPermissionDenied)
})
Convey(`An empty query will include purged streams if admin.`, func() {
« no previous file with comments | « appengine/logdog/coordinator/endpoints/logs/list_test.go ('k') | appengine/logdog/coordinator/endpoints/logs/service.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698