@@ -1165,10 +1165,10 @@ def test_boot_with_poll_to_check_VM_state_error(self):
11651165
11661166 def test_boot_named_flavor (self ):
11671167 self .run_command (["boot" , "--image" , FAKE_UUID_1 ,
1168- "--flavor" , "512 MB Server" ,
1168+ "--flavor" , "512 MiB Server" ,
11691169 "--max-count" , "3" , "server" ])
11701170 self .assert_called ('GET' , '/v2/images/' + FAKE_UUID_1 , pos = 0 )
1171- self .assert_called ('GET' , '/flavors/512 MB Server' , pos = 1 )
1171+ self .assert_called ('GET' , '/flavors/512 MiB Server' , pos = 1 )
11721172 self .assert_called ('GET' , '/flavors?is_public=None' , pos = 2 )
11731173 self .assert_called ('GET' , '/flavors/2' , pos = 3 )
11741174 self .assert_called (
@@ -1404,15 +1404,15 @@ def test_flavor_show_with_alphanum_id(self):
14041404 self .assert_called_anytime ('GET' , '/flavors/aa1' )
14051405
14061406 def test_flavor_show_by_name (self ):
1407- self .run_command (['flavor-show' , '128 MB Server' ])
1408- self .assert_called ('GET' , '/flavors/128 MB Server' , pos = 0 )
1407+ self .run_command (['flavor-show' , '128 MiB Server' ])
1408+ self .assert_called ('GET' , '/flavors/128 MiB Server' , pos = 0 )
14091409 self .assert_called ('GET' , '/flavors?is_public=None' , pos = 1 )
14101410 self .assert_called ('GET' , '/flavors/aa1' , pos = 2 )
14111411 self .assert_called ('GET' , '/flavors/aa1/os-extra_specs' , pos = 3 )
14121412
14131413 def test_flavor_show_by_name_priv (self ):
1414- self .run_command (['flavor-show' , '512 MB Server' ])
1415- self .assert_called ('GET' , '/flavors/512 MB Server' , pos = 0 )
1414+ self .run_command (['flavor-show' , '512 MiB Server' ])
1415+ self .assert_called ('GET' , '/flavors/512 MiB Server' , pos = 0 )
14161416 self .assert_called ('GET' , '/flavors?is_public=None' , pos = 1 )
14171417 self .assert_called ('GET' , '/flavors/2' , pos = 2 )
14181418 self .assert_called ('GET' , '/flavors/2/os-extra_specs' , pos = 3 )
@@ -1444,7 +1444,7 @@ def test_flavor_access_add_by_id(self):
14441444 {'addTenantAccess' : {'tenant' : 'proj2' }})
14451445
14461446 def test_flavor_access_add_by_name (self ):
1447- self .run_command (['flavor-access-add' , '512 MB Server' , 'proj2' ])
1447+ self .run_command (['flavor-access-add' , '512 MiB Server' , 'proj2' ])
14481448 self .assert_called ('POST' , '/flavors/2/action' ,
14491449 {'addTenantAccess' : {'tenant' : 'proj2' }})
14501450
@@ -1454,7 +1454,7 @@ def test_flavor_access_remove_by_id(self):
14541454 {'removeTenantAccess' : {'tenant' : 'proj2' }})
14551455
14561456 def test_flavor_access_remove_by_name (self ):
1457- self .run_command (['flavor-access-remove' , '512 MB Server' , 'proj2' ])
1457+ self .run_command (['flavor-access-remove' , '512 MiB Server' , 'proj2' ])
14581458 self .assert_called ('POST' , '/flavors/2/action' ,
14591459 {'removeTenantAccess' : {'tenant' : 'proj2' }})
14601460
@@ -2336,8 +2336,8 @@ def test_usage_list(self):
23362336 'start=2000-01-20T00:00:00&' +
23372337 'end=2005-02-01T00:00:00&' +
23382338 'detailed=1' )
2339- # Servers, RAM MB -Hours, CPU Hours, Disk GiB-Hours
2340- self .assertIn ('1 | 25451.76 | 49.71 | 0.00' , stdout )
2339+ # Servers, RAM MiB -Hours, CPU Hours, Disk GiB-Hours
2340+ self .assertIn ('1 | 25451.76 | 49.71 | 0.00' , stdout )
23412341
23422342 def test_usage_list_stitch_together_next_results (self ):
23432343 cmd = 'usage-list --start 2000-01-20 --end 2005-02-01'
@@ -2357,8 +2357,8 @@ def test_usage_list_stitch_together_next_results(self):
23572357 'start=2000-01-20T00:00:00&'
23582358 'end=2005-02-01T00:00:00&'
23592359 'marker=%s&detailed=1' % (marker ), pos = pos + 1 )
2360- # Servers, RAM MB -Hours, CPU Hours, Disk GiB-Hours
2361- self .assertIn ('2 | 50903.53 | 99.42 | 0.00' , stdout )
2360+ # Servers, RAM MiB -Hours, CPU Hours, Disk GiB-Hours
2361+ self .assertIn ('2 | 50903.53 | 99.42 | 0.00' , stdout )
23622362
23632363 def test_usage_list_no_args (self ):
23642364 timeutils .set_time_override (datetime .datetime (2005 , 2 , 1 , 0 , 0 ))
@@ -2377,8 +2377,8 @@ def test_usage(self):
23772377 '/os-simple-tenant-usage/test?' +
23782378 'start=2000-01-20T00:00:00&' +
23792379 'end=2005-02-01T00:00:00' )
2380- # Servers, RAM MB -Hours, CPU Hours, Disk GiB-Hours
2381- self .assertIn ('1 | 25451.76 | 49.71 | 0.00' , stdout )
2380+ # Servers, RAM MiB -Hours, CPU Hours, Disk GiB-Hours
2381+ self .assertIn ('1 | 25451.76 | 49.71 | 0.00' , stdout )
23822382
23832383 def test_usage_stitch_together_next_results (self ):
23842384 cmd = 'usage --start 2000-01-20 --end 2005-02-01'
@@ -2397,8 +2397,8 @@ def test_usage_stitch_together_next_results(self):
23972397 'start=2000-01-20T00:00:00&'
23982398 'end=2005-02-01T00:00:00&'
23992399 'marker=%s' % (marker ), pos = pos + 1 )
2400- # Servers, RAM MB -Hours, CPU Hours, Disk GiB-Hours
2401- self .assertIn ('2 | 50903.53 | 99.42 | 0.00' , stdout )
2400+ # Servers, RAM MiB -Hours, CPU Hours, Disk GiB-Hours
2401+ self .assertIn ('2 | 50903.53 | 99.42 | 0.00' , stdout )
24022402
24032403 def test_usage_no_tenant (self ):
24042404 self .run_command ('usage --start 2000-01-20 --end 2005-02-01' )
0 commit comments