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

Bug #1616892 reported by Graham Hayes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Wishlist
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
Revision history for this message
Tim Simmons (timsim) wrote :
Revision history for this message
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)
Changed in tempest:
assignee: nobody → Momoka Toyota (mmkmmk57)
Momoka Toyota (mmkmmk57)
Changed in tempest:
assignee: Momoka Toyota (mmkmmk57) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 20.0.0

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.