neutron/neutron/tests/tempest
Matthew Edmonds 2ae14cc9ad fix overaggressive 403->404 conversion
When a user is not authorized to see a given resource, we need to
convert HTTP 403s into HTTP 404s to avoid giving away information
that the resource exists. However, the previous code was being
overaggressive and doing this conversion even in some cases where
the user is allowed to see the resource and really needs to know
that what they were trying to do is forbidden, not be told that the
resource doesn't exist. This fixes that logic to only do the 403
to 404 conversion when truly appropriate.

Change-Id: I7a5b0a9e89c8a71490dd74497794a52489f46cd2
Closes-Bug: 1682621
2017-04-14 13:14:47 -04:00
..
api fix overaggressive 403->404 conversion 2017-04-14 13:14:47 -04:00
common Copy tempest.common.tempest_fixtures in to Neutron 2016-03-09 19:01:35 -05:00
scenario Merge "Configure HA as False when creating a router for DVR tests" 2017-04-02 16:50:14 +00:00
services Fix importing old path for exceptions 2017-01-19 14:53:49 +09:00
README.rst Use tempest plugin interface 2016-04-14 15:19:14 +02:00
__init__.py Initial copy of api tests from tempest 2015-03-09 21:24:55 +00:00
config.py Inherit segmentation details for trunk subports if requested 2017-04-03 21:22:38 -07:00
exceptions.py Switch to using in-tree tempest lib 2016-02-26 14:00:11 +00:00
plugin.py tempest: enable hacking rule checks 2016-04-18 23:47:33 +02:00

README.rst

WARNING

The files under this path were copied from tempest as part of the move of the api tests, and they will be removed as required over time to minimize the dependency on the tempest testing framework. While it exists, only neutron.tests.tempest.api and neutron.tests.retargetable should be importing files from this path. neutron.tests.tempest.config uses the global cfg.CONF instance and importing it outside of the api tests has the potential to break Neutron's use of cfg.CONF.