From f21e6295157aa5b3863909e300907db8c7d542fb Mon Sep 17 00:00:00 2001 From: Mahesh Shetty Date: Thu, 26 Oct 2023 15:31:12 +0530 Subject: [PATCH] add newly added mcg background features entry critria setup Signed-off-by: Mahesh Shetty --- .../test_mcg_replication_with_disruptions.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/e2e/system_test/test_mcg_replication_with_disruptions.py b/tests/e2e/system_test/test_mcg_replication_with_disruptions.py index 8098f9665276..833e7dbb1e72 100644 --- a/tests/e2e/system_test/test_mcg_replication_with_disruptions.py +++ b/tests/e2e/system_test/test_mcg_replication_with_disruptions.py @@ -249,6 +249,8 @@ def test_log_based_replication_with_disruptions( log_based_replication_setup, noobaa_db_backup, noobaa_db_recovery_from_backup, + setup_mcg_bg_features, + validate_mcg_bg_features, ): """ This is a system test flow to test log based bucket replication @@ -272,6 +274,14 @@ def test_log_based_replication_with_disruptions( """ + # entry criteria setup + feature_setup_map = setup_mcg_bg_features( + num_of_buckets=5, + object_amount=5, + is_disruptive=True, + skip_any_features=["nsfs", "rgw kafka", "caching"], + ) + mockup_logger, source_bucket, target_bucket = log_based_replication_setup() # upload test objects to the bucket and verify replication @@ -365,3 +375,11 @@ def delete_objs_in_batch(): target_bucket.name, timeout=600, ), f"Standard replication completed even though replication policy is removed" + + validate_mcg_bg_features( + feature_setup_map, + run_in_bg=False, + skip_any_features=["nsfs", "rgw kafka", "caching"], + object_amount=5, + ) + logger.info("No issues seen with the MCG bg feature validation")