1 import ./make-test-python.nix {
8 serverName = "Gerbera";
13 path = "/var/lib/gerbera/pictures";
18 path = "/var/lib/gerbera/audio";
24 systemd.tmpfiles.rules = [
25 "d /var/lib/gerbera/pictures 0770 mediatomb mediatomb"
26 "d /var/lib/gerbera/audio 0770 mediatomb mediatomb"
33 testScript = { nodes, ... }:
35 serverIP = nodes.server.networking.primaryIPAddress;
36 serverIPv6 = nodes.server.networking.primaryIPv6Address;
41 server.wait_for_unit("mediatomb")
42 server.wait_until_succeeds("nc -z ${serverIP} 49152")
43 server.succeed("curl -v --fail http://${serverIP}:49152/")
44 server.succeed("curl -v --fail http://[${serverIPv6}]:49152/")
46 client.wait_for_unit("multi-user.target")
47 page = client.succeed("curl -v --fail http://${serverIP}:49152/")
48 page = client.succeed("curl -v --fail http://[${serverIPv6}]:49152/")
49 assert "Gerbera" in page and "MediaTomb" not in page