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.
This commit is contained in:
parent
e3a0712b29
commit
e9a0d0e62f
2 changed files with 4 additions and 3 deletions
|
|
@ -159,10 +159,11 @@ Initial auto-discovery might take a while because the authentik certificate disc
|
||||||
|
|
||||||
## Testing
|
## 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
|
## License
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ pkgs.nixosTest {
|
||||||
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")
|
||||||
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.wait_for_text("${authentik-version}")
|
||||||
machine.screenshot("4_correct_version_in_admin_interface")
|
machine.screenshot("4_correct_version_in_admin_interface")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue