depot/nixos/tests/portunus.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

18 lines
394 B
Nix

import ./make-test-python.nix ({ lib, ... }:
{
name = "portunus";
meta.maintainers = with lib.maintainers; [ SuperSandro2000 ];
nodes.machine = _: {
services.portunus = {
enable = true;
ldap.suffix = "dc=example,dc=org";
};
};
testScript = ''
machine.wait_for_unit("portunus.service")
machine.succeed("curl --fail -vvv http://localhost:8080/")
'';
})