Merge ~chad.smith/cloud-init:gce-mock-test-leak into cloud-init:master
| Status: | Merged |
|---|---|
| Merge reported by: | Chad Smith |
| Merged at revision: | e0649d1ca2a8958829f56e24c4d8b08d6f16fd72 |
| Proposed branch: | ~chad.smith/cloud-init:gce-mock-test-leak |
| Merge into: | cloud-init:master |
| Diff against target: |
14 lines (+3/-2) 1 file modified
tests/unittests/test_datasource/test_gce.py (+3/-2) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | 2017-07-12 | Approve on 2017-07-12 | |
| Server Team CI bot | continuous-integration | Approve on 2017-07-12 | |
|
Review via email:
|
|||
Commit Message
test_gce: Fix invalid mock of platform_
The mock of platform_
A False from platform_
Description of the Change
test_gce: Fix invalid mock of platform_
The mock of platform_
A False from platform_
LP:#1703935
| Scott Moser (smoser) wrote : | # |
I think i've used that general work flow other places. :-(
ie, initialize a mock in a setUp with one value and then assumed others can overrwrite the .return_value
the change looks fine here though.


PASSED: Continuous integration, rev:e0649d1ca2a 8958829f56e24c4 d8b08d6f16fd72 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 37/
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/ 37/rebuild
https:/