Test maasserver.tests.test_api.TestNodeAPI.test_PUT_rejects_invalid_data fails with Django 1.5

Bug #1190530 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Jeroen T. Vermeulen

Bug Description

The behavior of Django's test client w.r.t. PUT requests was changed in Django 1.5 [0]. It causes some tests to fail [1] when running tests on saucy (among which maasserver.tests.test_api.TestNodeAPI.test_PUT_rejects_invalid_data).

This quick hack fixes the problem with the test_PUT_rejects_invalid_data test: [2]. A proper fix probably needs to override the test client's put() method.

Note that this is affecting only the tests and that's why the integration tests on saucy pass.

[0] https://docs.djangoproject.com/en/dev/releases/1.5/#options-put-and-delete-requests-in-the-test-client
[1] http://pastebin.ubuntu.com/5758493/
[2] http://paste.ubuntu.com/5760872/

Related branches

tags: added: tech-debt
Changed in maas:
importance: High → Critical
Changed in maas:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Changed in maas:
status: Fix Released → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.