nixosTests.authelia: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-13 23:48:27 +01:00
parent 3f2541bbb1
commit 56558f8c94
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 175 additions and 179 deletions

View file

@ -184,7 +184,7 @@ in {
atuin = runTest ./atuin.nix;
audiobookshelf = runTest ./audiobookshelf.nix;
auth-mysql = runTest ./auth-mysql.nix;
authelia = handleTest ./authelia.nix {};
authelia = runTest ./authelia.nix;
auto-cpufreq = handleTest ./auto-cpufreq.nix {};
autobrr = handleTest ./autobrr.nix {};
avahi = handleTest ./avahi.nix {};

View file

@ -1,16 +1,13 @@
# Test Authelia as an auth server for Traefik as a reverse proxy of a local web service
import ./make-test-python.nix (
{ lib, ... }:
{
{ lib, ... }:
{
name = "authelia";
meta.maintainers = with lib.maintainers; [ jk ];
nodes = {
authelia =
{
config,
pkgs,
lib,
...
}:
{
@ -183,5 +180,4 @@ import ./make-test-python.nix (
assert "hello", "could not reach authed static site with valid credentials" in \
authelia.succeed("curl --insecure -sSf -u 'bob:password' -H Host:static-basic-auth.example.com https://authelia:443/")
'';
}
)
}