1 import ../make-test-python.nix ({ lib, pkgs, ... }: {
4 meta = with lib.maintainers; {
5 maintainers = [ n0emis ];
8 nodes.machine = { ... }: {
11 secretKeyFile = pkgs.writeText "secret" ''
12 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
19 machine.wait_for_unit("netbox.target")
20 machine.wait_until_succeeds("journalctl --since -1m --unit netbox --grep Listening")
22 with subtest("Home screen loads"):
24 "curl -sSfL http://[::1]:8001 | grep '<title>Home | NetBox</title>'"
27 with subtest("Staticfiles are generated"):
28 machine.succeed("test -e /var/lib/netbox/static/netbox.js")