summary refs log blame commit diff
path: root/nixos/tests/nitter.nix
blob: e17f1c473436fa5bd1edb7d6470494f19ddddbae (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                            
import ./make-test-python.nix ({ pkgs, ... }:

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

  nodes.machine = {
    services.nitter.enable = true;
  };

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