1import ./make-test-python.nix (
2 { pkgs, lib, ... }:
3 {
4 name = "transfer-sh";
5
6 meta = {
7 maintainers = with lib.maintainers; [ ocfox ];
8 };
9
10 nodes.machine =
11 { pkgs, ... }:
12 {
13 services.transfer-sh = {
14 enable = true;
15 settings.LISTENER = ":1234";
16 };
17 };
18
19 testScript = ''
20 machine.wait_for_unit("transfer-sh.service")
21 machine.wait_for_open_port(1234)
22 machine.succeed("curl --fail http://localhost:1234/")
23 '';
24 }
25)