about summary refs log tree commit diff
path: root/pkgs/tools/misc/logstash
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2021-03-22 14:53:05 +0100
committerRobert Hensing <robert@roberthensing.nl>2021-03-23 14:42:40 +0100
commit9011d5975855649ca68423ac33e97bdf8a4bd1ef (patch)
tree8a2ad04f66482a4f8291b387e4fb62f56bedf455 /pkgs/tools/misc/logstash
parent05f8f9ac35f987b5aa0d656af91c4e4d42b35e7c (diff)
logstash-*-oss: Add passthru.tests
Diffstat (limited to 'pkgs/tools/misc/logstash')
-rw-r--r--pkgs/tools/misc/logstash/6.x.nix13
-rw-r--r--pkgs/tools/misc/logstash/7.x.nix13
2 files changed, 22 insertions, 4 deletions
diff --git a/pkgs/tools/misc/logstash/6.x.nix b/pkgs/tools/misc/logstash/6.x.nix
index 97ee5b2ed3f39..1c7ab29cbc863 100644
--- a/pkgs/tools/misc/logstash/6.x.nix
+++ b/pkgs/tools/misc/logstash/6.x.nix
@@ -3,12 +3,13 @@
 , lib, stdenv
 , fetchurl
 , makeWrapper
+, nixosTests
 , jre
 }:
 
 with lib;
 
-stdenv.mkDerivation rec {
+let this = stdenv.mkDerivation rec {
   version = elk6Version;
   name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
 
@@ -52,4 +53,12 @@ stdenv.mkDerivation rec {
     platforms   = platforms.unix;
     maintainers = with maintainers; [ wjlroe offline basvandijk ];
   };
-}
+  passthru.tests =
+    optionalAttrs (!enableUnfree) (
+      assert this.drvPath == nixosTests.elk.ELK-6.elkPackages.logstash.drvPath;
+      {
+        elk = nixosTests.elk.ELK-6;
+      }
+    );
+};
+in this
diff --git a/pkgs/tools/misc/logstash/7.x.nix b/pkgs/tools/misc/logstash/7.x.nix
index 0817a7ab087ee..1abc0ff9bf82b 100644
--- a/pkgs/tools/misc/logstash/7.x.nix
+++ b/pkgs/tools/misc/logstash/7.x.nix
@@ -3,12 +3,13 @@
 , lib, stdenv
 , fetchurl
 , makeWrapper
+, nixosTests
 , jre
 }:
 
 with lib;
 
-stdenv.mkDerivation rec {
+let this = stdenv.mkDerivation rec {
   version = elk7Version;
   name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
 
@@ -52,4 +53,12 @@ stdenv.mkDerivation rec {
     platforms   = platforms.unix;
     maintainers = with maintainers; [ wjlroe offline basvandijk ];
   };
-}
+  passthru.tests =
+    optionalAttrs (!enableUnfree) (
+      assert this.drvPath == nixosTests.elk.ELK-7.elkPackages.logstash.drvPath;
+      {
+        elk = nixosTests.elk.ELK-7;
+      }
+    );
+};
+in this