nixos/searx: switch from `handleTest` to `runTests`

Changed files
+3 -7
nixos
+1 -1
nixos/tests/all-tests.nix
···
scrutiny = handleTest ./scrutiny.nix {};
sddm = handleTest ./sddm.nix {};
seafile = handleTest ./seafile.nix {};
-
searx = handleTest ./searx.nix {};
seatd = handleTest ./seatd.nix {};
service-runner = handleTest ./service-runner.nix {};
sftpgo = runTest ./sftpgo.nix;
···
scrutiny = handleTest ./scrutiny.nix {};
sddm = handleTest ./sddm.nix {};
seafile = handleTest ./seafile.nix {};
+
searx = runTest ./searx.nix;
seatd = handleTest ./seatd.nix {};
service-runner = handleTest ./service-runner.nix {};
sftpgo = runTest ./sftpgo.nix;
+2 -6
nixos/tests/searx.nix
···
-
import ./make-test-python.nix ({ pkgs, ...} :
{
name = "searx";
···
# basic setup: searx running the built-in webserver
nodes.base = { ... }: {
-
imports = [ ../modules/profiles/minimal.nix ];
-
services.searx = {
enable = true;
environmentFile = pkgs.writeText "secrets" ''
···
# 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
···
"${pkgs.curl}/bin/curl --fail http://localhost/searx/static/themes/simple/js/leaflet.js >&2"
)
'';
-
})
···
+
{ pkgs, ...} :
{
name = "searx";
···
# basic setup: searx running the built-in webserver
nodes.base = { ... }: {
services.searx = {
enable = true;
environmentFile = pkgs.writeText "secrets" ''
···
# fancy setup: run in uWSGI and use nginx as proxy
nodes.fancy = { config, ... }: {
services.searx = {
enable = true;
# searx refuses to run if unchanged
···
"${pkgs.curl}/bin/curl --fail http://localhost/searx/static/themes/simple/js/leaflet.js >&2"
)
'';
+
}