Skip to content

Commit

Permalink
dom
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <antoncengelhardt@icloud.com>
  • Loading branch information
antonengelhardt committed Mar 30, 2024
1 parent 275fb03 commit 83cecff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration-tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion integration-tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 83cecff

Please sign in to comment.