depot/packages/checks/searxng.nix

20 lines
463 B
Nix
Raw Permalink Normal View History

2023-01-31 01:00:53 +02:00
{ nixosTest, searxng, writeText }:
nixosTest {
name = "searxng";
nodes.machine = {
services.searx = {
enable = true;
runInUwsgi = true;
package = searxng;
settings.server.secret_key = "NixOSTestKey";
uwsgiConfig.http = "0.0.0.0:8080";
};
};
testScript = ''
machine.wait_for_unit("uwsgi.service")
machine.wait_for_open_port(8080)
2023-12-16 15:34:57 +02:00
machine.wait_until_succeeds("curl --fail http://127.0.0.1:8080/")
2023-01-31 01:00:53 +02:00
'';
}