diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2017-05-03 14:39:35 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2017-05-03 14:41:35 -0500 |
| commit | 07a4363e995716f9b898623d9e43746fd36b5172 (patch) | |
| tree | 788dc09190a7865c7b94eb72aef2801dec147626 /openstackclient | |
| parent | 941e189ac14f2fdce3e70c3dd1ce85aa25fc4782 (diff) | |
| download | python-openstackclient-07a4363e995716f9b898623d9e43746fd36b5172.tar.gz | |
Skip floating ip attach functional test on nova-net
As of Ocata release Nova forces nova-network to run in a cells v1
configuration. Floating IP and network functions currently do not
work in the gate jobs so we have to skip this. It is known to work
tested against a Mitaka nova-net DevStack without cells.
Change-Id: I74f67ac8eb12c7a649ddcbd7979cf745fb35cc0c
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/tests/functional/compute/v2/test_server.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/openstackclient/tests/functional/compute/v2/test_server.py b/openstackclient/tests/functional/compute/v2/test_server.py index a86c0c67..7d54b6a6 100644 --- a/openstackclient/tests/functional/compute/v2/test_server.py +++ b/openstackclient/tests/functional/compute/v2/test_server.py @@ -203,19 +203,19 @@ class ServerTests(common.ComputeTestCase): def test_server_attach_detach_floating_ip(self): """Test floating ip create/delete; server add/remove floating ip""" + if not self.haz_network: + # NOTE(dtroyer): As of Ocata release Nova forces nova-network to + # run in a cells v1 configuration. Floating IP + # and network functions currently do not work in + # the gate jobs so we have to skip this. It is + # known to work tested against a Mitaka nova-net + # DevStack without cells. + self.skipTest("No Network service present") + cmd_output = self.server_create() name = cmd_output['name'] self.wait_for_status(name, "ACTIVE") - if not self.haz_network: - # nova-net needs a public subnet - cmd_output = json.loads(self.openstack( - 'network create -f json ' + - '--subnet 8.6.7.5/28 ' + - 'public' - )) - self.addCleanup(self.openstack, 'network delete public') - # attach ip cmd_output = json.loads(self.openstack( 'floating ip create -f json ' + |
