Stub out Torrent URL lookup fn in tests

Bug #1211396 reported by Rick Harris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Rick Harris

Bug Description

Torrent URL lookup functions are registered via entry-points.

If the tests run in an environment where the production lookup function is present, it will use that; not what we want for tests.

Instead, we should stubout entry-points so we have a mock URL lookup function.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Rick Harris (rconradharris)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/41465
Committed: http://github.com/openstack/nova/commit/feb747523df20d6471b77fa120ef19133ea20bfc
Submitter: Jenkins
Branch: master

commit feb747523df20d6471b77fa120ef19133ea20bfc
Author: Brian Elliott <email address hidden>
Date: Mon Jul 29 23:49:33 2013 +0000

    Stub out entry points in LookupTorrentURLTestCase

    Torrent URL lookup functions are registered via entry-points.

    If the tests run in an environment where the production lookup function is
    present, it will use that; not what we want for tests.

    Instead, we should stubout entry-points so we have a mock URL lookup function.

    Fixes bug 1211396

    Change-Id: Ibc2b34bfdcecaad4c53fb00e925a8b21965d8577

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.2
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.