-
Notifications
You must be signed in to change notification settings - Fork 432
New crypt function test fails with system python2.6 on OSX #117
Conversation
Did you run via tox or other? |
both -- fails in tox and directly using |
I'm trying to find documentation, but doesn't Apple ship a fake version of |
On my machines:
|
So, regarding googleapis/google-cloud-python#537, I tested with this and it works even though It still means the tests fails on OS X. Can you get one of your auth contacts to weigh in? |
More context: OS X puts stuff in SRSLY APPLE? Thanks but no thanks. On the flip-side: Heartbleed never impacted OS X since they use a custom OpenSSL (at C level, not just Python). |
@anthmgoogle Anthony, an auth question for you: we're seeing that some of the auth libraries we use for signing behave slightly differently. what OS/openssl version(s) do we want to support? "as many as possible" is my guess, but want to confirm. @dhermes same command as you on the machine where it fails:
maybe |
@craigcitro We still support Mac OS X. The test just fails because the signed content is different so comparing to As I mentioned above, using the signed content still works, i.e. it's still valid. |
ah, maybe i misread that above -- should we just loosen the test to check for either key? @anthmgoogle if everything seems to function properly, do you have any strong feelings from the auth side? |
Yeah we could just create the equivalent for the EDIT: This will cause failures if people ditch Apple's |
i was thinking something more lowbrow -- the input is fixed, and we have a small finite number of possible outputs. just check that it's one of them and call it a day? |
SGTM |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/. If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits. Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name. |
It turns out that the result may be different depending on openSSL versions; rather than play games, we just check that we get one of the expected outputs.
dc6fcef
to
efa2f0f
Compare
CLAs look good, thanks! |
PTAL @dhermes |
Why don't you name |
(test failure is because i cancelled the second run when i pushed to correct author; passing version is here: https://travis-ci.org/google/oauth2client/builds/49809411 as to the filename -- i don't think we're going to encode enough into it to nail down the failing version, so it seems misleading. (for instance, it works for you on OSX -- someone else in the same boat might say "oh maybe we can delete this now".) |
I was just suggesting a comment as to the origin of the file. Do as you wish. |
New crypt function test fails with system python2.6 on OSX
No concerns with checking for either key type. On Fri, Feb 6, 2015 at 3:54 PM, Craig Citro [email protected]
|
/cc @dhermes
i didn't dig too far, but it looks like the system python doesn't behave as expected:
The issue is (likely?) a difference in some crypto dependency, but we should check that things work (or fail appropriately).