nova/nova/tests/unit/console
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
..
rfb Fix accumulated nits 2018-01-16 14:54:04 +00:00
securityproxy Fix accumulated nits 2018-01-16 14:54:04 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_serial.py Remove invalid test methods for config option port_range 2016-06-10 22:32:25 +08:00
test_type.py Make unit tests inherit from test.NoDBTestCase 2015-03-06 09:46:31 +02:00
test_websocketproxy.py Reduce mocking in test_reject_open_redirect for compat 2021-07-31 01:00:00 +00:00