summary refs log tree commit diff
path: root/nixos/tests/telegraf.nix
diff options
context:
space:
mode:
authorJan Hrnko <jan.hrnko@satoshilabs.com>2019-11-06 12:40:43 +0100
committerJan Hrnko <jan.hrnko@satoshilabs.com>2019-11-06 12:40:43 +0100
commitc0c04737ed6279fb4e1a4640b5120c1ba32cb2c8 (patch)
treee84742a4b96640fa32fc1f94685b2500c3111572 /nixos/tests/telegraf.nix
parent8060e760374d92a7ddc633bf2523a0cbec033178 (diff)
downloadnixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar
nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.gz
nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.bz2
nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.lz
nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.xz
nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.zst
nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.zip
nixos/telegraf: port test to python
Diffstat (limited to 'nixos/tests/telegraf.nix')
-rw-r--r--nixos/tests/telegraf.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/telegraf.nix b/nixos/tests/telegraf.nix
index 6776f8d8c37..73f741b1135 100644
--- a/nixos/tests/telegraf.nix
+++ b/nixos/tests/telegraf.nix
@@ -1,4 +1,4 @@
-import ./make-test.nix ({ pkgs, ...} : {
+import ./make-test-python.nix ({ pkgs, ...} : {
   name = "telegraf";
   meta = with pkgs.stdenv.lib.maintainers; {
     maintainers = [ mic92 ];
@@ -22,9 +22,9 @@ import ./make-test.nix ({ pkgs, ...} : {
   };
 
   testScript = ''
-    startAll;
+    start_all()
 
-    $machine->waitForUnit("telegraf.service");
-    $machine->waitUntilSucceeds("grep -q example /tmp/metrics.out");
+    machine.wait_for_unit("telegraf.service")
+    machine.wait_until_succeeds("grep -q example /tmp/metrics.out")
   '';
 })