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

  meta.maintainers = with lib.maintainers; [
    e1mo
    xanderio
  ];

  containers.outline = {
    services.outline = {
      enable = true;
      forceHttps = false;
      storage = {
        storageType = "local";
      };
    };
  };

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