summaryrefslogtreecommitdiffstats
path: root/test/functional/lib/rspamd.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/lib/rspamd.py')
-rw-r--r--test/functional/lib/rspamd.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/functional/lib/rspamd.py b/test/functional/lib/rspamd.py
index 76af7864d..3db57a87e 100644
--- a/test/functional/lib/rspamd.py
+++ b/test/functional/lib/rspamd.py
@@ -24,29 +24,6 @@ try:
except:
import httplib
-ignore_message = [
- re.compile("^cannot load controller stats from .*/stats\\.ucl: No such file or directory$"),
- re.compile("^regexp module enabled, but no rules are defined$"),
- re.compile("^cannot find dependency on symbol FREEMAIL_FROM$"),
- re.compile("^cannot find dependency on symbol FREEMAIL_REPLYTO$"),
- re.compile("^cannot register delayed condition for DMARC_POLICY_ALLOW$"),
- re.compile("^failed to scan: Socket error detected: Connection refused$"),
-]
-
-def Check_Errors_JSON(j):
- d = demjson.decode(j, strict=True)
- assert type(d) is list, j
- e = []
- for c in d:
- filtered = False
- for r in ignore_message:
- if r.match(c['message']):
- filtered = True
- break
- if not filtered:
- e.append(c)
- assert len(e) == 0, str(e)
-
def Check_JSON(j):
d = demjson.decode(j, strict=True)
assert len(d) > 0