nixos/searx: switch from handleTest to runTests

This commit is contained in:
Pol Dellaiera 2024-06-19 07:04:30 +02:00
parent 3dc779576e
commit 931b1bb0f1
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
2 changed files with 3 additions and 7 deletions

View File

@ -834,7 +834,7 @@ in {
scrutiny = handleTest ./scrutiny.nix {};
sddm = handleTest ./sddm.nix {};
seafile = handleTest ./seafile.nix {};
searx = handleTest ./searx.nix {};
searx = runTest ./searx.nix;
seatd = handleTest ./seatd.nix {};
service-runner = handleTest ./service-runner.nix {};
sftpgo = runTest ./sftpgo.nix;

View File

@ -1,4 +1,4 @@
import ./make-test-python.nix ({ pkgs, ...} :
{ pkgs, ...} :
{
name = "searx";
@ -8,8 +8,6 @@ import ./make-test-python.nix ({ pkgs, ...} :
# basic setup: searx running the built-in webserver
nodes.base = { ... }: {
imports = [ ../modules/profiles/minimal.nix ];
services.searx = {
enable = true;
environmentFile = pkgs.writeText "secrets" ''
@ -37,8 +35,6 @@ import ./make-test-python.nix ({ pkgs, ...} :
# fancy setup: run in uWSGI and use nginx as proxy
nodes.fancy = { config, ... }: {
imports = [ ../modules/profiles/minimal.nix ];
services.searx = {
enable = true;
# searx refuses to run if unchanged
@ -111,4 +107,4 @@ import ./make-test-python.nix ({ pkgs, ...} :
"${pkgs.curl}/bin/curl --fail http://localhost/searx/static/themes/simple/js/leaflet.js >&2"
)
'';
})
}