@@ -145,22 +145,8 @@ def test_volume_list_order(self):
145145 result = self .run_command (['block' , 'volume-list' , '--order=1234567' ])
146146
147147 self .assert_no_fail (result )
148- self .assertEqual ([
149- {
150- 'bytes_used' : None ,
151- 'capacity_gb' : 20 ,
152- 'datacenter' : 'dal05' ,
153- 'id' : 100 ,
154- 'iops' : None ,
155- 'ip_addr' : '10.1.2.3' ,
156- 'lunId' : None ,
157- 'notes' : "{'status': 'availabl" ,
158- 'rep_partner_count' : None ,
159- 'storage_type' : 'ENDURANCE' ,
160- 'username' : 'username' ,
161- 'active_transactions' : None
162- }],
163- json .loads (result .output ))
148+ json_result = json .loads (result .output )
149+ self .assertEqual (json_result [0 ]['id' ], 100 )
164150
165151 @mock .patch ('SoftLayer.BlockStorageManager.list_block_volumes' )
166152 def test_volume_count (self , list_mock ):
@@ -220,7 +206,9 @@ def test_volume_order_performance(self, order_mock):
220206 'Order #478 placed successfully!\n '
221207 ' > Performance Storage\n > Block Storage\n '
222208 ' > 0.25 IOPS per GB\n > 20 GB Storage Space\n '
223- ' > 10 GB Storage Space (Snapshot Space)\n ' )
209+ ' > 10 GB Storage Space (Snapshot Space)\n '
210+ '\n You may run "slcli block volume-list --order 478" to find this block volume '
211+ 'after it is ready.\n ' )
224212
225213 def test_volume_order_endurance_tier_not_given (self ):
226214 result = self .run_command (['block' , 'volume-order' ,
@@ -253,7 +241,9 @@ def test_volume_order_endurance(self, order_mock):
253241 'Order #478 placed successfully!\n '
254242 ' > Endurance Storage\n > Block Storage\n '
255243 ' > 0.25 IOPS per GB\n > 20 GB Storage Space\n '
256- ' > 10 GB Storage Space (Snapshot Space)\n ' )
244+ ' > 10 GB Storage Space (Snapshot Space)\n '
245+ '\n You may run "slcli block volume-list --order 478" to find this block volume '
246+ 'after it is ready.\n ' )
257247
258248 @mock .patch ('SoftLayer.BlockStorageManager.order_block_volume' )
259249 def test_volume_order_order_not_placed (self , order_mock ):
@@ -302,7 +292,9 @@ def test_volume_order_hourly_billing(self, order_mock):
302292 ' > Storage as a Service\n '
303293 ' > Block Storage\n '
304294 ' > 20 GB Storage Space\n '
305- ' > 200 IOPS\n ' )
295+ ' > 200 IOPS\n '
296+ '\n You may run "slcli block volume-list --order 10983647" to find this block volume '
297+ 'after it is ready.\n ' )
306298
307299 @mock .patch ('SoftLayer.BlockStorageManager.order_block_volume' )
308300 def test_volume_order_performance_manager_error (self , order_mock ):
0 commit comments