nixosTests.librenms: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-04 13:44:11 +02:00
parent 2adb1b17c0
commit 8807f45da0
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 89 additions and 91 deletions

View file

@ -691,7 +691,7 @@ in
leaps = handleTest ./leaps.nix { };
lemmy = handleTest ./lemmy.nix { };
libinput = handleTest ./libinput.nix { };
librenms = handleTest ./librenms.nix { };
librenms = runTest ./librenms.nix;
libresprite = handleTest ./libresprite.nix { };
libreswan = runTest ./libreswan.nix;
libreswan-nat = runTest ./libreswan-nat.nix;

View file

@ -1,11 +1,10 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
{ pkgs, lib, ... }:
let
let
api_token = "f87f42114e44b63ad1b9e3c3d33d6fbe"; # random md5 hash
wrong_api_token = "e68ba041fcf1eab923a7a6de3af5f726"; # another random md5 hash
in
{
in
{
name = "librenms";
meta.maintainers = lib.teams.wdz.members;
@ -102,5 +101,4 @@ import ./make-test-python.nix (
# wait until snmphost gets polled
librenms.wait_until_succeeds("test $(curl -H 'X-Auth-Token: ${api_token}' http://localhost/api/v0/devices/snmphost | jq -Mr .devices[0].last_polled) != 'null'")
'';
}
)
}