Merge "Check port name in set port tests"
This commit is contained in:
@@ -283,6 +283,7 @@ class TestSetPort(TestPort):
|
|||||||
]
|
]
|
||||||
verifylist = [
|
verifylist = [
|
||||||
('fixed_ip', [{'ip-address': '10.0.0.11'}]),
|
('fixed_ip', [{'ip-address': '10.0.0.11'}]),
|
||||||
|
('port', self._port.name),
|
||||||
]
|
]
|
||||||
|
|
||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
@@ -304,6 +305,7 @@ class TestSetPort(TestPort):
|
|||||||
]
|
]
|
||||||
verifylist = [
|
verifylist = [
|
||||||
('fixed_ip', [{'ip-address': '10.0.0.12'}]),
|
('fixed_ip', [{'ip-address': '10.0.0.12'}]),
|
||||||
|
('port', _testport.name),
|
||||||
]
|
]
|
||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
result = self.cmd.take_action(parsed_args)
|
result = self.cmd.take_action(parsed_args)
|
||||||
@@ -325,6 +327,7 @@ class TestSetPort(TestPort):
|
|||||||
('disable', True),
|
('disable', True),
|
||||||
('no_binding_profile', True),
|
('no_binding_profile', True),
|
||||||
('no_fixed_ip', True),
|
('no_fixed_ip', True),
|
||||||
|
('port', self._port.name),
|
||||||
]
|
]
|
||||||
|
|
||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
@@ -352,7 +355,8 @@ class TestSetPort(TestPort):
|
|||||||
('vnic_type', 'macvtap'),
|
('vnic_type', 'macvtap'),
|
||||||
('binding_profile', {'foo': 'bar'}),
|
('binding_profile', {'foo': 'bar'}),
|
||||||
('host', 'binding-host-id-xxxx'),
|
('host', 'binding-host-id-xxxx'),
|
||||||
('name', 'newName')
|
('name', 'newName'),
|
||||||
|
('port', self._port.name),
|
||||||
]
|
]
|
||||||
|
|
||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
|
Reference in New Issue
Block a user