about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2017-10-18 12:58:55 +0100
committerGitHub <noreply@github.com>2017-10-18 12:58:55 +0100
commit757a759005181f93ea9dca246e6f026402bbb8de (patch)
tree95a78577e539dfb2859312ef5b3d4bf576a906bb /nixos/tests
parent7d5c5eb203bbebdfb0165522b46f2af41285337b (diff)
parent5b8ff5ed4914642027422dd1956f2068cfbe95fd (diff)
downloadnixlib-757a759005181f93ea9dca246e6f026402bbb8de.tar
nixlib-757a759005181f93ea9dca246e6f026402bbb8de.tar.gz
nixlib-757a759005181f93ea9dca246e6f026402bbb8de.tar.bz2
nixlib-757a759005181f93ea9dca246e6f026402bbb8de.tar.lz
nixlib-757a759005181f93ea9dca246e6f026402bbb8de.tar.xz
nixlib-757a759005181f93ea9dca246e6f026402bbb8de.tar.zst
nixlib-757a759005181f93ea9dca246e6f026402bbb8de.zip
Merge pull request #30166 from LumiGuide/graphite-1.0.2
Fix graphite crash by upgrading from 0.9.15 -> 1.0.2
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/graphite.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/tests/graphite.nix b/nixos/tests/graphite.nix
new file mode 100644
index 000000000000..4fd7de192d55
--- /dev/null
+++ b/nixos/tests/graphite.nix
@@ -0,0 +1,26 @@
+import ./make-test.nix ({ pkgs, ...} :
+{
+  name = "graphite";
+  nodes = {
+    one =
+      { config, pkgs, ... }: {
+        services.graphite = {
+          web = {
+            enable = true;
+          };
+          carbon = {
+            enableCache = true;
+          };
+        };
+      };
+    };
+
+  testScript = ''
+    startAll;
+    $one->waitForUnit("default.target");
+    $one->requireActiveUnit("graphiteWeb.service");
+    $one->requireActiveUnit("carbonCache.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")
+  '';
+})