← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1423470] [NEW] Enable to specify context when 'POST' request on unittest

 

Public bug reported:

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.  We can not execute following test:

    [create firewall test]
         user : tenant-user in tenantA (NOT admin user)
         specified_firewall_policy_id: firewall-policy-id which exists in tenantB ( shared=False)

         expected_result: 404 ( firewall_policy_id not found)

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

This fix is depended by https://bugs.launchpad.net/neutron/+bug/1407886

** Affects: neutron
     Importance: Undecided
     Assignee: Yushiro FURUKAWA (y-furukawa-2)
         Status: In Progress

** Changed in: neutron
       Status: New => In Progress

** Changed in: neutron
     Assignee: (unassigned) => Yushiro FURUKAWA (y-furukawa-2)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1423470

Title:
  Enable to specify context when 'POST' request on unittest

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  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.  We can not execute following test:

      [create firewall test]
           user : tenant-user in tenantA (NOT admin user)
           specified_firewall_policy_id: firewall-policy-id which exists in tenantB ( shared=False)

           expected_result: 404 ( firewall_policy_id not found)

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

  This fix is depended by
  https://bugs.launchpad.net/neutron/+bug/1407886

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1423470/+subscriptions


Follow ups

References