mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
nixos/tests/avahi: add test for extra service definitions
This commit is contained in:
parent
229e7834eb
commit
dbf4be4642
@ -15,6 +15,7 @@ import ./make-test.nix ({ pkgs, ... } : {
|
|||||||
publish.enable = true;
|
publish.enable = true;
|
||||||
publish.userServices = true;
|
publish.userServices = true;
|
||||||
publish.workstation = true;
|
publish.workstation = true;
|
||||||
|
extraServiceFiles.ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
@ -56,5 +57,11 @@ import ./make-test.nix ({ pkgs, ... } : {
|
|||||||
$one->succeed("getent hosts two.local >&2");
|
$one->succeed("getent hosts two.local >&2");
|
||||||
$two->succeed("getent hosts one.local >&2");
|
$two->succeed("getent hosts one.local >&2");
|
||||||
$two->succeed("getent hosts two.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");
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user