python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / tests / mediatomb.nix
blob9c84aa3e92a5d264465b79cd0a58e1a7922f683b
1 import ./make-test-python.nix {
2   name = "mediatomb";
4   nodes = {
5     server = {
6       services.mediatomb = {
7         enable = true;
8         serverName = "Gerbera";
9         interface = "eth1";
10         openFirewall = true;
11         mediaDirectories = [
12           {
13             path = "/var/lib/gerbera/pictures";
14             recursive = false;
15             hidden-files = false;
16           }
17           {
18             path = "/var/lib/gerbera/audio";
19             recursive = true;
20             hidden-files = false;
21           }
22         ];
23       };
24       systemd.tmpfiles.rules = [
25         "d /var/lib/gerbera/pictures 0770 mediatomb mediatomb"
26         "d /var/lib/gerbera/audio 0770 mediatomb mediatomb"
27       ];
28     };
30     client = {};
31   };
33   testScript = ''
34     start_all()
36     server.wait_for_unit("mediatomb")
37     server.wait_until_succeeds("nc -z 192.168.1.2 49152")
38     server.succeed("curl -v --fail http://server:49152/")
40     client.wait_for_unit("multi-user.target")
41     page = client.succeed("curl -v --fail http://server:49152/")
42     assert "Gerbera" in page and "MediaTomb" not in page
43   '';