nixosTests.auth-mysql: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt
2025-03-13 23:45:17 +01:00
parent add74983e7
commit 3f2541bbb1
2 changed files with 157 additions and 159 deletions

View File

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

View File

@@ -1,7 +1,6 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{ pkgs, lib, ... }:
let
let
dbUser = "nixos_auth";
dbPassword = "topsecret123";
dbName = "auth";
@@ -40,8 +39,8 @@ import ./make-test-python.nix (
('${mysqlUsername}', 5000, 5000, SHA2('${mysqlPassword}', 256));
INSERT INTO `groups` (name, gid) VALUES ('${mysqlGroup}', 5000);
'';
in
{
in
{
name = "auth-mysql";
meta.maintainers = with lib.maintainers; [ netali ];
@@ -176,5 +175,4 @@ import ./make-test-python.nix (
machine.wait_until_tty_matches("5", "Login incorrect")
machine.wait_until_tty_matches("5", "login:")
'';
}
)
}