python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / tests / leaps.nix
blob5cc387c86a4523aefb16ae9e81d6c6f18c604256
1 import ./make-test-python.nix ({ pkgs,  ... }:
4   name = "leaps";
5   meta = with pkgs.lib.maintainers; {
6     maintainers = [ qknight ];
7   };
9   nodes =
10     {
11       client = { };
13       server =
14         { services.leaps = {
15             enable = true;
16             port = 6666;
17             path = "/leaps/";
18           };
19           networking.firewall.enable = false;
20         };
21     };
23   testScript =
24     ''
25       start_all()
26       server.wait_for_open_port(6666)
27       client.wait_for_unit("network.target")
28       assert "leaps" in client.succeed(
29           "${pkgs.curl}/bin/curl -f http://server:6666/leaps/"
30       )
31     '';