@@ -70,12 +70,15 @@ def test_snapshot_create(self):
7070 "--name" , self .new_snapshot .name ,
7171 "--description" , self .new_snapshot .description ,
7272 "--force" ,
73+ '--property' , 'Alpha=a' ,
74+ '--property' , 'Beta=b' ,
7375 self .new_snapshot .volume_id ,
7476 ]
7577 verifylist = [
7678 ("name" , self .new_snapshot .name ),
7779 ("description" , self .new_snapshot .description ),
7880 ("force" , True ),
81+ ('property' , {'Alpha' : 'a' , 'Beta' : 'b' }),
7982 ("volume" , self .new_snapshot .volume_id ),
8083 ]
8184 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
@@ -86,7 +89,8 @@ def test_snapshot_create(self):
8689 self .new_snapshot .volume_id ,
8790 force = True ,
8891 name = self .new_snapshot .name ,
89- description = self .new_snapshot .description
92+ description = self .new_snapshot .description ,
93+ metadata = {'Alpha' : 'a' , 'Beta' : 'b' },
9094 )
9195 self .assertEqual (self .columns , columns )
9296 self .assertEqual (self .data , data )
@@ -110,7 +114,8 @@ def test_snapshot_create_without_name(self):
110114 self .new_snapshot .volume_id ,
111115 force = True ,
112116 name = None ,
113- description = self .new_snapshot .description
117+ description = self .new_snapshot .description ,
118+ metadata = None ,
114119 )
115120 self .assertEqual (self .columns , columns )
116121 self .assertEqual (self .data , data )
0 commit comments