Merge lp:~tribaal/landscape-client/isolate-lxc-container-tests into lp:~landscape/landscape-client/trunk
Proposed by
Chris Glass
Status: | Work in progress |
---|---|
Proposed branch: | lp:~tribaal/landscape-client/isolate-lxc-container-tests |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
129 lines (+52/-0) 1 file modified
landscape/broker/tests/test_registration.py (+52/-0) |
To merge this branch: | bzr merge lp:~tribaal/landscape-client/isolate-lxc-container-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Landscape | Pending | ||
Landscape | Pending | ||
Review via email: mp+192266@code.launchpad.net |
Description of the change
This fixes the related bug - I added some mocking to make sure we enforce the "container status" part of the registration message to be "", in case the test suite is run inside an LXC container.
To post a comment you must log in.
Unmerged revisions
- 740. By Chris Glass
-
Added some mocking to the tests for container detection, since in case the test
suite is run inside a container the tests would fail.
I think this adds too much noise to the tests. The tests aren't meant to test the
exact contents of the message, they mostly test that a registration message
was sent. I would suggest changing the tests to check parts of the message only.