nixpkgs/nixos/tests/privatebin.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
447 B
Nix
Raw Permalink Normal View History

2024-09-29 17:27:42 +00:00
{ 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'")
'';
}