pushgateway: Added nixosTests to passthru.tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, testers, prometheus-pushgateway }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, nixosTests, testers, prometheus-pushgateway }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "pushgateway";
|
||||
@@ -23,8 +23,11 @@ buildGoModule rec {
|
||||
"-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00"
|
||||
];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = prometheus-pushgateway;
|
||||
passthru.tests = {
|
||||
inherit (nixosTests.prometheus) pushgateway;
|
||||
version = testers.testVersion {
|
||||
package = prometheus-pushgateway;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user