lol

nixos/tests/powerdns: Stop manually configuring config path

authored by

TQ Hirsch and committed by
Nick Cao
8ab22ad2 d25e5e21

+1 -7
+1 -7
nixos/tests/powerdns.nix
··· 28 28 }; 29 29 30 30 testScript = '' 31 - import re 32 - 33 31 with subtest("PowerDNS database exists"): 34 32 server.wait_for_unit("mysql") 35 33 server.succeed("echo 'SHOW DATABASES;' | sudo -u pdns mysql -u pdns >&2") ··· 46 44 47 45 with subtest("Adding an example zone works"): 48 46 # Extract configuration file needed by pdnsutil 49 - unit = server.succeed("systemctl cat pdns") 50 - match = re.search("(--config-dir=[^ ]+)", unit) 51 - assert(match is not None) 52 - conf = match.group(1) 53 - pdnsutil = "sudo -u pdns pdnsutil " + conf 47 + pdnsutil = "sudo -u pdns pdnsutil " 54 48 server.succeed(f"{pdnsutil} create-zone example.com ns1.example.com") 55 49 server.succeed(f"{pdnsutil} add-record example.com ns1 A 192.168.1.2") 56 50