diff options
author | Graham Christensen <graham@grahamc.com> | 2021-12-20 10:57:31 -0500 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2021-12-20 10:57:31 -0500 |
commit | 3907d19260520a2939d8463e0fe0a65bd6f60b37 (patch) | |
tree | 620dd7430b3eb02a191cfd1e5de5fda6c3bbcf8e /nixos/tests/prometheus-exporters.nix | |
parent | d3aee09b992c25f4788ca00e4654d055c0e553ac (diff) |
services.prometheus.exporters.fastly: add a smoke test
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 008a5edd071d0..036c037e426c4 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -259,6 +259,19 @@ let ''; }; + fastly = { + exporterConfig = { + enable = true; + tokenPath = pkgs.writeText "token" "abc123"; + }; + + # noop: fastly's exporter can't start without first talking to fastly + # see: https://github.com/peterbourgon/fastly-exporter/issues/87 + exporterTest = '' + succeed("true"); + ''; + }; + fritzbox = { # TODO add proper test case exporterConfig = { |