tempest/tempest/lib/common/http.py is hard coded to follow re-directs

Bug #1616892 reported by Graham Hayes on 2016-08-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Jens Harbott

Bug Description

tempest/tempest/lib/common/http.py is hardcoded to follow redirects, making it impossible to test if an endpoint is returning a 30X response.

tags: added: tempest.lib
Masayuki Igawa (igawa) wrote :

I think this is not a bug but it's good to have this feature which is handle a 30X response for better testing.

Changed in tempest:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: low-hanging-fruit
Momoka Toyota (mmkmmk57) on 2017-09-15
Changed in tempest:
assignee: nobody → Momoka Toyota (mmkmmk57)
Momoka Toyota (mmkmmk57) on 2017-09-20
Changed in tempest:
assignee: Momoka Toyota (mmkmmk57) → nobody

Fix proposed to branch: master
Review: https://review.openstack.org/580146

Changed in tempest:
assignee: nobody → Dr. Jens Harbott (j-harbott)
status: Triaged → In Progress

Reviewed: https://review.openstack.org/580146
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=3ffa54e446ed2a8bf6758343a3130ae424d3ddc4
Submitter: Zuul
Branch: master

commit 3ffa54e446ed2a8bf6758343a3130ae424d3ddc4
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: I366fa8d1971cd7502a1cd985f5ee6ad5e1ecb216
    Closes-Bug: 1616892

Changed in tempest:
status: In Progress → Fix Released

This issue was fixed in the openstack/tempest 20.0.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers