tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/powerdns: add test
Jörg Thalheim
8 years ago
ba27be79
03d9a369
+13
2 changed files
expand all
collapse all
unified
split
nixos
release.nix
tests
powerdns.nix
+1
nixos/release.nix
···
329
329
tests.postgresql = callSubTests tests/postgresql.nix {};
330
330
tests.pgmanage = callTest tests/pgmanage.nix {};
331
331
tests.postgis = callTest tests/postgis.nix {};
332
332
+
tests.powerdns = callTest tests/powerdns.nix {};
332
333
#tests.pgjwt = callTest tests/pgjwt.nix {};
333
334
tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {};
334
335
tests.printing = callTest tests/printing.nix {};
+12
nixos/tests/powerdns.nix
···
1
1
+
import ./make-test.nix ({ pkgs, ... }: {
2
2
+
name = "powerdns";
3
3
+
4
4
+
nodes.server = { config, pkgs, ... }: {
5
5
+
services.powerdns.enable = true;
6
6
+
};
7
7
+
8
8
+
testScript = ''
9
9
+
$server->waitForUnit("pdns");
10
10
+
$server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1");
11
11
+
'';
12
12
+
})