nova/nova
Eric Fried 52fe8c0285 Stop using NoAuthMiddleware in tests
This rips NoAuthMiddleware completely out of functional tests by:
- Removing our override of [api]auth_strategy in ConfFixture, allowing
  it to default to ``keystone``. This causes the fake wsgi setup to go
  through the same pipeline as real API requests; so making that work
  entails...
- Mocking out the keystonecontext piece of the paste pipeline to create
  the context previously mashed (somewhat inappropriately) into
  NoAuthMiddleware. In the future we may want to mock this more
  shallowly or find a way to make the req more realistic so it needn't
  be mocked at all, but for now this is close to what the noauth2
  pipeline used to do.
- Stubbing out the keystonemiddleware piece of the paste pipeline. In
  the future we should try to use keystonemiddleware's AuthTokenFixture
  so our tests can occur in a more realistic environment, but for now
  this is just mimicking what the noauth2 pipeline used to do; except
  for...
- Removing the authentication portion of the TestOpenStackClient. This
  used to make an actual request(), which landed in NoAuthMiddleware,
  which was hacking together some headers (based, it appears, on a
  protocol which is many years out of date and no longer approximates
  what keystone does, which should be the point if it's going to exist
  at all). So now we just hack up the necessary headers inline.
- Doing the addition of project_id in request URIs in OSAPIFixture.
  This is another thing that NoAuthMiddleware was doing inappropriately
  (IRL the project_id will either be part of the request from the start,
  or it won't). It was also only doing it part of the time; as a result,
  a couple of tests requesting version documents, which were previously
  not expecting the project ID to be present, needed to be modified to
  expect it. This better reflects reality.

Change-Id: I459a605b4a9390f0e36356ca1fe432948159acd4
2019-10-14 11:43:52 -05:00
..
api Stop using NoAuthMiddleware in tests 2019-10-14 11:43:52 -05:00
cmd Merge "Do not print default dicts during heal_allocations" 2019-10-02 16:04:36 +00:00
compute compute: refactor volume bdm rollback error handling 2019-10-08 11:55:07 +01:00
conductor Merge "Set Instance AZ from Selection AZ during migrate reschedule" 2019-10-04 23:38:35 +00:00
conf Deprecate [api]auth_strategy and noauth2 2019-10-09 15:16:07 -05:00
console Merge "objects: Remove ConsoleAuthToken.to_dict" 2019-09-06 18:51:31 +00:00
db Add reserved schema migrations for Ussuri 2019-10-03 08:47:36 -07:00
hacking Add a hacking rule for useless assertions 2019-08-21 14:42:53 +09:00
image [Trivial]Removed unused helper _extract_query_params 2019-08-29 10:12:52 +08:00
ipv6
keymgr
locale Imported Translations from Zanata 2019-03-22 06:26:27 +00:00
network Remove upgrade specific info from user facing exception text 2019-09-24 10:44:46 +02:00
notifications Update api-ref location 2019-07-22 19:17:28 +02:00
objects Merge "Add Selection.availability_zone field" 2019-10-04 17:24:56 +00:00
pci hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
policies Add server sub-resource topology API 2019-08-30 10:04:56 +08:00
privsep libvirt: Support VM creation with vpmems and vpmems cleanup 2019-09-13 08:50:35 +00:00
scheduler Add support for translating CPU policy extra specs, image meta 2019-09-18 00:21:10 +01:00
servicegroup [Trivial fix]Remove unnecessary slash 2019-05-06 16:23:59 +08:00
tests Stop using NoAuthMiddleware in tests 2019-10-14 11:43:52 -05:00
virt Merge "Create volume attachment during boot from volume in compute" 2019-10-04 23:39:03 +00:00
vnc xvp: Remove use of '_LI' marker 2019-06-19 10:04:45 +01:00
volume Add docstring to check_availability_zone function 2019-08-22 18:38:51 +00:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
availability_zones.py Always pass HostAPI to get_availability_zones 2019-04-26 15:30:48 -04:00
baserpc.py
block_device.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
cache_utils.py
config.py Rename 'nova.common.config' module to 'nova.middleware' 2019-08-16 00:53:03 +01:00
context.py [Gate fix] Avoid use cell_uuid before assignment 2019-10-07 14:40:39 -04:00
crypto.py
debugger.py
exception.py libvirt: Support VM creation with vpmems and vpmems cleanup 2019-09-13 08:50:35 +00:00
exception_wrapper.py
filters.py filters: Stop handling cells v1 2019-06-12 16:09:46 +01:00
hooks.py
i18n.py
loadables.py
manager.py
middleware.py Rename 'nova.common.config' module to 'nova.middleware' 2019-08-16 00:53:03 +01:00
monkey_patch.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
policy.py Move default policy target 2019-06-03 16:44:50 +01:00
profiler.py
quota.py Log quota legacy method warning only if counting from placement 2019-06-17 21:31:53 +00:00
rpc.py Remove unnecessary wrapper 2019-05-29 17:14:13 +01:00
safe_utils.py
service.py Remove nova-consoleauth 2019-07-05 15:04:47 +00:00
service_auth.py
test.py Add TODO note for mox removal 2019-09-27 13:18:09 +00:00
utils.py Remove workaround for bug #1709118 2019-10-07 16:33:20 +00:00
version.py
weights.py Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
wsgi.py