Merge lp:~paelzer/cloud-init/bug-1589174-fix-tests-in-adt-env into lp:~cloud-init-dev/cloud-init/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 1230 |
| Proposed branch: | lp:~paelzer/cloud-init/bug-1589174-fix-tests-in-adt-env |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
727 lines (+205/-179) 5 files modified
cloudinit/config/cc_apt_configure.py (+16/-40) cloudinit/gpg.py (+76/-0) packages/bddeb (+6/-0) tests/unittests/test_handler/test_handler_apt_configure_sources_list.py (+37/-24) tests/unittests/test_handler/test_handler_apt_source.py (+70/-115) |
| To merge this branch: | bzr merge lp:~paelzer/cloud-init/bug-1589174-fix-tests-in-adt-env |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2016-06-07 | Pending | |
|
Review via email:
|
|||
Commit Message
Fixes to the unittests to run in more environments;
As well as some improvements that were found along testing them and due to the fact that we review some of that code again in the scope of curtin currently.
Tests:
- add a test for an alternate keyserver
- harden mirrorfail tests to detect and skip if no network is available
- improve apt_source related tests to work on CentOS7
Changes:
- gpg key handling is now in python instead of a shell blob
- packages/bddeb has an option to sign as someone else than smoser
- make exception handling of apt_source features more specific (i.e. no catch Exception)
- rename some functions to relfect better what they actually do
- capture some helper subp calls output to avoid spilling into stdout when not intended
Description of the Change
Fixes to the unittests to run in more environments;
As well as some improvements that were found along testing them and due to the fact that we review some of that code again in the scope of curtin currently.
Tests:
- add a test for an alternate keyserver
- harden mirrorfail tests to detect and skip if no network is available
- improve apt_source related tests to work on CentOS7
Changes:
- gpg key handling is now in python instead of a shell blob
- packages/bddeb has an option to sign as someone else than smoser
- make exception handling of apt_source features more specific (i.e. no catch Exception)
- rename some functions to relfect better what they actually do
- capture some helper subp calls output to avoid spilling into stdout when not intended
- 1246. By ChristianEhrhardt on 2016-06-07
-
merge with upstream to avoid merge conflicts on the merge proposal
| ChristianEhrhardt (paelzer) wrote : | # |
| Scott Moser (smoser) wrote : | # |
mostly looks good. a couple comments. thank you.
- 1247. By ChristianEhrhardt on 2016-06-09
-
move gpg functions into gpg.py
This helps for cleaner code structuring.
ALong that makeing sure all these functions have a gpg_prefix. - 1248. By ChristianEhrhardt on 2016-06-09
-
improve error handling and reporting in gpg functions
- 1249. By ChristianEhrhardt on 2016-06-09
-
move SkipTest definition to tests/unittests
/helpers. py to be reusable - 1250. By ChristianEhrhardt on 2016-06-09
-
remove unused BIN_APT constant
- 1251. By ChristianEhrhardt on 2016-06-09
-
fix docstring for check connectivity
- 1252. By ChristianEhrhardt on 2016-06-09
-
mock is_resolvable in mirrorfail tests to remove dependency to external net
| ChristianEhrhardt (paelzer) wrote : | # |
Thanks, addressed all you mentioned - will throw it through more testing now.
| ChristianEhrhardt (paelzer) wrote : | # |
Ok, fine in sbuild, a partially shutdown network env and buildd (https:/


I hope it merges without conflict now