-
Notifications
You must be signed in to change notification settings - Fork 310
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 system tests for service account credentials #51
Conversation
Hrm. No idea why the certificate verification is failing. I'm gonna poke around and see what's up. |
|
||
def verify_environment(): | ||
"""Checks to make sure that requisite data files are available.""" | ||
if not os.path.exists(DATA_DIR): |
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 info['email'] == credentials._service_account_email | ||
assert info['scope'] == ( | ||
'https://www.googleapis.com/auth/userinfo.email ' | ||
'https://www.googleapis.com/auth/userinfo.profile') |
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.
Holy old OpenSSL version, batman!
|
@dhermes I'm not sure what to do here other than disable HTTPS for the system tests. :( |
@jonparrott We've never had issues with HTTPS on Travis. |
@dhermes using httplib2? mild shock httplib2 doesn't do SNI verification at all. Urllib3 is choking because google uses SNI extensively and since the openssl version is too low to include SNI support, it prefers to raise an SSL error instead of just continuing the request. |
Some research: With our Python runtime (debian8) using both With Travis (Ubuntu 12.04 LTS) using |
Ha, should've guessed it. |
LGTM (in light of #52) |
Resolves #42