summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-12-15 14:16:50 +0000
committerGerrit Code Review <review@openstack.org>2016-12-15 14:16:50 +0000
commite24deda9cf473491204c0bf54c260c6fcf15a1b5 (patch)
tree0a5ae39925cfdf8e54e20462e0b77d3aaeabb78a /openstackclient/tests
parent5e03b9246488d8e9c0a538b5ae278b36d9e2f1b7 (diff)
parent7832ea357c29fcf8b1e1ad0d29cede3637893ac6 (diff)
downloadpython-openstackclient-e24deda9cf473491204c0bf54c260c6fcf15a1b5.tar.gz
Merge "SDK Refactor: Prepare port commands"
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/unit/network/v2/fakes.py5
-rw-r--r--openstackclient/tests/unit/network/v2/test_port.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py
index 678ab226..b19a33b8 100644
--- a/openstackclient/tests/unit/network/v2/fakes.py
+++ b/openstackclient/tests/unit/network/v2/fakes.py
@@ -461,12 +461,15 @@ class FakePort(object):
loaded=True)
# Set attributes with special mappings in OpenStack SDK.
- port.project_id = port_attrs['tenant_id']
port.binding_host_id = port_attrs['binding:host_id']
port.binding_profile = port_attrs['binding:profile']
port.binding_vif_details = port_attrs['binding:vif_details']
port.binding_vif_type = port_attrs['binding:vif_type']
port.binding_vnic_type = port_attrs['binding:vnic_type']
+ port.is_admin_state_up = port_attrs['admin_state_up']
+ port.is_port_security_enabled = port_attrs['port_security_enabled']
+ port.project_id = port_attrs['tenant_id']
+ port.security_group_ids = port_attrs['security_groups']
return port
diff --git a/openstackclient/tests/unit/network/v2/test_port.py b/openstackclient/tests/unit/network/v2/test_port.py
index aeb9884a..255e8116 100644
--- a/openstackclient/tests/unit/network/v2/test_port.py
+++ b/openstackclient/tests/unit/network/v2/test_port.py
@@ -324,7 +324,7 @@ class TestCreatePort(TestPort):
self.assertEqual(ref_columns, columns)
self.assertEqual(ref_data, data)
- def test_create_with_no_secuirty_groups(self):
+ def test_create_with_no_security_groups(self):
arglist = [
'--network', self._port.network_id,
'--no-security-group',