Merge ~jocave/plainbox-provider-resource:net-if-mngr-testing into plainbox-provider-resource:master
Proposed by
Jonathan Cave
Status: | Merged |
---|---|
Approved by: | Jonathan Cave |
Approved revision: | dfb438aa7d5b0a4aac4630aa3d4a9ce8e884b6fd |
Merged at revision: | 93c7db82c2ceea987ad633df28ead17bcfb4f08c |
Proposed branch: | ~jocave/plainbox-provider-resource:net-if-mngr-testing |
Merge into: | plainbox-provider-resource:master |
Diff against target: |
385 lines (+238/-45) 9 files modified
bin/net_if_management.py (+65/-45) tests/test_net_if_management.py (+137/-0) tests/test_net_if_management_data/CARA_T_netplan.yaml (+2/-0) tests/test_net_if_management_data/CARA_T_nmcli.txt (+4/-0) tests/test_net_if_management_data/CASCADE_500_netplan.yaml (+2/-0) tests/test_net_if_management_data/CASCADE_500_nmcli.txt (+5/-0) tests/test_net_if_management_data/RPI2_UC16_CCONF_netplan.yaml (+7/-0) tests/test_net_if_management_data/RPI3B_UC16_CLOUDINIT_netplan.yaml (+13/-0) tests/test_net_if_management_data/XENIAL_DESKTOP_nmcli.txt (+3/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maciej Kisielewski | Approve | ||
Jonathan Cave (community) | Needs Resubmitting | ||
Review via email: mp+370413@code.launchpad.net |
Description of the change
Culmination of the MRs to support provider testing.
In this case the aim was to make sure the net_if_management resource job works across the range of hardware and OS images we need to support.
Two commits included, first one is the changes to the existing script to make it testable and includes the changes that mean it should work on xenial desktop images (problems had been reported during SRU testing for this combination).
Second is the creation of the unit tests themselves. Includes an initial set of test scenarios chosen from reference devices and commonly problematic projects.
To post a comment you must log in.
I'd love to see textwrap's dedent used for those multiline strings in tests.