Merge ~larsks/cloud-init:bug/ec2-tests into cloud-init:master
Proposed by
Lars Kellogg-Stedman
Status: | Superseded |
---|---|
Proposed branch: | ~larsks/cloud-init:bug/ec2-tests |
Merge into: | cloud-init:master |
Diff against target: |
98 lines (+34/-3) 2 files modified
cloudinit/url_helper.py (+9/-1) tests/unittests/test_datasource/test_ec2.py (+25/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Needs Fixing | |
cloud-init Commiters | Pending | ||
Review via email: mp+329654@code.launchpad.net |
Description of the change
test_ec2: metadata tests were mocking wrong urls
The ec2 metadata tests were only mocking one version of the metadata
api, but requests were made against both. This fixes _setup_ds to
register mock data at both versions of the API, and adds a fallback
handler to raise an http error on requests to un-mocked requests.
To post a comment you must log in.
FAILED: Continuous integration, rev:177c0edb53d 53479839f5a7237 83a72a8ae17b5e /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 209/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 209/rebuild
https:/