summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-11 11:13:38 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-11 14:58:52 +0800
commit0e0f314e2ed05c269be1d204131216dfbfd5df4e (patch)
treee0786b2a61b9fc362086e91ebbf249804c13a9aa /functional
parente0573d34ebb1dee9bd6d95df50e2fe1e9615ed46 (diff)
downloadpython-openstackclient-0e0f314e2ed05c269be1d204131216dfbfd5df4e.tar.gz
Fix functional test for floatingip add/remove in ComputeV2
Updata test_server_attach_detach_floating_ip in test_server.py Change-Id: I2963991dfafbb17431b44e2f37bb26fa4daac9aa
Diffstat (limited to 'functional')
-rw-r--r--functional/tests/compute/v2/test_server.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/functional/tests/compute/v2/test_server.py b/functional/tests/compute/v2/test_server.py
index 845c5c5a..6cb82cb0 100644
--- a/functional/tests/compute/v2/test_server.py
+++ b/functional/tests/compute/v2/test_server.py
@@ -13,7 +13,6 @@
import time
from tempest.lib.common.utils import data_utils
-import testtools
from functional.common import test
from tempest.lib import exceptions
@@ -218,7 +217,6 @@ class ServerTests(test.TestCase):
self.assertEqual("", raw_output)
self.wait_for_status("ACTIVE")
- @testtools.skip('this test needs to be re-worked completely')
def test_server_attach_detach_floating_ip(self):
"""Test commands to attach and detach floating IP for server.
@@ -234,12 +232,11 @@ class ServerTests(test.TestCase):
"""
self.wait_for_status("ACTIVE")
# attach ip
- opts = self.get_show_opts(["id", "ip"])
- raw_output = self.openstack('ip floating create '
- '--debug ' +
+ opts = self.get_show_opts(["id", "floating_ip_address"])
+ raw_output = self.openstack('ip floating create ' +
self.IP_POOL +
opts)
- ipid, ip, rol = tuple(raw_output.split('\n'))
+ ip, ipid, rol = tuple(raw_output.split('\n'))
self.assertNotEqual("", ipid)
self.assertNotEqual("", ip)
raw_output = self.openstack('ip floating add ' + ip + ' ' + self.NAME)