summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-17 22:58:36 +0000
committerGerrit Code Review <review@openstack.org>2016-03-17 22:58:36 +0000
commitd42bb4f7e221954bf119b7b8eab468c7aeaeb464 (patch)
tree43095afd5d4243912583d9e5bde89c94f0089abc /openstackclient/tests
parenta60e31ad4b2a1b48e7b2db8f572072beb92d6cd1 (diff)
parentaeef56818941a72cc10e96669ad6ff317461046f (diff)
downloadpython-openstackclient-d42bb4f7e221954bf119b7b8eab468c7aeaeb464.tar.gz
Merge "Fix options in port create/set"
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/network/v2/test_port.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/tests/network/v2/test_port.py b/openstackclient/tests/network/v2/test_port.py
index 54f82853..5532fed5 100644
--- a/openstackclient/tests/network/v2/test_port.py
+++ b/openstackclient/tests/network/v2/test_port.py
@@ -125,7 +125,7 @@ class TestCreatePort(TestPort):
'--mac-address', 'aa:aa:aa:aa:aa:aa',
'--fixed-ip', 'subnet=%s,ip-address=10.0.0.2'
% self.fake_subnet.id,
- '--device-id', 'deviceid',
+ '--device', 'deviceid',
'--device-owner', 'fakeowner',
'--disable',
'--vnic-type', 'macvtap',
@@ -141,7 +141,7 @@ class TestCreatePort(TestPort):
'fixed_ip',
[{'subnet': self.fake_subnet.id, 'ip-address': '10.0.0.2'}]
),
- ('device_id', 'deviceid'),
+ ('device', 'deviceid'),
('device_owner', 'fakeowner'),
('admin_state', False),
('vnic_type', 'macvtap'),
@@ -318,14 +318,14 @@ class TestSetPort(TestPort):
'--enable',
'--vnic-type', 'macvtap',
'--binding-profile', 'foo=bar',
- '--host-id', 'binding-host-id-xxxx',
+ '--host', 'binding-host-id-xxxx',
self._port.name,
]
verifylist = [
('admin_state', True),
('vnic_type', 'macvtap'),
('binding_profile', {'foo': 'bar'}),
- ('host_id', 'binding-host-id-xxxx'),
+ ('host', 'binding-host-id-xxxx'),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)