about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2015-09-06 15:19:52 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2015-09-06 15:20:56 +0200
commit93132d171784d0056b90919ffed7c4f2a51e5da5 (patch)
treeabc90889160d53390dc1df8c7e27e46e75c955fc /nixos/tests
parent77356690fb792d6b38d875d579754c63125079ac (diff)
downloadnixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.tar
nixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.tar.gz
nixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.tar.bz2
nixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.tar.lz
nixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.tar.xz
nixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.tar.zst
nixlib-93132d171784d0056b90919ffed7c4f2a51e5da5.zip
logstash service: fix tests
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/logstash.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/logstash.nix b/nixos/tests/logstash.nix
index 317ea063e17c..edece352cafe 100644
--- a/nixos/tests/logstash.nix
+++ b/nixos/tests/logstash.nix
@@ -19,8 +19,8 @@ import ./make-test.nix ({ pkgs, ...} : {
                 exec { command => "echo dragons" interval => 1 type => "test" }
               '';
               filterConfig = ''
-                if [type] == "test" {
-                  grep { match => ["message", "flowers"] drop => true }
+                if [message] =~ /dragons/ {
+                  drop {}
                 }
               '';
               outputConfig = ''