nova/nova/tests
melanie witt d43b88a334 Reduce mocking in test_reject_open_redirect for compat
This is a followup for change Ie36401c782f023d1d5f2623732619105dc2cfa24
to reduce mocking in the unit test coverage for it.

While backporting the bug fix, it was found to be incompatible with
earlier versions of Python < 3.6 due to a difference in internal
implementation [1].

This reduces the mocking in the unit test to be more agnostic to the
internals of the StreamRequestHandler (ancestor of
SimpleHTTPRequestHandler) and work across Python versions >= 2.7.

Related-Bug: #1927677

[1] 34eeed4290

Change-Id: I546d376869a992601b443fb95acf1034da2a8f36
(cherry picked from commit 214cabe684)
(cherry picked from commit 9c2f297837)
(cherry picked from commit 94e265f3ca)
2021-07-31 01:00:00 +00:00
..
functional Merge "Prevent archiving of pci_devices records because of 'instance_uuid'" into stable/ussuri 2021-03-12 19:14:49 +00:00
unit Reduce mocking in test_reject_open_redirect for compat 2021-07-31 01:00:00 +00:00
__init__.py
fixtures.py Ensure source compute is up when confirming a resize 2020-09-22 11:46:16 +01:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00