Use preprod.env
Some checks failed
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Pre-Prod) (pull_request) Failing after 56s
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 39s
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
Some checks failed
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 2s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Pre-Prod) (pull_request) Failing after 56s
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 39s
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped
This commit is contained in:
@@ -88,7 +88,7 @@ def mock_webserver():
|
|||||||
|
|
||||||
# We need to recreate the container to pick up extra_hosts changes
|
# We need to recreate the container to pick up extra_hosts changes
|
||||||
try:
|
try:
|
||||||
subprocess.run(["docker-compose", "--env-file", "dev.env", "up", "-d", "--force-recreate", "--no-deps", "traefik"], env=env, check=True, capture_output=True, text=True)
|
subprocess.run(["docker-compose", "--env-file", "preprod.env", "up", "-d", "--force-recreate", "--no-deps", "traefik"], env=env, check=True, capture_output=True, text=True)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"Docker Compose STDOUT: {e.stdout}")
|
print(f"Docker Compose STDOUT: {e.stdout}")
|
||||||
print(f"Docker Compose STDERR: {e.stderr}")
|
print(f"Docker Compose STDERR: {e.stderr}")
|
||||||
@@ -104,7 +104,7 @@ def mock_webserver():
|
|||||||
subprocess.run(["docker", "stop", mock["name"]], capture_output=True)
|
subprocess.run(["docker", "stop", mock["name"]], capture_output=True)
|
||||||
|
|
||||||
# Restore Traefik to default (optional)
|
# Restore Traefik to default (optional)
|
||||||
subprocess.run(["docker-compose", "--env-file", "dev.env", "up", "-d", "--force-recreate", "--no-deps", "traefik"], check=True)
|
subprocess.run(["docker-compose", "--env-file", "preprod.env", "up", "-d", "--force-recreate", "--no-deps", "traefik"], check=True)
|
||||||
|
|
||||||
def test_whoami_http_reachable():
|
def test_whoami_http_reachable():
|
||||||
"""Verify that the whoami service is reachable via HTTP."""
|
"""Verify that the whoami service is reachable via HTTP."""
|
||||||
|
|||||||
Reference in New Issue
Block a user