Merge lp://staging/~rvb/maas/bug-1337190 into lp://staging/~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2503 |
Proposed branch: | lp://staging/~rvb/maas/bug-1337190 |
Merge into: | lp://staging/~maas-committers/maas/trunk |
Diff against target: |
19 lines (+2/-6) 1 file modified
src/maasserver/tests/test_api_nodegroup.py (+2/-6) |
To merge this branch: | bzr merge lp://staging/~rvb/maas/bug-1337190 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+225444@code.staging.launchpad.net |
Commit message
Fix test_updates_
Description of the change
The problem was that MAC addresses could be linked to the same interface because the interface was chosen at random in:
for i in range(4)
}
As a consequence, the call to `get_random_
leases = {
for mac_address, interface in mac_addresses.
}
The result was a failure of the whole test because the leases would be missing an entry.
My solution restricts a bit what the test actually tests but I don't think it's a problem in practice because what update_