From 0faa75824f4dbac2b14919bb17e9d0fef79026d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 27 Apr 2020 12:21:30 +0200 Subject: [PATCH] fix: Enable autoalert on admin user --- tests/testlive_comprehensive.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 896c8b5..247db20 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -2016,6 +2016,11 @@ class TestComprehensive(unittest.TestCase): self.assertTrue(isinstance(user_settings, list)) # Test if publish_alert_filter works + # # Enable autoalert on admin + self.admin_misp_connector._current_user.autoalert = True + self.admin_misp_connector._current_user.termsaccepted = True + self.user_misp_connector.update_user(self.admin_misp_connector._current_user) + first = self.admin_misp_connector.add_event(first, pythonify=True) second = self.admin_misp_connector.add_event(second, pythonify=True) r = self.user_misp_connector.change_user_password('Password1234')