From 6f58dd6b1081991d70d9c9c268ddf351645d9975 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 22 Oct 2021 10:05:34 -0400 Subject: [PATCH] Add missing unit test for sourceRef length --- tests/alerters/thehive_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/alerters/thehive_test.py b/tests/alerters/thehive_test.py index bbf73de2..e954588d 100644 --- a/tests/alerters/thehive_test.py +++ b/tests/alerters/thehive_test.py @@ -97,6 +97,8 @@ def test_thehive_alerter(caplog): actual_data = json.loads(mock_post_request.call_args_list[0][1]['data']) # The date and sourceRef are autogenerated, so we can't expect them to be a particular value del actual_data['date'] + + assert len(actual_data['sourceRef']) == 36 del actual_data['sourceRef'] assert expected_data == actual_data