1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/tests/whoogle-search.nix
2024-12-18 15:14:45 +01:00

25 lines
586 B
Nix

import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "whoogle-search";
meta.maintainers = with lib.maintainers; [ malte-v ];
nodes.machine =
{ pkgs, ... }:
{
services.whoogle-search = {
enable = true;
port = 5000;
listenAddress = "127.0.0.1";
};
};
testScript = ''
machine.start()
machine.wait_for_unit("whoogle-search.service")
machine.wait_for_open_port(5000)
machine.wait_until_succeeds("curl --fail --show-error --silent --location localhost:5000/")
'';
}
)