@@ -58,7 +58,7 @@ def get_network(cls):
5858 def server_create (self , name = None ):
5959 """Create server. Add cleanup."""
6060 name = name or data_utils .rand_uuid ()
61- opts = self .get_show_opts (self .FIELDS )
61+ opts = self .get_opts (self .FIELDS )
6262 flavor = self .get_flavor ()
6363 image = self .get_image ()
6464 network = self .get_network ()
@@ -72,7 +72,7 @@ def server_create(self, name=None):
7272
7373 def server_list (self , params = []):
7474 """List servers."""
75- opts = self .get_list_opts (params )
75+ opts = self .get_opts (params )
7676 return self .openstack ('server list' + opts )
7777
7878 def server_delete (self , name ):
@@ -114,7 +114,7 @@ def test_server_list(self):
114114 2) List servers
115115 3) Check output
116116 """
117- opts = self .get_list_opts (self .HEADERS )
117+ opts = self .get_opts (self .HEADERS )
118118 raw_output = self .openstack ('server list' + opts )
119119 self .assertIn (self .NAME , raw_output )
120120
@@ -126,7 +126,7 @@ def test_server_show(self):
126126 2) Show server
127127 3) Check output
128128 """
129- opts = self .get_show_opts (self .FIELDS )
129+ opts = self .get_opts (self .FIELDS )
130130 raw_output = self .openstack ('server show ' + self .NAME + opts )
131131 self .assertEqual (self .NAME + "\n " , raw_output )
132132
@@ -144,13 +144,13 @@ def test_server_metadata(self):
144144 # metadata
145145 raw_output = self .openstack (
146146 'server set --property a=b --property c=d ' + self .NAME )
147- opts = self .get_show_opts (["name" , "properties" ])
147+ opts = self .get_opts (["name" , "properties" ])
148148 raw_output = self .openstack ('server show ' + self .NAME + opts )
149149 self .assertEqual (self .NAME + "\n a='b', c='d'\n " , raw_output )
150150
151151 raw_output = self .openstack (
152152 'server unset --property a ' + self .NAME )
153- opts = self .get_show_opts (["name" , "properties" ])
153+ opts = self .get_opts (["name" , "properties" ])
154154 raw_output = self .openstack ('server show ' + self .NAME + opts )
155155 self .assertEqual (self .NAME + "\n c='d'\n " , raw_output )
156156
@@ -224,7 +224,7 @@ def test_server_rescue_unrescue(self):
224224 """
225225 self .wait_for_status ("ACTIVE" )
226226 # rescue
227- opts = self .get_show_opts (["adminPass" ])
227+ opts = self .get_opts (["adminPass" ])
228228 raw_output = self .openstack ('server rescue ' + self .NAME + opts )
229229 self .assertNotEqual ("" , raw_output )
230230 self .wait_for_status ("RESCUE" )
@@ -248,7 +248,7 @@ def test_server_attach_detach_floating_ip(self):
248248 """
249249 self .wait_for_status ("ACTIVE" )
250250 # attach ip
251- opts = self .get_show_opts (["id" , "floating_ip_address" ])
251+ opts = self .get_opts (["id" , "floating_ip_address" ])
252252 raw_output = self .openstack ('ip floating create ' +
253253 self .IP_POOL +
254254 opts )
@@ -288,7 +288,7 @@ def wait_for_status(self, expected_status='ACTIVE', wait=900, interval=30):
288288 # TODO(thowe): Add a server wait command to osc
289289 failures = ['ERROR' ]
290290 total_sleep = 0
291- opts = self .get_show_opts (['status' ])
291+ opts = self .get_opts (['status' ])
292292 while total_sleep < wait :
293293 status = self .openstack ('server show ' + self .NAME + opts )
294294 status = status .rstrip ()
0 commit comments