summaryrefslogtreecommitdiffstats
path: root/nixos/tests/wastebin.nix
blob: 79d05229eb7f8e3dc7a93aa43b207330d0c5d511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, ... }:
{
  name = "wastebin";

  meta = {
    maintainers = with lib.maintainers; [ pinpox ];
  };

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

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