From 3ba5d79daeecd3d9bdd817f2343bf05f30030ecd Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Wed, 7 Jun 2023 14:45:08 +0200 Subject: [PATCH] fix test for lines with uuid (crowdsec 1.5+) (#72) --- test/bouncer/test_custom_bouncer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/bouncer/test_custom_bouncer.py b/test/bouncer/test_custom_bouncer.py index 2569fe6..2787c6f 100644 --- a/test/bouncer/test_custom_bouncer.py +++ b/test/bouncer/test_custom_bouncer.py @@ -195,7 +195,8 @@ def test_add_decisions(bouncer_with_lapi): for i, line in enumerate(lines, start=1): line = json.loads(line) - del line['duration'] + line.pop('duration', None) + line.pop('uuid', None) assert line == { 'action': 'add', 'id': i,