diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2016-03-11 15:42:17 -0600 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2016-03-17 21:00:26 +0000 |
| commit | aeef56818941a72cc10e96669ad6ff317461046f (patch) | |
| tree | e0b0a32b63b91c9269b814c946ebb557b8417aeb /openstackclient/tests/network | |
| parent | 3737c5a842f727ad9d28fd10af67784efc6ab416 (diff) | |
| download | python-openstackclient-aeef56818941a72cc10e96669ad6ff317461046f.tar.gz | |
Fix options in port create/set
* --device-id should have been --device
* --host-id should have been --host
Old options are deprecated and retained for compatibility since they
appear in a release.
Closes-Bug: 1558677
Change-Id: Ic733523c8d57060f2cb5d420fdb1f7598e7d5e71
Diffstat (limited to 'openstackclient/tests/network')
| -rw-r--r-- | openstackclient/tests/network/v2/test_port.py | 8 |
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 7b1c655f..ad4ec824 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'), @@ -296,14 +296,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) |
