Merge ~smoser/cloud-init:cleanup/ec2-initial-tests into cloud-init:master
| Status: | Merged |
|---|---|
| Approved by: | Scott Moser on 2017-07-25 |
| Approved revision: | 7181d66d3693919615a884f4e9f43aa14b422244 |
| Merged at revision: | ebdbf30c0274f078f7a66f6dc9efc8a22a220757 |
| Proposed branch: | ~smoser/cloud-init:cleanup/ec2-initial-tests |
| Merge into: | cloud-init:master |
| Diff against target: |
233 lines (+212/-4) 2 files modified
cloudinit/sources/DataSourceEc2.py (+10/-4) tests/unittests/test_datasource/test_ec2.py (+202/-0) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Chad Smith | 2017-07-17 | Approve on 2017-07-18 | |
| Server Team CI bot | continuous-integration | Approve on 2017-07-18 | |
|
Review via email:
|
|||
Commit Message
tests: Add initial tests for EC2 and improve a docstring.
EC2 was the original, but this adds some initial tests for that datasource.
Also updates a docstring for an internal method.
| Ryan Harper (raharper) wrote : | # |
Inline comment below
- 8a99a17... by Scott Moser on 2017-07-18
| Scott Moser (smoser) wrote : | # |
i cleaned up that register_helper a bit, thanks for the review, Ryan.
PASSED: Continuous integration, rev:7181d66d369
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: CentOS 6 & 7: Build & Test
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/
| Chad Smith (chad.smith) wrote : | # |
Approve as is, just some minor suggestions to think about. Tackle them if you think it's worth it. Since Aliyun also does the same kindof mocking, it'd be nice if we could put mock_metadata function into a common tests.unittests
| Scott Moser (smoser) wrote : | # |
i agree on the remove of duplication. i tried to get you to do that for me :)
- b37f805... by Scott Moser on 2017-07-25
| Scott Moser (smoser) wrote : | # |
you did ack this, so i'lll just pull this.


PASSED: Continuous integration, rev:fe6f267f52e 3532693df0e7684 012cd8b58792cc /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 43/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: CentOS 6 & 7: Build & Test
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 43/rebuild
https:/