[ceph] Update test_list_no_account_metadata assert for ceph squid headers
Since Ceph Squid [1] RGW adds "X-Account-Meta-Quota-Containers" header
to each Swift API response therefore we need to exclude this header from
assert and check other meta headers expected absence.
[1] https://github.com/ceph/ceph/pull/50211
Related-To: https://mirantis.jira.com/browse/PRODX-53239
Change-Id: I37c5361513533858a22bb33edef1e7fd81773c3a
diff --git a/tempest/api/object_storage/test_account_services.py b/tempest/api/object_storage/test_account_services.py
index 75414c0..d873172 100644
--- a/tempest/api/object_storage/test_account_services.py
+++ b/tempest/api/object_storage/test_account_services.py
@@ -307,7 +307,10 @@
"""Test listing account metadata for account without metadata"""
resp, _ = self.account_client.list_account_metadata()
self.assertHeaders(resp, 'Account', 'HEAD')
- self.assertNotIn('x-account-meta-', str(resp))
+ # since ceph squid https://github.com/ceph/ceph/pull/50211
+ # quota-containers is a hardcoded meta header appeared in each response
+ self.assertNotRegex(
+ str(resp), r'(?!x-account-meta-quota-containers)(x-account-meta-)')
@decorators.idempotent_id('e2a08b5f-3115-4768-a3ee-d4287acd6c08')
def test_update_account_metadata_with_create_metadata(self):