DRY up URL version prefix usage in WSGI tests

Bug #1285219 reported by Kurt Griffiths on 2014-02-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Victoria Martinez de la Cruz

Bug Description

Rather than writing this sort of thing all over the place:

    self.simulate_put(self.url_prefix + '/queues/fizbat', '7e55e1a7e')

We should be able to set the prefix once, and write this instead:

    self.simulate_put('/queues/fizbat', '7e55e1a7e')

Changed in marconi:
assignee: nobody → Victoria Martínez de la Cruz (vkmc)
Changed in marconi:
status: New → Confirmed

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

Changed in marconi:
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/78400
Committed: https://git.openstack.org/cgit/openstack/marconi/commit/?id=2d53d8840e99e337dcb90eeb1ddce7129e4524c4
Submitter: Jenkins
Branch: master

commit 2d53d8840e99e337dcb90eeb1ddce7129e4524c4
Author: Victoria Martínez de la Cruz <email address hidden>
Date: Wed Mar 5 16:35:18 2014 -0300

    Slighty refactored url_prefix usage in WSGI tests

    Several calls to url_prefix has been replaced
    with the usage of a common variable in WSGI tests
    in order to adjust to DRY principles.

    Change-Id: I056e1e8879a97f6a30aff924e55bdf50897c08e4
    Closes-Bug: #1285219

Changed in marconi:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2014-04-16
Changed in marconi:
milestone: none → icehouse-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2014-04-17
Changed in marconi:
milestone: icehouse-rc1 → 2014.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers