From e73980475c4c247d076a32399da647cfc4791efd Mon Sep 17 00:00:00 2001 From: zhufl Date: Tue, 13 Mar 2018 16:20:18 +0800 Subject: [PATCH] Set max_microversion 2.42 for hosts tests The compute os-hosts API is deprecated as of the 2.43 microversion, so we should set max_microversion = '2.42' for hosts tests. ref: https://developer.openstack.org/api-ref/compute/#list-hosts Change-Id: Icc320de1fac272c8973edada7a556079b3dbf5a7 --- tempest/api/compute/admin/test_hosts.py | 2 ++ tempest/api/compute/admin/test_hosts_negative.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tempest/api/compute/admin/test_hosts.py b/tempest/api/compute/admin/test_hosts.py index 00f32565c5..c246685a0d 100644 --- a/tempest/api/compute/admin/test_hosts.py +++ b/tempest/api/compute/admin/test_hosts.py @@ -20,6 +20,8 @@ from tempest.lib import decorators class HostsAdminTestJSON(base.BaseV2ComputeAdminTest): """Tests hosts API using admin privileges.""" + max_microversion = '2.42' + @classmethod def setup_clients(cls): super(HostsAdminTestJSON, cls).setup_clients() diff --git a/tempest/api/compute/admin/test_hosts_negative.py b/tempest/api/compute/admin/test_hosts_negative.py index 5bd8104196..8a91ae2754 100644 --- a/tempest/api/compute/admin/test_hosts_negative.py +++ b/tempest/api/compute/admin/test_hosts_negative.py @@ -20,6 +20,8 @@ from tempest.lib import exceptions as lib_exc class HostsAdminNegativeTestJSON(base.BaseV2ComputeAdminTest): """Tests hosts API using admin privileges.""" + max_microversion = '2.42' + @classmethod def setup_clients(cls): super(HostsAdminNegativeTestJSON, cls).setup_clients()