at 25.11-pre 586 B view raw
1import ./make-test-python.nix ( 2 { pkgs, lib, ... }: 3 { 4 name = "whoogle-search"; 5 meta.maintainers = with lib.maintainers; [ malte-v ]; 6 7 nodes.machine = 8 { pkgs, ... }: 9 { 10 services.whoogle-search = { 11 enable = true; 12 port = 5000; 13 listenAddress = "127.0.0.1"; 14 }; 15 }; 16 17 testScript = '' 18 machine.start() 19 machine.wait_for_unit("whoogle-search.service") 20 machine.wait_for_open_port(5000) 21 machine.wait_until_succeeds("curl --fail --show-error --silent --location localhost:5000/") 22 ''; 23 } 24)