summaryrefslogtreecommitdiffstats
path: root/nixos/tests/privatebin.nix
blob: c920b6220084fe677ec5729624933856f20be02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, ... }:

{
  name = "privatebin";
  meta.maintainers = [ lib.maintainers.savyajha ];

  nodes.dataImporter =
    { ... }:
    {
      services.privatebin = {
        enable = true;
        enableNginx = true;
      };
    };

  testScript = ''
    dataImporter.wait_for_unit("phpfpm-privatebin.service")
    dataImporter.wait_for_unit("nginx.service")
    dataImporter.succeed("curl -fvvv -Ls http://localhost/ | grep 'PrivateBin'")
  '';
}