Disable backup and outgoing mail in module test

This commit is contained in:
Fabian Hauser 2025-03-25 23:59:22 +02:00
parent 6818a9cea2
commit afd284a008
2 changed files with 8 additions and 2 deletions
checks/nixos-modules
nixos-modules/static-page

View file

@ -11,6 +11,7 @@ let
filter filter
path path
mkDefault mkDefault
mkForce
readFile readFile
attrNames attrNames
concatStringsSep concatStringsSep
@ -32,7 +33,12 @@ let
}) })
]; ];
defaults.imports = [ defaultModule ]; defaults = {
imports = [ defaultModule ];
qois.outgoing-server-mail.enable = mkForce false;
qois.backup-client.enable = mkForce false;
};
# Calls a `test(...)` python function in the test's python file with the list of nodes and helper functions. # Calls a `test(...)` python function in the test's python file with the list of nodes and helper functions.
# Helper symbols may be added as function args when needed and can be found in: # Helper symbols may be added as function args when needed and can be found in:

View file

@ -46,4 +46,4 @@ def test(subtest, webserver):
url = "http://example.com/index.html" url = "http://example.com/index.html"
expect_http_code(webserver, "301", url) expect_http_code(webserver, "301", url)
expect_http_location(webserver, "http://localhost/index.html", url) expect_http_location(webserver, "http://docs.example.com/index.html", url)