From ebcff906a044b27b7109031ac723ee6baff8b022 Mon Sep 17 00:00:00 2001 From: Sergey Lukjanov Date: Thu, 8 Dec 2022 00:49:20 -0800 Subject: [PATCH] prometheus-smartctl-exporter: add passthru.tests --- .../monitoring/prometheus/smartctl-exporter/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/monitoring/prometheus/smartctl-exporter/default.nix b/pkgs/servers/monitoring/prometheus/smartctl-exporter/default.nix index efca010ac477..51e04c83b386 100644 --- a/pkgs/servers/monitoring/prometheus/smartctl-exporter/default.nix +++ b/pkgs/servers/monitoring/prometheus/smartctl-exporter/default.nix @@ -1,6 +1,7 @@ { lib , fetchFromGitHub , buildGoModule +, nixosTests }: buildGoModule rec { @@ -20,6 +21,8 @@ buildGoModule rec { "-X github.com/prometheus/common/version.Version=${version}" ]; + passthru.tests = { inherit (nixosTests.prometheus-exporters) smartctl; }; + meta = with lib; { description = "Export smartctl statistics for Prometheus"; homepage = "https://github.com/prometheus-community/smartctl_exporter";