Skip to content

Commit

Permalink
add newly added mcg background features entry critria setup
Browse files Browse the repository at this point in the history
Signed-off-by: Mahesh Shetty <[email protected]>
  • Loading branch information
mashetty330 committed Nov 30, 2023
1 parent b9b08af commit f21e629
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/e2e/system_test/test_mcg_replication_with_disruptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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")

0 comments on commit f21e629

Please sign in to comment.