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.
This commit is contained in:
Jon Wayne Parrott
2016-02-19 16:51:13 -08:00
parent f9e16edc45
commit 3110793306

View File

@@ -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)