about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliButz <wbutz@cyberfnord.de>2019-07-17 14:17:58 +0200
committerWilliButz <wbutz@cyberfnord.de>2019-07-22 16:41:09 +0200
commit01ee2ee2ba5b1d4763c77a6ed46523c17df97167 (patch)
tree2cb47653c0c37df846b2b6908b0a563b2cb15dcb /nixos
parent95be462d07043feb710f587eaf09a006d5fb438d (diff)
downloadnixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar
nixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.gz
nixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.bz2
nixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.lz
nixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.xz
nixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.tar.zst
nixlib-01ee2ee2ba5b1d4763c77a6ed46523c17df97167.zip
nixos/test: fix prometheus-{bind,varnish}-exporter tests
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/varnish.nix1
-rw-r--r--nixos/tests/prometheus-exporters.nix3
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix b/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix
index aaed76175b84..924689dc994b 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix
@@ -68,7 +68,6 @@ in
   serviceOpts = {
     path = [ pkgs.varnish ];
     serviceConfig = {
-      DynamicUser = true;
       RestartSec = mkDefault 1;
       ExecStart = ''
         ${pkgs.prometheus-varnish-exporter}/bin/prometheus_varnish_exporter \
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index 9a85501d15f8..fb01b5018214 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -73,7 +73,7 @@ let
       exporterTest = ''
         waitForUnit("prometheus-bind-exporter.service");
         waitForOpenPort(9119);
-        succeed("curl -sSf http://localhost:9119/metrics" | grep -q 'bind_query_recursions_total 0');
+        succeed("curl -sSf http://localhost:9119/metrics | grep -q 'bind_query_recursions_total 0'");
       '';
     };
 
@@ -311,6 +311,7 @@ let
       };
       exporterTest = ''
         waitForUnit("prometheus-varnish-exporter.service");
+        waitForOpenPort(6081);
         waitForOpenPort(9131);
         succeed("curl -sSf http://localhost:9131/metrics | grep -q 'varnish_up 1'");
       '';