diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2017-10-31 15:49:59 +0100 |
---|---|---|
committer | Bas van Dijk <v.dijk.bas@gmail.com> | 2017-10-31 15:49:59 +0100 |
commit | 04b2460eb65c64705df0de0ce33dde6ba524a216 (patch) | |
tree | 0a8b9f4262a01316d8f5da54550430da2367f420 /nixos/tests/graphite.nix | |
parent | fe9cefa7e4ed4da1a0d1d9777bf0f7145fff22e3 (diff) |
graphite: fix the graphiteApi service
Diffstat (limited to 'nixos/tests/graphite.nix')
-rw-r--r-- | nixos/tests/graphite.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/nixos/tests/graphite.nix b/nixos/tests/graphite.nix index 4fd7de192d55..a22ef224580a 100644 --- a/nixos/tests/graphite.nix +++ b/nixos/tests/graphite.nix @@ -4,22 +4,28 @@ import ./make-test.nix ({ pkgs, ...} : nodes = { one = { config, pkgs, ... }: { + time.timeZone = "UTC"; services.graphite = { - web = { + web.enable = true; + api = { enable = true; + port = 8082; }; - carbon = { - enableCache = true; - }; + carbon.enableCache = true; + seyren.enable = true; + pager.enable = true; }; }; - }; + }; testScript = '' startAll; $one->waitForUnit("default.target"); $one->requireActiveUnit("graphiteWeb.service"); + $one->requireActiveUnit("graphiteApi.service"); + $one->requireActiveUnit("graphitePager.service"); $one->requireActiveUnit("carbonCache.service"); + $one->requireActiveUnit("seyren.service"); $one->succeed("echo \"foo 1 `date +%s`\" | nc -q0 localhost 2003"); $one->waitUntilSucceeds("curl 'http://localhost:8080/metrics/find/?query=foo&format=treejson' --silent | grep foo") ''; |