0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-20 09:00:41 +03:00
nixpkgs/nixos/tests/corteza.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
403 B
Nix
Raw Normal View History

2025-06-24 18:54:39 +08:00
{ lib, ... }:
let
port = 8080;
in
{
name = "corteza";
meta.maintainers = [ lib.teams.ngi.members ];
nodes.machine = {
services.corteza = {
enable = true;
inherit port;
};
};
testScript = ''
machine.start()
machine.wait_for_unit("default.target")
machine.wait_until_succeeds("curl http://localhost:${toString port}/auth/login | grep button-login")
'';
}