Skip to content

Commit

Permalink
dom
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <[email protected]>
  • Loading branch information
antonengelhardt committed Mar 30, 2024
1 parent 275fb03 commit dda94ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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
11 changes: 9 additions & 2 deletions integration-tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,16 @@ def test_success() -> None:
set_up()
login(driver)
sleep(5)
assert driver.get_cookie("oidcSession-nonce").get("value") is not None

assert driver.current_url == "http://httpbin.org"
assert driver.get_cookie("oidcSession-0") is not None
# 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 is not None
driver.get(BASE_URL + "/oidc/callback?code=" + code)
assert driver.title == "httpbin.org"
assert driver.get_cookie("oidcSession-0").get("value") is not None
tear_down()

def test_unsuccessful() -> None:
Expand Down

0 comments on commit dda94ee

Please sign in to comment.