File tree Expand file tree Collapse file tree
openstackclient/tests/functional/volume Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,21 @@ def test_volume_type_set_unset_properties(self):
6161 raw_output = self .openstack ('volume type show ' + self .NAME + opts )
6262 self .assertEqual ("c='d'\n " , raw_output )
6363
64+ def test_volume_type_set_unset_multiple_properties (self ):
65+ raw_output = self .openstack (
66+ 'volume type set --property a=b --property c=d ' + self .NAME )
67+ self .assertEqual ("" , raw_output )
68+
69+ opts = self .get_opts (["properties" ])
70+ raw_output = self .openstack ('volume type show ' + self .NAME + opts )
71+ self .assertEqual ("a='b', c='d'\n " , raw_output )
72+
73+ raw_output = self .openstack (
74+ 'volume type unset --property a --property c ' + self .NAME )
75+ self .assertEqual ("" , raw_output )
76+ raw_output = self .openstack ('volume type show ' + self .NAME + opts )
77+ self .assertEqual ("\n " , raw_output )
78+
6479 def test_multi_delete (self ):
6580 vol_type1 = uuid .uuid4 ().hex
6681 vol_type2 = uuid .uuid4 ().hex
Original file line number Diff line number Diff line change @@ -62,6 +62,21 @@ def test_volume_type_set_unset_properties(self):
6262 raw_output = self .openstack ('volume type show ' + self .NAME + opts )
6363 self .assertEqual ("c='d'\n " , raw_output )
6464
65+ def test_volume_type_set_unset_multiple_properties (self ):
66+ raw_output = self .openstack (
67+ 'volume type set --property a=b --property c=d ' + self .NAME )
68+ self .assertEqual ("" , raw_output )
69+
70+ opts = self .get_opts (["properties" ])
71+ raw_output = self .openstack ('volume type show ' + self .NAME + opts )
72+ self .assertEqual ("a='b', c='d'\n " , raw_output )
73+
74+ raw_output = self .openstack (
75+ 'volume type unset --property a --property c ' + self .NAME )
76+ self .assertEqual ("" , raw_output )
77+ raw_output = self .openstack ('volume type show ' + self .NAME + opts )
78+ self .assertEqual ("\n " , raw_output )
79+
6580 def test_volume_type_set_unset_project (self ):
6681 raw_output = self .openstack (
6782 'volume type set --project admin ' + self .NAME )
You can’t perform that action at this time.
0 commit comments