about summary refs log tree commit diff
path: root/nixos/tests/wastebin.nix
blob: 1cf0ff80ae99d37d067dab0784b38d0384a62ccb (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 ({ pkgs, 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/")
  '';
})