From e1ccfb9fb6d9dba6e62e26947522ee3a419886d5 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Fri, 27 Oct 2023 16:48:33 +0200 Subject: [PATCH] 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 --- test.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.nix b/test.nix index 0d76509..ca694c6 100644 --- a/test.nix +++ b/test.nix @@ -52,10 +52,10 @@ pkgs.nixosTest { authentik.wait_for_unit("authentik-worker.service") authentik.wait_for_unit("authentik.service") 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"): - 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.screenshot("1_rendered_frontend") @@ -73,7 +73,7 @@ pkgs.nixosTest { machine.screenshot("2_initial_setup_successful") 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.screenshot("3_rendered_admin_interface") machine.succeed("su - alice -c 'xdotool click 1' >&2")