From 7c2de4f79241025d7056bbce351cfe0145de0904 Mon Sep 17 00:00:00 2001 From: Vidushi Mishra Date: Tue, 21 May 2024 16:01:40 +0530 Subject: [PATCH] Fixing the Object-Size and ArchiveZone filter for LC rule Signed-off-by: Vidushi Mishra --- rgw/v2/tests/s3cmd/reusable.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rgw/v2/tests/s3cmd/reusable.py b/rgw/v2/tests/s3cmd/reusable.py index 268cafc2e..3d6dc8ada 100644 --- a/rgw/v2/tests/s3cmd/reusable.py +++ b/rgw/v2/tests/s3cmd/reusable.py @@ -406,6 +406,8 @@ def Generate_LC_xml(fileName, config): rule_filter = xml.SubElement(lc_rule, "Filter") if config.test_ops.get("test_lc_objects_size"): filter_and = xml.SubElement(rule_filter, "And") + if config.test_ops.get("test_lc_archive_zone"): + and_archive_zone = xml.SubElement(filter_and, "ArchiveZone") and_prefix = xml.SubElement(filter_and, "Prefix") and_ObjectSizeGreaterThan = xml.SubElement(filter_and, "ObjectSizeGreaterThan") and_ObjectSizeLessThan = xml.SubElement(filter_and, "ObjectSizeLessThan")