From 3110793306b49f901b8009c15a3637b5b96822f1 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Fri, 19 Feb 2016 16:51:13 -0800 Subject: [PATCH] Fix GCE system tests tokeninfo will not tell you the email address for a GCE account. It's sufficient to verify that the token is valid and unexpired. --- scripts/run_gce_system_tests.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/run_gce_system_tests.py b/scripts/run_gce_system_tests.py index 7af1902..aae8345 100644 --- a/scripts/run_gce_system_tests.py +++ b/scripts/run_gce_system_tests.py @@ -48,8 +48,6 @@ class TestComputeEngine(unittest.TestCase): content = content.decode('utf-8') payload = json.loads(content) - self.assertTrue(payload['email'].endswith( - '-compute@developer.gserviceaccount.com')) self.assertEqual(payload['access_type'], 'offline') self.assertLessEqual(int(payload['expires_in']), 3600)