mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
nixos/tests/privatebin: init
This commit is contained in:
parent
22e2e02118
commit
2a06cac30a
|
@ -818,6 +818,7 @@ in {
|
||||||
printing-socket = handleTest ./printing.nix { socket = true; };
|
printing-socket = handleTest ./printing.nix { socket = true; };
|
||||||
printing-service = handleTest ./printing.nix { socket = false; };
|
printing-service = handleTest ./printing.nix { socket = false; };
|
||||||
private-gpt = handleTest ./private-gpt.nix {};
|
private-gpt = handleTest ./private-gpt.nix {};
|
||||||
|
privatebin = runTest ./privatebin.nix;
|
||||||
privoxy = handleTest ./privoxy.nix {};
|
privoxy = handleTest ./privoxy.nix {};
|
||||||
prometheus = handleTest ./prometheus {};
|
prometheus = handleTest ./prometheus {};
|
||||||
prometheus-exporters = handleTest ./prometheus-exporters.nix {};
|
prometheus-exporters = handleTest ./prometheus-exporters.nix {};
|
||||||
|
|
21
nixos/tests/privatebin.nix
Normal file
21
nixos/tests/privatebin.nix
Normal file
|
@ -0,0 +1,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'")
|
||||||
|
'';
|
||||||
|
}
|
|
@ -22,6 +22,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = nixosTests.privatebin;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/PrivateBin/PrivateBin/releases/tag/${finalAttrs.version}";
|
changelog = "https://github.com/PrivateBin/PrivateBin/releases/tag/${finalAttrs.version}";
|
||||||
description = "Minimalist, open source online pastebin where the server has zero knowledge of pasted data.";
|
description = "Minimalist, open source online pastebin where the server has zero knowledge of pasted data.";
|
||||||
|
|
Loading…
Reference in a new issue