summaryrefslogtreecommitdiff
path: root/openstackclient/tests/compute/v2/fakes.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-21 03:35:14 +0000
committerGerrit Code Review <review@openstack.org>2016-07-21 03:35:15 +0000
commit360853b51fdb261ef435398436fd39ebd3169ee0 (patch)
treef46f32de606c9b59ff7b3424cd41194e1672e570 /openstackclient/tests/compute/v2/fakes.py
parentab18045c97ad8359080d17aee0a1b9d6d8a8b146 (diff)
parent5951026bf28265a61c289d5148b73b485e242eaf (diff)
downloadpython-openstackclient-360853b51fdb261ef435398436fd39ebd3169ee0.tar.gz
Merge "Add unit tests for "host list" and "host show" commands"
Diffstat (limited to 'openstackclient/tests/compute/v2/fakes.py')
-rw-r--r--openstackclient/tests/compute/v2/fakes.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py
index 76402476..b47b00b2 100644
--- a/openstackclient/tests/compute/v2/fakes.py
+++ b/openstackclient/tests/compute/v2/fakes.py
@@ -1166,7 +1166,13 @@ class FakeHost(object):
"stats": "",
"numa_topology": "",
"ram_allocation_ratio": 1.0,
- "cpu_allocation_ratio": 1.0
+ "cpu_allocation_ratio": 1.0,
+ "zone": 'zone-' + uuid.uuid4().hex,
+ "host_name": 'name-' + uuid.uuid4().hex,
+ "service": 'service-' + uuid.uuid4().hex,
+ "cpu": 4,
+ "disk_gb": 100,
+ 'project': 'project-' + uuid.uuid4().hex,
}
host_info.update(attrs)
host = fakes.FakeResource(