1
0
Fork 0

Refactor Swarm E2E tests: optimize timeouts, enhance stack deployment/wait logic, consolidate replicas, and update HAProxy config refresh cycle

This commit is contained in:
Joao Gilberto Magalhaes 2026-02-18 16:10:01 -05:00
parent 5a9f14e980
commit 8532d49642
2 changed files with 1 additions and 28 deletions

View file

@ -239,19 +239,9 @@ def create_cloudflare_config():
temp_path = Path(f.name)
try:
subprocess.run(
["curl", "-s", "https://www.cloudflare.com/ips-v4"],
stdout=open(temp_path, "w"), check=True
)
with open(temp_path, "a") as f:
f.write("\n")
subprocess.run(
["curl", "-s", "https://www.cloudflare.com/ips-v6"],
stdout=open(temp_path, "a"), check=True
)
# Add Docker ingress range so test requests appear to come from Cloudflare
with open(temp_path, "a") as f:
f.write("\n10.0.0.0/8\n")
f.write("10.0.0.0/8\n")
create_swarm_config("cloudflare_ips", temp_path)
_cloudflare_config_created = True