nova/nova
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
..
accelerator Delete ARQs for an instance when the instance is deleted. 2020-03-24 22:44:18 -07:00
api Merge "Warn when starting services with older than N-1 computes" into stable/ussuri 2021-02-04 22:39:27 +00:00
cmd Add upgrade check about old computes 2021-02-10 17:44:19 +01:00
compute Error anti-affinity violation on migrations 2021-06-25 17:09:36 +00:00
conductor Move confirm resize under semaphore 2020-09-11 17:23:07 +01:00
conf Ignore PCI devices with 32bit domain 2021-06-17 10:51:21 +01:00
console Reject open redirection in the console proxy 2021-07-26 19:26:59 +00:00
db Merge "Prevent archiving of pci_devices records because of 'instance_uuid'" into stable/ussuri 2021-03-12 19:14:49 +00:00
hacking Switch to hacking 2.x 2020-01-17 11:30:40 +00:00
image Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
keymgr
locale Imported Translations from Zanata 2020-04-28 08:35:34 +00:00
network [neutron] Get only ID and name of the SGs from Neutron 2021-06-28 05:44:19 +00:00
notifications Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
objects Raise InstanceMappingNotFound if StaleDataError is encountered 2021-02-23 22:44:04 +00:00
pci Ignore PCI devices with 32bit domain 2021-06-17 10:51:21 +01:00
policies Merge "Add new default roles in quota class policies" 2020-04-21 08:39:41 +00:00
privsep images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
scheduler Enable and use COMPUTE_ACCELERATORS trait. 2020-03-27 22:42:37 -07:00
servicegroup Handle ServiceNotFound in DbDriver._report_state 2019-12-04 09:50:17 -05:00
tests Reduce mocking in test_reject_open_redirect for compat 2021-07-31 01:00:00 +00:00
virt Merge "guestfs: With libguestfs >= v1.41.1 decode returned bytes to string" into stable/ussuri 2021-07-14 19:35:59 +00:00
volume Merge "Add retry to cinder API calls related to volume detach" 2020-04-20 17:36:33 +00:00
__init__.py
availability_zones.py trivial: Fetch 'Service' objects once when building AZs 2020-02-05 21:26:23 +00:00
baserpc.py
block_device.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
cache_utils.py trivial: Remove unused 'cache_utils' APIs 2020-02-05 17:20:28 +00:00
config.py remove support of oslo.messaging 9.8.0 warning message 2020-05-22 12:51:46 +00:00
context.py Reset the cell cache for database access in Service 2020-04-08 17:48:18 +00:00
crypto.py
debugger.py
exception.py Merge "Add missing exception" into stable/ussuri 2021-04-07 22:47:03 +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 trivial: Remove dead code 2019-12-12 10:55:02 +00:00
manager.py
middleware.py Rename 'nova.common.config' module to 'nova.middleware' 2019-08-16 00:53:03 +01:00
monkey_patch.py Correctly disable greendns 2020-09-13 18:29:41 -04:00
policy.py Use oslo policy flag to disable default change warning instead of all 2020-04-15 02:23:32 +00:00
profiler.py
quota.py Make quotas respect instance_list_per_project_cells 2020-05-19 02:20:28 +00:00
rpc.py Remove unnecessary wrapper 2019-05-29 17:14:13 +01:00
safe_utils.py
service.py Warn when starting services with older than N-1 computes 2021-02-01 17:09:01 +01:00
service_auth.py
test.py func tests: move _run_periodics() into base class 2020-03-24 10:10:53 -04:00
utils.py Warn when starting services with older than N-1 computes 2021-02-01 17:09:01 +01:00
version.py
weights.py
wsgi.py