diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-04-04 08:35:07 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-04-04 08:35:07 +0200 |
commit | e7cc6269022c0430685c51a86b8b9b5d48e45126 (patch) | |
tree | 3e8f2caa1f3b4468d6aa68cc11883ba1c1a4cf9a /nixos/tests/technitium-dns-server.nix | |
parent | 537d34da58a8b3e0a6e8ae7c71f257b8890ab53e (diff) |
nixos/modules: add `technitium-dns-server` tests
Diffstat (limited to 'nixos/tests/technitium-dns-server.nix')
-rw-r--r-- | nixos/tests/technitium-dns-server.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/technitium-dns-server.nix b/nixos/tests/technitium-dns-server.nix new file mode 100644 index 0000000000000..016c9d4ecead5 --- /dev/null +++ b/nixos/tests/technitium-dns-server.nix @@ -0,0 +1,21 @@ +import ./make-test-python.nix ({pkgs, lib, ...}: +{ + name = "technitium-dns-server"; + + nodes = { + machine = {pkgs, ...}: { + services.technitium-dns-server = { + enable = true; + openFirewall = true; + }; + }; + }; + + testScript = '' + start_all() + machine.wait_for_unit("technitium-dns-server.service") + machine.wait_for_open_port(53) + ''; + + meta.maintainers = with lib.maintainers; [ fabianrig ]; +}) |