incorrect argument in calling post_json

Bug #1138233 reported by Baodong (Robert) Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Baodong (Robert) Li

Bug Description

in class NotificationTest in test_api_v2.py:
                 res = self.api.post_json(
                    _get_path('networks'), initial_input, expected_errors)

The last argument expected_errors caused the following

error:======================================================================
ERROR: test_network_create_notifer (unit.test_api_v2.NotificationTest)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/opt/stack/quantum/quantum/tests/unit/test_api_v2.py", line 1275, in test_network_create_notifer
    self._resource_op_notifier('create', 'network')
  File "/opt/stack/quantum/quantum/tests/unit/test_api_v2.py", line 1249, in _resource_op_notifier
    initial_input, expected_errors)
TypeError: wrapper() takes at most 3 arguments (4 given)

Changed in quantum:
assignee: nobody → Baodong (Robert) Li (baoli)
Revision history for this message
Sumit Naiksatam (snaiksat) wrote :

How are you running your tests? Jenkins doesn't see this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23314

Changed in quantum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/23314
Committed: http://github.com/openstack/quantum/commit/50e05960d60928085f8cd35910ac619e9126e213
Submitter: Jenkins
Branch: master

commit 50e05960d60928085f8cd35910ac619e9126e213
Author: Baodong (Robert) Li <email address hidden>
Date: Fri Mar 1 10:56:02 2013 -0800

    Incorrect argument in calling post_json

    The error is due to change in webtest in which post_json is redefined.
    Fix to work with its new definition.

    Fixes bug #1138233

    Change-Id: I08c131bf50886456f0501d5fa8493e05543c5816

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → grizzly-rc1
importance: Undecided → Low
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-rc1 → 2013.1
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.