summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2021-07-18 09:51:49 +0200
committerElis Hirwing <elis@hirwing.se>2021-07-19 07:33:03 +0200
commitf8b6ba005e8dc259a6ae065b1322bb879380aa57 (patch)
tree7582b238f4e5663b5210ed084ad9e2e51a05f2b0 /pkgs/servers
parent09a49354b6dab9ea9807359ec3f7434b54730eab (diff)
downloadnixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.tar
nixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.tar.gz
nixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.tar.bz2
nixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.tar.lz
nixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.tar.xz
nixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.tar.zst
nixpkgs-f8b6ba005e8dc259a6ae065b1322bb879380aa57.zip
nixos/tests: Init hockeypuck tests
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/hockeypuck/server.nix4
-rw-r--r--pkgs/servers/hockeypuck/web.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/servers/hockeypuck/server.nix b/pkgs/servers/hockeypuck/server.nix
index 5a95f227832..cf48fd5716c 100644
--- a/pkgs/servers/hockeypuck/server.nix
+++ b/pkgs/servers/hockeypuck/server.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
 
 let
   sources = (import ./sources.nix) { inherit fetchFromGitHub; };
@@ -10,6 +10,8 @@ buildGoModule {
   vendorSha256 = null;
   doCheck = false; # Uses networking for tests
 
+  passthru.tests = nixosTests.hockeypuck;
+
   meta = with lib; {
     description = "OpenPGP Key Server";
     homepage = "https://github.com/hockeypuck/hockeypuck";
diff --git a/pkgs/servers/hockeypuck/web.nix b/pkgs/servers/hockeypuck/web.nix
index eda5317e8c4..32f2b1acd22 100644
--- a/pkgs/servers/hockeypuck/web.nix
+++ b/pkgs/servers/hockeypuck/web.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchFromGitHub }:
+{ stdenv, lib, fetchFromGitHub, nixosTests }:
 
 let
   sources = (import ./sources.nix) { inherit fetchFromGitHub; };
@@ -17,6 +17,8 @@ stdenv.mkDerivation {
     cp -vr contrib/templates $out/share/
   '';
 
+  passthru.tests = nixosTests.hockeypuck;
+
   meta = with lib; {
     description = "OpenPGP Key Server web resources";
     homepage = "https://github.com/hockeypuck/hockeypuck";