Example #1
0
 def testClone_GceServiceAccount(self):
     try:
         with e2e_base.GceServiceAccount() as auth:
             self._RunCloneAndAssert(auth.__class__.__name__,
                                     auth.Project())
     except e2e_base.GceNotConnectedError:
         self.skipTest('Not on GCE')
Example #2
0
 def testPrintAccessToken_Oauth2client(self):
     self.StartObjectPatch(properties.VALUES.auth.disable_load_google_auth,
                           'GetBool',
                           return_value=True)
     with e2e_base.GceServiceAccount() as auth:
         self.Run('auth print-access-token {}'.format(auth.Account()))
     self.AssertOutputNotEquals('')
 def testPrintAccessToken(self):
   with e2e_base.GceServiceAccount() as auth:
     self.Run('auth print-access-token {}'.format(auth.Account()))
   self.AssertOutputNotEquals('')
 def testGoogleAuth(self):
   with e2e_base.GceServiceAccount() as auth:
     # dns surface is on google-auth
     self.Run('dns managed-zones list --project {} --account={}'.format(
         auth.Project(), auth.Account()))