From 83cecff4611dcc5bcd76a84371ffb8f445f62865 Mon Sep 17 00:00:00 2001 From: Anton Engelhardt Date: Sat, 30 Mar 2024 16:54:39 +0100 Subject: [PATCH] dom Signed-off-by: Anton Engelhardt --- integration-tests/docker-compose.yaml | 2 +- integration-tests/test.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/integration-tests/docker-compose.yaml b/integration-tests/docker-compose.yaml index f8a251f1..3cd69507 100644 --- a/integration-tests/docker-compose.yaml +++ b/integration-tests/docker-compose.yaml @@ -6,7 +6,7 @@ services: hostname: envoy container_name: envoy ports: - - "10001:10000" + - "10000:10000" volumes: - ./envoy.yaml:/etc/envoy/envoy.yaml - ../target/wasm32-wasi/release:/etc/envoy/proxy-wasm-plugins diff --git a/integration-tests/test.py b/integration-tests/test.py index d26829cd..eb40280b 100644 --- a/integration-tests/test.py +++ b/integration-tests/test.py @@ -73,7 +73,14 @@ def test_success() -> None: login(driver) sleep(5) - assert driver.current_url == "http://httpbin.org" + # rewrite the url to access envoy container + if os.getenv("CI") == "true": + current_url = driver.current_url + code = current_url.split("?code=")[1] + assert code == "a" + assert driver.get_cookie("oidcSession-nonce") == "a" + driver.get(BASE_URL + "/oidc/callback?code=" + code) + assert driver.title == "httpbin.org" assert driver.get_cookie("oidcSession-0") is not None tear_down()