1import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "wastebin";
3
4 meta = {
5 maintainers = with lib.maintainers; [ pinpox ];
6 };
7
8 nodes.machine = { pkgs, ... }: {
9 services.wastebin = {
10 enable = true;
11 };
12 };
13
14 testScript = ''
15 machine.wait_for_unit("wastebin.service")
16 machine.wait_for_open_port(8088)
17 machine.succeed("curl --fail http://localhost:8088/")
18 '';
19})