Skip to content

Commit

Permalink
[FIX] Use API v2 endpoints instead of alerts/filter. Should not forge…
Browse files Browse the repository at this point in the history
…t to put back the alerts/filter endpoint
  • Loading branch information
c8y3 committed Jan 10, 2025
1 parent 0badd79 commit 4962bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_rest_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def test_create_alert_should_not_fail(self):
self.assertEqual(200, response.status_code)

def test_alerts_filter_with_alerts_filter_should_not_fail(self):
response = self._subject.get('/alerts/filter', query_parameters={'alert_assets': 'some assert name'})
response = self._subject.get('/api/v2/alerts', query_parameters={'alert_assets': 'some assert name'})
self.assertEqual(200, response.status_code)

def test_alerts_filter_with_iocs_filter_should_not_fail(self):
response = self._subject.get('/alerts/filter', query_parameters={'alert_iocs': 'some ioc value'})
response = self._subject.get('api/v2/alerts', query_parameters={'alert_iocs': 'some ioc value'})
self.assertEqual(200, response.status_code)

def test_merge_alert_into_a_case_should_not_fail(self):
Expand Down

0 comments on commit 4962bd2

Please sign in to comment.