diff options
author | melanie witt <melwittt@gmail.com> | 2021-07-31 00:30:16 +0000 |
---|---|---|
committer | melanie witt <melwittt@gmail.com> | 2021-07-31 01:00:00 +0000 |
commit | d43b88a33407b1253e7bce70f720a44f7688141f (patch) | |
tree | 5232630fe60cccd949fcbd7eea1c89a6c4e23d59 /roles | |
parent | 719e651e6be277950632e0c2cf5cc9a018344e7b (diff) | |
download | nova-d43b88a33407b1253e7bce70f720a44f7688141f.tar.gz |
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] https://github.com/python/cpython/commit/34eeed42901666fce099947f93dfdfc05411f286
Change-Id: I546d376869a992601b443fb95acf1034da2a8f36
(cherry picked from commit 214cabe6848a1fdb4f5941d994c6cc11107fc4af)
(cherry picked from commit 9c2f29783734cb5f9cb05a08d328c10e1d16c4f1)
(cherry picked from commit 94e265f3ca615aa18de0081a76975019997b8709)
Diffstat (limited to 'roles')
0 files changed, 0 insertions, 0 deletions