Unverified Commit 5adadf25 authored by Jonathan Davies's avatar Jonathan Davies
Browse files

pushgateway: Added nixosTests to passthru.tests

parent 0cb65f8e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, testers, prometheus-pushgateway }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests, testers, prometheus-pushgateway }:

buildGoModule rec {
  pname = "pushgateway";
@@ -23,9 +23,12 @@ buildGoModule rec {
    "-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00"
  ];

  passthru.tests.version = testers.testVersion {
  passthru.tests = {
    inherit (nixosTests.prometheus) pushgateway;
    version = testers.testVersion {
      package = prometheus-pushgateway;
    };
  };

  meta = with lib; {
    description = "Allows ephemeral and batch jobs to expose metrics to Prometheus";