@@ -16,44 +16,7 @@ def test_access_list(self):
1616 result = self .run_command (['block' , 'access-list' , '1234' ])
1717
1818 self .assert_no_fail (result )
19- self .assertEqual ([
20- {
21- 'username' : 'joe' ,
22- 'name' : 'test-server.example.com' ,
23- 'type' : 'VIRTUAL' ,
24- 'host_iqn' : 'test-server' ,
25- 'password' : '12345' ,
26- 'private_ip_address' : '10.0.0.1' ,
27- 'id' : 1234 ,
28- },
29- {
30- 'username' : 'joe' ,
31- 'name' : 'test-server.example.com' ,
32- 'type' : 'HARDWARE' ,
33- 'host_iqn' : 'test-server' ,
34- 'password' : '12345' ,
35- 'private_ip_address' : '10.0.0.2' ,
36- 'id' : 1234 ,
37- },
38- {
39- 'username' : 'joe' ,
40- 'name' : '10.0.0.1/24 (backend subnet)' ,
41- 'type' : 'SUBNET' ,
42- 'host_iqn' : 'test-server' ,
43- 'password' : '12345' ,
44- 'private_ip_address' : None ,
45- 'id' : 1234 ,
46- },
47- {
48- 'username' : 'joe' ,
49- 'name' : '10.0.0.1 (backend ip)' ,
50- 'type' : 'IP' ,
51- 'host_iqn' : 'test-server' ,
52- 'password' : '12345' ,
53- 'private_ip_address' : None ,
54- 'id' : 1234 ,
55- }],
56- json .loads (result .output ),)
19+ self .assert_called_with ('SoftLayer_Network_Storage' , 'getObject' )
5720
5821 def test_volume_cancel (self ):
5922 result = self .run_command ([
@@ -511,3 +474,7 @@ def test_duplicate_order(self, order_mock):
511474 self .assertEqual (result .output ,
512475 'Order #24601 placed successfully!\n '
513476 ' > Storage as a Service\n ' )
477+
478+ def test_set_password (self ):
479+ result = self .run_command (['block' , 'access-password' , '1234' , '--password=AAAAA' ])
480+ self .assert_no_fail (result )
0 commit comments