novaclient functional tests hardcoded assumptions about network setup

Bug #1510975 reported by Ralf Haferkamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
Ralf Haferkamp

Bug Description

Some of the functional tests for novaclient make assumptions about the network setup which should be avoided. E.g. the tests in
TestServersListNovaClient attaches instances to the first network returned by net-list. That only works if the first network returned is not an external network. Something similar is true for TestServersAPI which expects the default network to be called "private".

I guess it makes sense to allow to override that behaviour (by ENV?) to all running the functional tests against a setup that doesn't fulfill those requirements.

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

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

Changed in python-novaclient:
assignee: nobody → Ralf Haferkamp (rhafer)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/239971
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=8a2ed13620e78f4b82e68028e86745e8c86240b0
Submitter: Jenkins
Branch: master

commit 8a2ed13620e78f4b82e68028e86745e8c86240b0
Author: Ralf Haferkamp <email address hidden>
Date: Wed Oct 28 15:33:22 2015 +0100

    Allow to specify a network for functional tests

    Currently the tests just attach instances to the first network returned
    by "net-list". That might however not be the right thing in some
    environments. This change allows to override the default network via the
    environment variable "OS_NOVACLIENT_NETWORK". If not specified the
    test will fallback to the old behaviour and just use the first network.

    Closes-Bug: #1510975
    Change-Id: Ie682111127584a33d8e96377d812d3a6352c760d

Changed in python-novaclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-novaclient 3.3.0

This issue was fixed in the openstack/python-novaclient 3.3.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.