Merge lp:~daniel-thewatkins/cloud-init/shim_fixes into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Dan Watkins
on 2015-10-09
| Status: | Merged |
|---|---|
| Merged at revision: | 1162 |
| Proposed branch: | lp:~daniel-thewatkins/cloud-init/shim_fixes |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
144 lines (+64/-42) 2 files modified
cloudinit/sources/helpers/azure.py (+16/-10) tests/unittests/test_datasource/test_azure_helper.py (+48/-32) |
| To merge this branch: | bzr merge lp:~daniel-thewatkins/cloud-init/shim_fixes |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | 2015-10-09 | Approve on 2016-02-16 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-08-26.
To post a comment you must log in.
| Scott Moser (smoser) wrote : | # |
| Dan Watkins (daniel-thewatkins) wrote : | # |
Good suggestions, smoser. I've refactored that stuff in to a separate method.
I've also refactored the tests to not dynamically create the packed/encoded strings but instead have them hard-coded. This reduces the complexity of the tests, and also means that you can see the strings that are being tested explicitly; I hope this gives you enough context to understand what it is that we're testing. :)


Odd_Bloke, it seems maybe the part find_endpoint after 'No endpoint found in DHCP config.' could/should be its own method . and then some tests on it. maybe 'extract_ value_from_ leases_ key' or something like that.
other thing, is if you're just reading your two test cases that you added, its very difficult to see how they're any different . since the only difference is in fact the ip address. at very lease a comment would be good there.