@@ -149,13 +149,13 @@ def test_create_source_group(self):
149149 })
150150 arglist = [
151151 '--dst-port' , str (self ._security_group_rule .port_range_min ),
152- '--src-group' , self ._security_group .id ,
152+ '--src-group' , self ._security_group .name ,
153153 self ._security_group .id ,
154154 ]
155155 verifylist = [
156156 ('dst_port' , (self ._security_group_rule .port_range_min ,
157157 self ._security_group_rule .port_range_max )),
158- ('src_group' , self ._security_group .id ),
158+ ('src_group' , self ._security_group .name ),
159159 ('group' , self ._security_group .id ),
160160 ]
161161 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
@@ -289,17 +289,17 @@ def test_create_source_group(self):
289289 expected_columns , expected_data = self ._setup_security_group_rule ({
290290 'from_port' : 22 ,
291291 'to_port' : 22 ,
292- 'group' : {'name' : self ._security_group .id },
292+ 'group' : {'name' : self ._security_group .name },
293293 })
294294 arglist = [
295295 '--dst-port' , str (self ._security_group_rule .from_port ),
296- '--src-group' , self ._security_group .id ,
296+ '--src-group' , self ._security_group .name ,
297297 self ._security_group .id ,
298298 ]
299299 verifylist = [
300300 ('dst_port' , (self ._security_group_rule .from_port ,
301301 self ._security_group_rule .to_port )),
302- ('src_group' , self ._security_group .id ),
302+ ('src_group' , self ._security_group .name ),
303303 ('group' , self ._security_group .id ),
304304 ]
305305 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
0 commit comments