summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-07 16:17:01 +0000
committerGerrit Code Review <review@openstack.org>2017-09-07 16:17:01 +0000
commit0ab7f58188755cd51b9ac1367276875e7d02a501 (patch)
tree4d931e7f12b7220e4cb8be692bf18bd183d48f66 /openstackclient/tests
parent5eb85674668e46fd657f150c77239b6a980eb2f5 (diff)
parent253a92ec8f2b7bd5d8f056210dea374f2e2ae184 (diff)
downloadpython-openstackclient-0ab7f58188755cd51b9ac1367276875e7d02a501.tar.gz
Merge "Fix "security group list" command to display project ID properly" into stable/ocata
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/unit/network/v2/fakes.py4
-rw-r--r--openstackclient/tests/unit/network/v2/test_security_group.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/tests/unit/network/v2/fakes.py b/openstackclient/tests/unit/network/v2/fakes.py
index eb965339..50163342 100644
--- a/openstackclient/tests/unit/network/v2/fakes.py
+++ b/openstackclient/tests/unit/network/v2/fakes.py
@@ -978,7 +978,7 @@ class FakeSecurityGroup(object):
'id': 'security-group-id-' + uuid.uuid4().hex,
'name': 'security-group-name-' + uuid.uuid4().hex,
'description': 'security-group-description-' + uuid.uuid4().hex,
- 'tenant_id': 'project-id-' + uuid.uuid4().hex,
+ 'project_id': 'project-id-' + uuid.uuid4().hex,
'security_group_rules': [],
}
@@ -990,7 +990,7 @@ class FakeSecurityGroup(object):
loaded=True)
# Set attributes with special mapping in OpenStack SDK.
- security_group.project_id = security_group_attrs['tenant_id']
+ security_group.project_id = security_group_attrs['project_id']
return security_group
diff --git a/openstackclient/tests/unit/network/v2/test_security_group.py b/openstackclient/tests/unit/network/v2/test_security_group.py
index 9a30267e..66d357f9 100644
--- a/openstackclient/tests/unit/network/v2/test_security_group.py
+++ b/openstackclient/tests/unit/network/v2/test_security_group.py
@@ -404,7 +404,7 @@ class TestListSecurityGroupNetwork(TestSecurityGroupNetwork):
grp.id,
grp.name,
grp.description,
- grp.tenant_id,
+ grp.project_id,
))
def setUp(self):