Fixed return values in compute_service_info module again

OpenStack SDK 0.53 added parameters is_forced_down and updated_at
in openstack/compute/v2/service.py, hence our compute_service_info
module will return different values depending on which release of
the OpenStack SDK is used.

Ref.: 5450c45253

Change-Id: I4b055266555cb91681d0ab6edcaa850e061f3afb
(cherry picked from commit 4a7330364e)
This commit is contained in:
Jakob Meng 2022-05-02 20:49:39 +02:00
parent a70a4c3424
commit 9c16ee4df3

View File

@ -10,8 +10,8 @@
when: sdk_version is version(0.53, '<')
assert:
that:
- '["availability_zone", "binary", "disables_reason", "is_forced_down",
"host", "name", "state", "status", "updated_at", "id"] |
- '["availability_zone", "binary", "disables_reason",
"host", "name", "state", "status", "id"] |
difference(result.openstack_compute_services.0.keys()) | length == 0'
- name: Assert fields on OpenStack SDK 0.53 and later