Skip to content

Commit

Permalink
Update log_analysis_report_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
droideck committed Jan 10, 2025
1 parent 2e5822c commit cb6b559
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def test_multi_suffix_replication_analysis(topo_m4):

# Setup additional backends and replication for all suppliers
for suffix in [SUFFIX_2, SUFFIX_3]: # DEFAULT_SUFFIX already exists
repl = ReplicationManager(suffix)
for supplier in suppliers:
# Create backend
props = {
Expand All @@ -272,26 +273,17 @@ def test_multi_suffix_replication_analysis(topo_m4):
be.create_sample_entries('001004002')

# Enable replication
repl = ReplicationManager(suffix)
if supplier == suppliers[0]: # supplier1
repl.create_first_supplier(supplier)
else:
repl.join_supplier(suppliers[0], supplier)

# Create full mesh topology for this suffix
repl = ReplicationManager(suffix)
for i, supplier_i in enumerate(suppliers):
for j, supplier_j in enumerate(suppliers):
if i != j: # Don't create agreement with self
repl.ensure_agreement(supplier_i, supplier_j)

# Also ensure full mesh for DEFAULT_SUFFIX
repl = ReplicationManager(DEFAULT_SUFFIX)
for i, supplier_i in enumerate(suppliers):
for j, supplier_j in enumerate(suppliers):
if i != j: # Don't create agreement with self
repl.ensure_agreement(supplier_i, supplier_j)

# Generate test data for each suffix
for suffix in all_suffixes:
for i in range(20): # 20 users per suffix
Expand Down

0 comments on commit cb6b559

Please sign in to comment.