-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make service_account_email public, read-only (#76)
- Loading branch information
Jon Wayne Parrott
authored
Nov 8, 2016
1 parent
8a7e506
commit 61ffb05
Showing
9 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ def test_default_state(self): | |
assert not self.credentials.expired | ||
# Scopes aren't needed | ||
assert not self.credentials.requires_scopes | ||
# Service account email hasn't been populated | ||
assert self.credentials.service_account_email == 'default' | ||
|
||
@mock.patch( | ||
'google.auth._helpers.utcnow', return_value=datetime.datetime.min) | ||
|
@@ -58,7 +60,7 @@ def test_refresh_success(self, get_mock, now_mock): | |
datetime.datetime.min + datetime.timedelta(seconds=500)) | ||
|
||
# Check the credential info | ||
assert (self.credentials._service_account_email == | ||
assert (self.credentials.service_account_email == | ||
'[email protected]') | ||
assert self.credentials._scopes == ['one', 'two'] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters