Skip to content

Commit 7fb10e7

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Check port name in set port tests"
2 parents b0ed4f6 + 6d1dd68 commit 7fb10e7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

openstackclient/tests/network/v2/test_port.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ def test_set_fixed_ip(self):
283283
]
284284
verifylist = [
285285
('fixed_ip', [{'ip-address': '10.0.0.11'}]),
286+
('port', self._port.name),
286287
]
287288

288289
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -304,6 +305,7 @@ def test_append_fixed_ip(self):
304305
]
305306
verifylist = [
306307
('fixed_ip', [{'ip-address': '10.0.0.12'}]),
308+
('port', _testport.name),
307309
]
308310
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
309311
result = self.cmd.take_action(parsed_args)
@@ -325,6 +327,7 @@ def test_set_this(self):
325327
('disable', True),
326328
('no_binding_profile', True),
327329
('no_fixed_ip', True),
330+
('port', self._port.name),
328331
]
329332

330333
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -352,7 +355,8 @@ def test_set_that(self):
352355
('vnic_type', 'macvtap'),
353356
('binding_profile', {'foo': 'bar'}),
354357
('host', 'binding-host-id-xxxx'),
355-
('name', 'newName')
358+
('name', 'newName'),
359+
('port', self._port.name),
356360
]
357361

358362
parsed_args = self.check_parser(self.cmd, arglist, verifylist)

0 commit comments

Comments
 (0)