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

with lib;

{
  name = "libreddit";
  meta.maintainers = with maintainers; [ fab ];

  nodes.machine =
    { pkgs, ... }:
    { services.libreddit.enable = true; };

  testScript = ''
    machine.wait_for_unit("libreddit.service")
    machine.wait_for_open_port("8080")
    # The service wants to get data from https://www.reddit.com
    machine.succeed("curl http://localhost:8080/")
  '';
})