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

Unified Diff: appengine/gaeauth/server/internal/authdb/authdb_test.go

Issue 1910633006: LogDog: Support per-namespace expired archival. (Closed) Base URL: https://github.com/luci/luci-go@logdog-coordinator-svcdec
Patch Set: Update another test. Created 4 years, 8 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
« no previous file with comments | « appengine/cmd/logdog_coordinator/vmuser/queue.yaml ('k') | appengine/logdog/coordinator/archival.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/gaeauth/server/internal/authdb/authdb_test.go
diff --git a/appengine/gaeauth/server/internal/authdb/authdb_test.go b/appengine/gaeauth/server/internal/authdb/authdb_test.go
index 7ce6aef24ef600778971cbfec348b6ad6223a670..59ac3b16d507568d429be05aecfd7f09434c0d46 100644
--- a/appengine/gaeauth/server/internal/authdb/authdb_test.go
+++ b/appengine/gaeauth/server/internal/authdb/authdb_test.go
@@ -26,7 +26,7 @@ func TestConfigureAuthService(t *testing.T) {
So(ConfigureAuthService(c, "http://base_url", "http://auth-service"), ShouldBeNil)
So(srv.Calls, ShouldResemble, []string{
- `EnsureSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service" ""`,
+ `EnsureSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service" ""`,
})
info, err := GetLatestSnapshotInfo(c)
@@ -50,7 +50,7 @@ func TestConfigureAuthService(t *testing.T) {
srv.Calls = nil
So(ConfigureAuthService(c, "http://base_url", "http://auth-service"), ShouldBeNil)
So(srv.Calls, ShouldResemble, []string{
- `EnsureSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service" ""`,
+ `EnsureSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service" ""`,
})
})
@@ -71,9 +71,9 @@ func TestConfigureAuthService(t *testing.T) {
})
So(srv.Calls, ShouldResemble, []string{
- `EnsureSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service-1" ""`,
- `EnsureSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service-2" ""`,
- `DeleteSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service-1"`,
+ `EnsureSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service-1" ""`,
+ `EnsureSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service-2" ""`,
+ `DeleteSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service-1"`,
})
})
@@ -91,8 +91,8 @@ func TestConfigureAuthService(t *testing.T) {
So(info, ShouldBeNil)
So(srv.Calls, ShouldResemble, []string{
- `EnsureSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service-1" ""`,
- `DeleteSubscription "projects/dev~app/subscriptions/dev-app-server-v1+auth-service-1"`,
+ `EnsureSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service-1" ""`,
+ `DeleteSubscription "projects/app/subscriptions/dev-app-server-v1+auth-service-1"`,
})
})
}
« no previous file with comments | « appengine/cmd/logdog_coordinator/vmuser/queue.yaml ('k') | appengine/logdog/coordinator/archival.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698