f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
20 lines
514 B
Nix
20 lines
514 B
Nix
import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
|
name = "redlib";
|
|
meta.maintainers = with lib.maintainers; [ soispha ];
|
|
|
|
nodes.machine = {
|
|
services.redlib = {
|
|
package = pkgs.redlib;
|
|
enable = true;
|
|
# Test CAP_NET_BIND_SERVICE
|
|
port = 80;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("redlib.service")
|
|
machine.wait_for_open_port(80)
|
|
# Query a page that does not require Internet access
|
|
machine.succeed("curl --fail http://localhost:80/settings")
|
|
'';
|
|
})
|