nixos/tests/knot: migrate to runTest

Part of #386873
This commit is contained in:
Martin Weinelt 2025-03-10 20:30:17 +01:00
parent 5d3d6037d8
commit 41ff93c1d8
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 230 additions and 228 deletions

View file

@ -589,7 +589,7 @@ in {
keymap = handleTest ./keymap.nix {}; keymap = handleTest ./keymap.nix {};
kimai = handleTest ./kimai.nix {}; kimai = handleTest ./kimai.nix {};
kmonad = runTest ./kmonad.nix; kmonad = runTest ./kmonad.nix;
knot = handleTest ./knot.nix {}; knot = runTest ./knot.nix;
komga = handleTest ./komga.nix {}; komga = handleTest ./komga.nix {};
krb5 = discoverTests (import ./krb5); krb5 = discoverTests (import ./krb5);
ksm = handleTest ./ksm.nix {}; ksm = handleTest ./ksm.nix {};

View file

@ -1,6 +1,9 @@
import ./make-test-python.nix ( {
{ pkgs, lib, ... }: pkgs,
let lib,
...
}:
let
common = { common = {
networking.firewall.enable = false; networking.firewall.enable = false;
networking.useDHCP = false; networking.useDHCP = false;
@ -39,8 +42,8 @@ import ./make-test-python.nix (
algorithm: hmac-sha256 algorithm: hmac-sha256
secret: zOYgOgnzx3TGe5J5I/0kxd7gTcxXhLYMEq3Ek3fY37s= secret: zOYgOgnzx3TGe5J5I/0kxd7gTcxXhLYMEq3Ek3fY37s=
''; '';
in in
{ {
name = "knot"; name = "knot";
meta = with pkgs.lib.maintainers; { meta = with pkgs.lib.maintainers; {
maintainers = [ hexa ]; maintainers = [ hexa ];
@ -250,5 +253,4 @@ import ./make-test-python.nix (
primary.log(primary.succeed("systemd-analyze security knot.service | grep -v ''")) primary.log(primary.succeed("systemd-analyze security knot.service | grep -v ''"))
''; '';
} }
)