From c62eef5675e6f8ebeeb04fbb13c529899846cf16 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Thu, 11 Mar 2021 18:39:17 +0100 Subject: [PATCH] prometheus-knot-exporter: reference vm test --- pkgs/servers/monitoring/prometheus/knot-exporter.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/prometheus/knot-exporter.nix b/pkgs/servers/monitoring/prometheus/knot-exporter.nix index f1c4c60531d..9d99685b569 100644 --- a/pkgs/servers/monitoring/prometheus/knot-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/knot-exporter.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, lib, python3 }: +{ stdenv, fetchFromGitHub, lib, python3, nixosTests }: stdenv.mkDerivation rec { pname = "knot-exporter"; @@ -27,6 +27,8 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru.tests = { inherit (nixosTests.prometheus-exporters) knot; }; + meta = with lib; { homepage = "https://github.com/ghedo/knot_exporter"; description = " Prometheus exporter for Knot DNS";