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

Unified Diff: appengine/components/components/auth/replication_test.py

Issue 2854853005: auth: Stop mentioning 'global' secrets in API. (Closed)
Patch Set: Created 3 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
Index: appengine/components/components/auth/replication_test.py
diff --git a/appengine/components/components/auth/replication_test.py b/appengine/components/components/auth/replication_test.py
index 002555990435be504d56f3a2dfef40958c04afcf..105cce3ada9e53127a2936cdc35a67ff441d0679 100755
--- a/appengine/components/components/auth/replication_test.py
+++ b/appengine/components/components/auth/replication_test.py
@@ -127,23 +127,6 @@ class NewAuthDBSnapshotTest(test_case.TestCase):
nested=['Some group'])
another.put()
- global_secret = model.AuthSecret(
- id='global_secret',
- parent=model.secret_scope_key('global'),
- values=['1234', '5678'],
- modified_ts=utils.utcnow(),
- modified_by=model.Identity.from_bytes('user:modifier@example.com'))
- global_secret.put()
-
- # Local secret should not appear in a snapshot.
- local_secret = model.AuthSecret(
- id='local_secret',
- parent=model.secret_scope_key('local'),
- values=['1234', '5678'],
- modified_ts=utils.utcnow(),
- modified_by=model.Identity.from_bytes('user:modifier@example.com'))
- local_secret.put()
-
ip_whitelist = model.AuthIPWhitelist(
key=model.ip_whitelist_key('bots'),
subnets=['127.0.0.1/32'],
@@ -372,14 +355,6 @@ class ReplaceAuthDbTest(test_case.TestCase):
group('Delete').put()
group('Keep').put()
- def secret(name, scope, **kwargs):
- return model.AuthSecret(
- id=name, parent=model.secret_scope_key(scope), **kwargs)
- secret('modify', 'global').put()
- secret('delete', 'global').put()
- secret('keep', 'global').put()
- secret('local', 'local').put()
-
def ip_whitelist(name, **kwargs):
return model.AuthIPWhitelist(
key=model.ip_whitelist_key(name),

Powered by Google App Engine
This is Rietveld 408576698