]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Enable to specify context on POST requests during unittests
authorYushiro FURUKAWA <y.furukawa_2@jp.fujitsu.com>
Thu, 19 Feb 2015 10:11:27 +0000 (19:11 +0900)
committerYushiro FURUKAWA <y.furukawa_2@jp.fujitsu.com>
Thu, 19 Mar 2015 05:38:32 +0000 (14:38 +0900)
commite5cdaf22f82f1aac429e815d72123e3333bacd5d
treeef765ec8d307a1ee4a2b6008a9ec6f88cf6ff4a3
parent9ac4c3ad9332180bbdf32844af56b32e0433e24d
Enable to specify context on POST requests during unittests

NeutronDbPluginV2TestCase has a method 'new_create_request'
to send 'POST' request. But, it doesn't have a argument 'context'.
So, we can not execute create-test as a tenant-user(NOT admin user)

  e.g. FWaaS resources can not test with the context in creating.

This fix enables to specify 'context' when executing new_create_request.

Closes-Bug:  #1423470
Related-Bug: #1408236
Change-Id: Id8dc8cff87ca658e86c192b8da047f0c62989a4e
neutron/tests/unit/test_db_plugin.py