test: add trailing slash to urls
Before 2023.10 this was implicitly supported, but undocumented. See https://github.com/goauthentik/authentik/pull/6928/commits/c4ea44da1bb63182e5413bdf8f0a9
This commit is contained in:
parent
cdffc37ad9
commit
e1ccfb9fb6
1 changed files with 3 additions and 3 deletions
6
test.nix
6
test.nix
|
|
@ -52,10 +52,10 @@ pkgs.nixosTest {
|
||||||
authentik.wait_for_unit("authentik-worker.service")
|
authentik.wait_for_unit("authentik-worker.service")
|
||||||
authentik.wait_for_unit("authentik.service")
|
authentik.wait_for_unit("authentik.service")
|
||||||
authentik.wait_for_open_port(9000)
|
authentik.wait_for_open_port(9000)
|
||||||
authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup >&2")
|
authentik.wait_until_succeeds("curl -fL http://localhost:9000/if/flow/initial-setup/ >&2")
|
||||||
|
|
||||||
with subtest("Frontend renders"):
|
with subtest("Frontend renders"):
|
||||||
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/flow/initial-setup' >&2 &")
|
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/flow/initial-setup/' >&2 &")
|
||||||
machine.wait_for_text("Welcome to authentik")
|
machine.wait_for_text("Welcome to authentik")
|
||||||
machine.screenshot("1_rendered_frontend")
|
machine.screenshot("1_rendered_frontend")
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ pkgs.nixosTest {
|
||||||
machine.screenshot("2_initial_setup_successful")
|
machine.screenshot("2_initial_setup_successful")
|
||||||
|
|
||||||
with subtest("admin settings render and version as expected"):
|
with subtest("admin settings render and version as expected"):
|
||||||
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/admin' >&2 &")
|
machine.succeed("su - alice -c 'firefox http://localhost:9000/if/admin/' >&2 &")
|
||||||
machine.wait_for_text("General system status")
|
machine.wait_for_text("General system status")
|
||||||
machine.screenshot("3_rendered_admin_interface")
|
machine.screenshot("3_rendered_admin_interface")
|
||||||
machine.succeed("su - alice -c 'xdotool click 1' >&2")
|
machine.succeed("su - alice -c 'xdotool click 1' >&2")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue