-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Layer Downloader now looks for AWS_CA_BUNDLE if it exists #1143
Conversation
I notice that tox runs the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good over all. I just request a unit test that can verify we are reading the AWS_CA_BUNDLE
env var properly and passing its value to the requests call. Mocking out os.environ
to return a dictionary with this key and value is enough.
I plan on squashing once the testing is good. |
9e24e0d
to
991d03f
Compare
- Added unittest to verify ssl download for Layer Downloader - Mocked os.environ for lack of AWS_CA_BUNDLE for layer downloading - Updated Development guide, howto run unittest with one python version
991d03f
to
0d59e1d
Compare
Squashed & rebased on latest upstream/develop commit |
I'm ready once the test passes |
Hey @DevOpsChris, I pushed a patch to your branch. The I will merge once the tests pass on Travis. Thanks for spending the time on this. |
Hey thank you for finding that quirk out. It looks like Travis is temperamental, it failed on a Go language test. I recommend re-testing it, it seems to make it work again. I wonder if it's a virtual machine timeout issue. |
@DevOpsChris this happens from time to time. It's unclear why but playing whack-a-mole (rerunning) is our current way around it. |
Issue #, if available: #917
Description of changes: This enables the layer downloader to us AWS_CA_BUNDLE environment variable if it exists. It defaults to SSL verify True if it doesn't.
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.