summaryrefslogtreecommitdiff
path: root/tempest/api/compute
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2021-12-16 15:36:31 -0600
committerGhanshyam Mann <gmann@ghanshyammann.com>2021-12-17 00:45:43 +0000
commitdc517e0a1cae0d46862a16175379d5a6587c1935 (patch)
treeb32099d3b5df9bc390852319a1ef80ce86365773 /tempest/api/compute
parented6d10235cdd41880a8f39d2e9126d9ba3b840be (diff)
downloadtempest-dc517e0a1cae0d46862a16175379d5a6587c1935.tar.gz
Fix compute quota classes schema for v2.50 and v2.57
For Compute microversion 2.50: 1. fixed_ips, floating_ips, security_group_rules and security_groups are removed from: * GET /os-quota-class-sets/{id} * PUT /os-quota-class-sets/{id} 2. server_groups and server_group_members are added to: * GET /os-quota-class-sets/{id} * PUT /os-quota-class-sets/{id} For Compute microversion 2.57: 1. injected_file_content_bytes, injected_file_path_bytes, injected_files are removed from: * GET /os-quota-class-sets/{id} * PUT /os-quota-class-sets/{id} Partially Implements: blueprint fix-microversion-gap Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com> Change-Id: I2a9dcb20251d9682fbcafd706ac60325a60e35ef
Diffstat (limited to 'tempest/api/compute')
-rw-r--r--tempest/api/compute/admin/test_quotas.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tempest/api/compute/admin/test_quotas.py b/tempest/api/compute/admin/test_quotas.py
index 9d5e0c950..6a79a2f3f 100644
--- a/tempest/api/compute/admin/test_quotas.py
+++ b/tempest/api/compute/admin/test_quotas.py
@@ -253,3 +253,14 @@ class QuotaClassesAdminTestJSON(base.BaseV2ComputeAdminTest):
'default')['quota_class_set']
self.assertThat(show_body.items(),
matchers.ContainsAll(body.items()))
+
+
+class QuotaClassesAdmin257Test(QuotaClassesAdminTestJSON):
+ """Test compute quotas with microversion greater than 2.56
+
+ # NOTE(gmann): This test tests the Quota class APIs response schema
+ # for 2.57 microversion. No specific assert or behaviour verification
+ # is needed.
+ """
+
+ min_microversion = '2.57'