Merge ~bjornt/maas:refresh-credendtials-fix into maas:master
Proposed by
Björn Tillenius
Status: | Merged |
---|---|
Approved by: | Björn Tillenius |
Approved revision: | eeec4f9ba2b82fd61672e7f66497a94adce41bf1 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~bjornt/maas:refresh-credendtials-fix |
Merge into: | maas:master |
Diff against target: |
348 lines (+74/-137) 3 files modified
src/provisioningserver/refresh/__init__.py (+10/-6) src/provisioningserver/refresh/tests/test_refresh.py (+52/-130) src/provisioningserver/utils/tests/test_services.py (+12/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Collard (community) | Approve | ||
MAAS Lander | Approve | ||
Review via email: mp+404681@code.launchpad.net |
Commit message
Pass Credentials() rather than a dict in refresh().
maas_api_helpers was refactored not to use plain dicts anymore, but
refresh() wasn't updated to reflect the change.
No tests were failing, since they all mocked at a very high level. I
changed one test to mock at the urlopen level instead, which should
catch issues like this in the future.
I also removed some tests that now are redundant, and changed other
tests to check only what the test is focused on.
To post a comment you must log in.
UNIT TESTS credendtials- fix lp:~bjornt/maas/+git/maas into -b master lp:~maas-committers/maas
-b refresh-
STATUS: FAILED maas-ci. internal: 8080/job/ maas/job/ branch- tester/ 10317/console ea94bed38a0ae81 93d9966fb0
LOG: http://
COMMIT: 556a6059a5ea92e