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

Unified Diff: appengine/components/components/auth/tokens_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/tokens_test.py
diff --git a/appengine/components/components/auth/tokens_test.py b/appengine/components/components/auth/tokens_test.py
index e97ffa3d30e1396e85ce1cb2b49fdbfb3fea0490..86bad6bec131b9a6ed8b8686aeead23b2bcc201c 100755
--- a/appengine/components/components/auth/tokens_test.py
+++ b/appengine/components/components/auth/tokens_test.py
@@ -230,14 +230,14 @@ class TokenEncodeDecodeTest(test_case.TestCase):
class SimpleToken(tokens.TokenKind):
- secret_key = api.SecretKey('secret', 'local')
+ secret_key = api.SecretKey('secret')
expiration_sec = 3600
class GoodToken(tokens.TokenKind):
algo = 'hmac-sha256'
expiration_sec = 3600
- secret_key = api.SecretKey('local', 'local')
+ secret_key = api.SecretKey('local')
version = 1
@@ -282,12 +282,12 @@ class TestToken(test_case.TestCase):
def test_checks_version(self):
class TokenV1(tokens.TokenKind):
- secret_key = api.SecretKey('secret', 'local')
+ secret_key = api.SecretKey('secret')
expiration_sec = 3600
version = 1
class TokenV2(tokens.TokenKind):
- secret_key = api.SecretKey('secret', 'local')
+ secret_key = api.SecretKey('secret')
expiration_sec = 3600
version = 2

Powered by Google App Engine
This is Rietveld 408576698