File tree 3 files changed +24
-0
lines changed
pkgs/by-name/pr/privatebin
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 818
818
printing-socket = handleTest ./printing.nix { socket = true ; } ;
819
819
printing-service = handleTest ./printing.nix { socket = false ; } ;
820
820
private-gpt = handleTest ./private-gpt.nix { } ;
821
+ privatebin = runTest ./privatebin.nix ;
821
822
privoxy = handleTest ./privoxy.nix { } ;
822
823
prometheus = handleTest ./prometheus { } ;
823
824
prometheus-exporters = handleTest ./prometheus-exporters.nix { } ;
Original file line number Diff line number Diff line change
1
+ { lib , ... } :
2
+
3
+ {
4
+ name = "privatebin" ;
5
+ meta . maintainers = [ lib . maintainers . savyajha ] ;
6
+
7
+ nodes . dataImporter =
8
+ { ... } :
9
+ {
10
+ services . privatebin = {
11
+ enable = true ;
12
+ enableNginx = true ;
13
+ } ;
14
+ } ;
15
+
16
+ testScript = ''
17
+ dataImporter.wait_for_unit("phpfpm-privatebin.service")
18
+ dataImporter.wait_for_unit("nginx.service")
19
+ dataImporter.succeed("curl -fvvv -Ls http://localhost/ | grep 'PrivateBin'")
20
+ '' ;
21
+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
22
22
runHook postInstall
23
23
'' ;
24
24
25
+ passthru . tests = nixosTests . privatebin ;
26
+
25
27
meta = {
26
28
changelog = "https://github.com/PrivateBin/PrivateBin/releases/tag/${ finalAttrs . version } " ;
27
29
description = "Minimalist, open source online pastebin where the server has zero knowledge of pasted data." ;
You can’t perform that action at this time.
0 commit comments