diff --git a/nix/grafana_test.nix b/nix/grafana_test.nix index 08df8a2c..1b358428 100644 --- a/nix/grafana_test.nix +++ b/nix/grafana_test.nix @@ -43,7 +43,8 @@ let "weekStart": "" } ''; -in { +in +{ services.grafana."gf1" = { enable = true; @@ -81,7 +82,7 @@ in { curl -sSfN -u $ADMIN:$PASSWORD $ROOT_URL/api/org/users | grep admin\@localhost # The dashboard provisioner was used to create a dashboard. curl -sSfN -u $ADMIN:$PASSWORD $ROOT_URL/api/dashboards/uid/${dashboardUid} -i - curl -sSfN -u $ADMIN:$PASSWORD $ROOT_URL/api/dashboards/uid/${dashboardUid} | grep '"titleā€:"${dashboardTitle}"' + curl -sSfN -u $ADMIN:$PASSWORD $ROOT_URL/api/dashboards/uid/${dashboardUid} | grep '"title":"${dashboardTitle}"' ''; name = "grafana-test"; };