neutron-lbaas/neutron_lbaas/tests/unit
Michael Johnson 4099ed8584 Fix proxy extension for neutron RBAC
Neutron is looking for 'tenant_id' in the response from the proxy plugin.
This patch makes sure the 'project_id' returned from octavia is copied over
to the 'tenant_id' in the response to neutron or assigns the one from the
context.

This patch also adapts Octavia's 403 Forbidden errors to neutron's 404 [1].
[1] https://docs.openstack.org/neutron/pike/contributor/internals/ \
    policy.html#request-authorization

Neutron is also returning a 404 instead of a status "DELETED". This
adjusts that.

Neutron/tempest will ask for the tenant_id field - replace this with
project_id.

Handle 403 Forbidden

Fixes bug to not pass on empty string to Octavia

Story: 2002602
Task: 22220

Change-Id: I840b5e2e8a95a4b3e166db9f9aa44590441aa7b6
2018-08-09 15:04:37 +02:00
..
agent Add setup_privsep in agent's main function 2017-10-16 10:10:02 +00:00
common Fix a unit test for cryptography 2.1 2017-10-30 15:42:05 -07:00
db Fix proxy extension for neutron RBAC 2018-08-09 15:04:37 +02:00
drivers Fix cookie session persistence in namespace driver 2018-07-05 21:38:19 -07:00
services Add "delay" value determination for health monitor 2017-08-02 14:33:06 +08:00
__init__.py Post-split, get jenkins tests passing 2014-12-08 22:52:02 -07:00
test_agent_scheduler.py use api attributes from neutron-lib 2018-01-12 10:15:59 -07:00