diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-03-10 22:41:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 22:41:45 +0100 |
commit | 76721f5e5e02fcc85218d10299dcc75bd9ffb861 (patch) | |
tree | c4c7aea08b28936e0bcbd3edaefcc3b8f2b8c04a /nixos/tests/prometheus-exporters.nix | |
parent | 55c85fb2f889eba29a3b33d78ded208a7ae0f55f (diff) | |
parent | 6a0b420d9445ccc5a7171a8f777449b144008711 (diff) |
Merge pull request #159986 from NukaDuka/pve_exporter
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 18b64a958dd6d..ce3b3fbf3bf31 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -933,6 +933,27 @@ let ''; }; + pve = let + pveExporterEnvFile = pkgs.writeTextFile { + name = "pve.env"; + text = '' + PVE_USER="test_user@pam" + PVE_PASSWORD="hunter3" + PVE_VERIFY_SSL="false" + ''; + }; + in { + exporterConfig = { + enable = true; + environmentFile = pveExporterEnvFile; + }; + exporterTest = '' + wait_for_unit("prometheus-pve-exporter.service") + wait_for_open_port(9221) + wait_until_succeeds("curl localhost:9221") + ''; + }; + py-air-control = { nodeName = "py_air_control"; exporterConfig = { |