Skip to content

Commit 8632c93

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix functional test for floatingip add/remove in ComputeV2"
2 parents fe02162 + 0e0f314 commit 8632c93

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

functional/tests/compute/v2/test_server.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import time
1414

1515
from tempest.lib.common.utils import data_utils
16-
import testtools
1716

1817
from functional.common import test
1918
from tempest.lib import exceptions
@@ -218,7 +217,6 @@ def test_server_rescue_unrescue(self):
218217
self.assertEqual("", raw_output)
219218
self.wait_for_status("ACTIVE")
220219

221-
@testtools.skip('this test needs to be re-worked completely')
222220
def test_server_attach_detach_floating_ip(self):
223221
"""Test commands to attach and detach floating IP for server.
224222
@@ -234,12 +232,11 @@ def test_server_attach_detach_floating_ip(self):
234232
"""
235233
self.wait_for_status("ACTIVE")
236234
# attach ip
237-
opts = self.get_show_opts(["id", "ip"])
238-
raw_output = self.openstack('ip floating create '
239-
'--debug ' +
235+
opts = self.get_show_opts(["id", "floating_ip_address"])
236+
raw_output = self.openstack('ip floating create ' +
240237
self.IP_POOL +
241238
opts)
242-
ipid, ip, rol = tuple(raw_output.split('\n'))
239+
ip, ipid, rol = tuple(raw_output.split('\n'))
243240
self.assertNotEqual("", ipid)
244241
self.assertNotEqual("", ip)
245242
raw_output = self.openstack('ip floating add ' + ip + ' ' + self.NAME)

0 commit comments

Comments
 (0)