-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add compute engine credentials #22
Conversation
a18411f
to
c0b0484
Compare
|
||
__all__ = [ | ||
'Credentials' | ||
] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
|
||
__all__ = [ | ||
'Credentials' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
# pylint: disable=attribute-defined-outside-init | ||
# (pylint doesn't recognize that this is defined in ScopedCredentials) | ||
self._scopes = _helpers.string_to_scopes(info['scopes']) | ||
# pylint: enable=attribute-defined-outside-init |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
from google.auth.compute_engine import credentials | ||
|
||
|
||
class TestCredentials: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
class TestCredentials: | ||
@pytest.fixture(autouse=True) | ||
def credentials(self): | ||
self.credentials = credentials.Credentials() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
assert not self.credentials.requires_scopes | ||
|
||
def test_create_scoped_fails(self): | ||
pass |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
class TestCredentials(object): | ||
@pytest.fixture(autouse=True) | ||
def credentials(self): | ||
self.credentials = credentials.Credentials() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM (after resolving the |
No description provided.