@@ -52,8 +52,10 @@ def test_volume_qos_set_show_unset(self):
5252
5353 name = uuid .uuid4 ().hex
5454 cmd_output = self .openstack (
55- 'volume qos create ' + '--consumer front-end '
56- '--property Alpha=a ' + name ,
55+ 'volume qos create '
56+ + '--consumer front-end '
57+ + '--property Alpha=a '
58+ + name ,
5759 parse_output = True ,
5860 )
5961 self .addCleanup (self .openstack , 'volume qos delete ' + name )
@@ -64,8 +66,9 @@ def test_volume_qos_set_show_unset(self):
6466 # Test volume qos set
6567 raw_output = self .openstack (
6668 'volume qos set '
67- + '--property Alpha=c '
69+ + '--no- property '
6870 + '--property Beta=b '
71+ + '--property Charlie=c '
6972 + name ,
7073 )
7174 self .assertOutput ('' , raw_output )
@@ -76,11 +79,14 @@ def test_volume_qos_set_show_unset(self):
7679 parse_output = True ,
7780 )
7881 self .assertEqual (name , cmd_output ['name' ])
79- self .assertEqual ({'Alpha' : 'c' , 'Beta' : 'b' }, cmd_output ['properties' ])
82+ self .assertEqual (
83+ {'Beta' : 'b' , 'Charlie' : 'c' },
84+ cmd_output ['properties' ],
85+ )
8086
8187 # Test volume qos unset
8288 raw_output = self .openstack (
83- 'volume qos unset ' + '--property Alpha ' + name ,
89+ 'volume qos unset ' + '--property Charlie ' + name ,
8490 )
8591 self .assertOutput ('' , raw_output )
8692
0 commit comments