Allow to create a rest_client not following redirects
Some tests need to verify that the first response from an API is indeed
a redirect, this can not be done if the client automatically follows
redirects. Introduce a parameter that allows consumers to disable the
default behaviour, so that they can see the 301 response instead.
Reviewed: https:/ /review. openstack. org/580146 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=3ffa54e446e d2a8bf6758343a3 130ae424d3ddc4
Committed: https:/
Submitter: Zuul
Branch: master
commit 3ffa54e446ed2a8 bf6758343a3130a e424d3ddc4
Author: Jens Harbott <email address hidden>
Date: Wed Jul 4 11:59:49 2018 +0000
Allow to create a rest_client not following redirects
Some tests need to verify that the first response from an API is indeed
a redirect, this can not be done if the client automatically follows
redirects. Introduce a parameter that allows consumers to disable the
default behaviour, so that they can see the 301 response instead.
Change-Id: I366fa8d1971cd7 502a1cd985f5ee6 ad5e1ecb216
Closes-Bug: 1616892