From e9a0d0e62f0c78b17ec5d6a774b4949e949cf983 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Thu, 2 May 2024 17:00:09 +0200 Subject: [PATCH] tests: update instructions, fix override-scope test Fixes divergence between the two test scripts. The test doesn't need to be executed by default. It is just a demonstration on how to use a custom scope that can be created with the function `mkAuthentikScope`, that is available through the `lib` flake output. --- README.md | 5 +++-- tests/override-scope.nix | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e7e61cc..c2efd79 100644 --- a/README.md +++ b/README.md @@ -159,10 +159,11 @@ Initial auto-discovery might take a while because the authentik certificate disc ## Testing -To run the tests execute the following: +To run the main integration test execute (one of) the following: ``` -nix flake check --print-build-logs +nix build .#checks.x86_64-linux.default --print-build-logs +nix build .#checks.aarch64-linux.default --print-build-logs ``` ## License diff --git a/tests/override-scope.nix b/tests/override-scope.nix index e9faf3b..d5469fd 100644 --- a/tests/override-scope.nix +++ b/tests/override-scope.nix @@ -114,7 +114,7 @@ pkgs.nixosTest { machine.wait_for_text("General system status") machine.screenshot("3_rendered_admin_interface") machine.succeed("su - alice -c 'xdotool click 1' >&2") - machine.succeed("su - alice -c 'xdotool key --delay 100 Page_Down Page_Down' >&2") + machine.succeed("su - alice -c 'xdotool key --delay 100 Page_Down' >&2") machine.wait_for_text("${authentik-version}") machine.screenshot("4_correct_version_in_admin_interface")