summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/compute/v2/fakes.py
diff options
context:
space:
mode:
authormelanie witt <melwittt@gmail.com>2021-08-12 22:06:36 +0000
committermelanie witt <melwittt@gmail.com>2021-08-17 01:34:05 +0000
commit12c93c6d5ff420f6a4a8833d33bad6ee7222e2f7 (patch)
tree8d4dd42937ce8cf957470f02d0f2ec8030141c0c /openstackclient/tests/unit/compute/v2/fakes.py
parented87f7949ef1ef580ed71b9820e16823c0466472 (diff)
downloadpython-openstackclient-12c93c6d5ff420f6a4a8833d33bad6ee7222e2f7.tar.gz
Show "Forced Down" compute service status with --long
Currently, the unified client does not have the ability to show the "Forced Down" field of a GET /os-services response in microversion 2.11 even though the legacy client can. This adds a "Forced Down" column to the 'openstack compute service list --long' command output when microversion 2.11 is used. Story: 2009115 Task: 43011 Change-Id: I10bc2fedbf0e867a990227962b2b6e60f5681f69
Diffstat (limited to 'openstackclient/tests/unit/compute/v2/fakes.py')
-rw-r--r--openstackclient/tests/unit/compute/v2/fakes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/compute/v2/fakes.py b/openstackclient/tests/unit/compute/v2/fakes.py
index 47457acb..05a14e16 100644
--- a/openstackclient/tests/unit/compute/v2/fakes.py
+++ b/openstackclient/tests/unit/compute/v2/fakes.py
@@ -722,6 +722,8 @@ class FakeService(object):
'state': 'state-' + uuid.uuid4().hex,
'updated_at': 'time-' + uuid.uuid4().hex,
'disabled_reason': 'earthquake',
+ # Introduced in API microversion 2.11
+ 'forced_down': False,
}
# Overwrite default attributes.