5 declarativeConf = { ... }: {
6 services.adguardhome = {
9 mutableSettings = false;
13 bind_host = "0.0.0.0";
14 bootstrap_dns = "127.0.0.1";
20 mixedConf = { ... }: {
21 services.adguardhome = {
24 mutableSettings = true;
28 bind_host = "0.0.0.0";
29 bootstrap_dns = "127.0.0.1";
37 with subtest("Declarative config test, DNS will be reachable"):
38 declarativeConf.wait_for_unit("adguardhome.service")
39 declarativeConf.wait_for_open_port(53)
40 declarativeConf.wait_for_open_port(3000)
42 with subtest("Mixed config test, check whether merging works"):
43 mixedConf.wait_for_unit("adguardhome.service")
44 mixedConf.wait_for_open_port(53)
45 mixedConf.wait_for_open_port(3000)
46 # Test whether merging works properly, even if nothing is changed
47 mixedConf.systemctl("restart adguardhome.service")
48 mixedConf.wait_for_unit("adguardhome.service")
49 mixedConf.wait_for_open_port(3000)