about summary refs log tree commit diff
path: root/nixos/tests/nitter.nix
blob: 8bc55ba8c69fce7f7c50385883a85781c9aa1521 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import ./make-test-python.nix ({ pkgs, ... }:

{
  name = "nitter";
  meta.maintainers = with pkgs.lib.maintainers; [ erdnaxe ];

  nodes.machine = {
    services.nitter.enable = true;
    # Test CAP_NET_BIND_SERVICE
    services.nitter.server.port = 80;
  };

  testScript = ''
    machine.wait_for_unit("nitter.service")
    machine.wait_for_open_port(80)
    machine.succeed("curl --fail http://localhost:80/")
  '';
})