]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
framework: warns on different type between yaml and json
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 20 Mar 2020 08:38:22 +0000 (09:38 +0100)
committerJason Ish <jason.ish@oisf.net>
Wed, 1 Apr 2020 15:01:33 +0000 (09:01 -0600)
run.py

diff --git a/run.py b/run.py
index 2c3197f841851bb98cb6bf5ee25190e074917bb4..32f651e645eede8440843884d9adba4339d78b66 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -357,6 +357,9 @@ class FilterCheck:
             else:
                 val = find_value(key, event)
                 if val != expected:
+                    if str(val) == str(expected):
+                        print("Different types but same string", type(val), val, type(expected), expected)
+                        return False
                     return False
         return True