nixos/tests/prometheus-exporters/kea: remove

The test framework for exporters is too limited to do sensible testing
of this exporter.
This commit is contained in:
Martin Weinelt 2024-03-21 06:03:24 +01:00
parent c77d192eb4
commit 5b97e8d76d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 0 additions and 53 deletions

View File

@ -418,54 +418,6 @@ let
'';
};
kea = let
controlSocketPathV4 = "/run/kea/dhcp4.sock";
controlSocketPathV6 = "/run/kea/dhcp6.sock";
in
{
exporterConfig = {
enable = true;
controlSocketPaths = [
controlSocketPathV4
controlSocketPathV6
];
};
metricProvider = {
services.kea = {
dhcp4 = {
enable = true;
settings = {
control-socket = {
socket-type = "unix";
socket-name = controlSocketPathV4;
};
};
};
dhcp6 = {
enable = true;
settings = {
control-socket = {
socket-type = "unix";
socket-name = controlSocketPathV6;
};
};
};
};
};
exporterTest = ''
wait_for_unit("kea-dhcp4-server.service")
wait_for_unit("kea-dhcp6-server.service")
wait_for_file("${controlSocketPathV4}")
wait_for_file("${controlSocketPathV6}")
wait_for_unit("prometheus-kea-exporter.service")
wait_for_open_port(9547)
succeed(
"curl --fail localhost:9547/metrics | grep 'packets_received_total'"
)
'';
};
knot = {
exporterConfig = {
enable = true;

View File

@ -1,7 +1,6 @@
{ lib
, python3Packages
, fetchPypi
, nixosTests
}:
python3Packages.buildPythonApplication rec {
@ -30,10 +29,6 @@ python3Packages.buildPythonApplication rec {
$out/bin/kea-exporter --version | grep -q ${version}
'';
passthru.tests = {
inherit (nixosTests.prometheus-exporters) kea;
};
meta = with lib; {
changelog = "https://github.com/mweinelt/kea-exporter/blob/v${version}/HISTORY";
description = "Export Kea Metrics in the Prometheus Exposition Format";