summaryrefslogtreecommitdiffstats
path: root/nixos/tests/avahi.nix
diff options
context:
space:
mode:
authorWilliButz <wbutz@cyberfnord.de>2019-06-04 00:21:51 +0200
committerWilliButz <wbutz@cyberfnord.de>2019-06-04 02:09:59 +0200
commitdbf4be46424c30ff5f8428a336e568b35b1b8524 (patch)
treecb7755257e4b44bb29243dd61e426ee59ccf0ab4 /nixos/tests/avahi.nix
parent229e7834eb259a8938462ff738e897226e820c32 (diff)
nixos/tests/avahi: add test for extra service definitions
Diffstat (limited to 'nixos/tests/avahi.nix')
-rw-r--r--nixos/tests/avahi.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/tests/avahi.nix b/nixos/tests/avahi.nix
index 56b21a401551..ae4f54d5266a 100644
--- a/nixos/tests/avahi.nix
+++ b/nixos/tests/avahi.nix
@@ -15,6 +15,7 @@ import ./make-test.nix ({ pkgs, ... } : {
publish.enable = true;
publish.userServices = true;
publish.workstation = true;
+ extraServiceFiles.ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
};
};
in {
@@ -56,5 +57,11 @@ import ./make-test.nix ({ pkgs, ... } : {
$one->succeed("getent hosts two.local >&2");
$two->succeed("getent hosts one.local >&2");
$two->succeed("getent hosts two.local >&2");
+
+ # extra service definitions
+ $one->succeed("avahi-browse -r -t _ssh._tcp | tee out >&2");
+ $one->succeed("test `wc -l < out` -gt 0");
+ $two->succeed("avahi-browse -r -t _ssh._tcp | tee out >&2");
+ $two->succeed("test `wc -l < out` -gt 0");
'';
})