Merge lp:~ltrager/maas/fix_websocket_tests into lp:~maas-committers/maas/trunk
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4672 |
Proposed branch: | lp:~ltrager/maas/fix_websocket_tests |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
228 lines (+47/-35) 2 files modified
src/maasserver/tests/test_webapp.py (+3/-4) src/maasserver/websockets/tests/test_websockets.py (+44/-31) |
To merge this branch: | bzr merge lp:~ltrager/maas/fix_websocket_tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Approve | ||
Review via email: mp+286851@code.launchpad.net |
Commit message
Stop using deprecated features on the DummyRequest object for twisted 16.
Description of the change
MAAS was using deprecated features from the DummyRequest object during testing. These deprecated features have been removed from Twisted 16 which was just pushed into main on Xenial. I've updated our tests to use the new way which allows our unit tests to pass. I looked around the codebase and it appears that we did convert Requests to the new method awhile back so only the unit tests had to be fixed.
Upstream bugs on removing deprecated features
http://
http://
To post a comment you must log in.
Looks good; I can verify that this work with the latest Twisted.
Please note that after this branch lands, python3-twisted versions less than 16.0 will no longer work. (I tested it.) If you have Twisted 15.5, you'll get the following errors when running the tests in maasserver. websockets. tests:
https:/ /paste. ubuntu. com/15175321/