Merge ~oddbloke/cloud-init/+git/cloud-init:tests into cloud-init:master
Proposed by
Dan Watkins
Status: | Merged |
---|---|
Approved by: | Dan Watkins |
Approved revision: | 32ae9940b2a50a1dc259a577e32417a637addf72 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~oddbloke/cloud-init/+git/cloud-init:tests |
Merge into: | cloud-init:master |
Diff against target: |
49 lines (+4/-1) 4 files modified
cloudinit/net/tests/test_dhcp.py (+1/-0) cloudinit/tests/helpers.py (+1/-0) tests/unittests/test_datasource/test_azure.py (+1/-0) tests/unittests/test_ds_identify.py (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Ryan Harper | Approve | ||
Review via email: mp+363633@code.launchpad.net |
Commit message
tests: fix some slow tests and some leaking state
In test_ds_identify, don't mutate otherwise-static test data. When
running tests in a random order, this was causing failures due to
breaking preconditions for other tests.
In tests/helpers, reset logging level in tearDown. Some of the CLI
tests set the level of the root logger in a way that isn't correctly
reset.
For test_poll_
test_dhcp_
time.sleep; this saves ~11 seconds (or ~40% of previous test time!).
To post a comment you must log in.
PASSED: Continuous integration, rev:911030b3d8f 9f1a1d31f002552 529b77331524f4 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 596/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 596/rebuild
https:/