1313import time
1414
1515from tempest .lib .common .utils import data_utils
16- import testtools
1716
1817from functional .common import test
1918from 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