Skip to content

Commit

Permalink
testing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ablakley-r7 committed Jan 6, 2025
1 parent 2b513b3 commit c430c81
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/palo_alto_cortex_xdr/unit_test/test_monitor_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"last_alert_hash": ["f4ef7617f46fef7b78410498f563e01df2a5f030"],
}

STUB_STATE_NO_PAGES = {}
STUB_STATE_NO_PAGES = {
"last_alert_time": 1706540499609,
"last_alert_hash": ["a502a9c50798186882ad8dc91ac2b38eb185c404"],
}

STUB_STATE_MORE_PAGES = {
"current_count": 1,
Expand Down Expand Up @@ -82,7 +85,7 @@ def setUp(self) -> None:
TaskUtil.load_expected("monitor_alerts"),
False,
"monitor_alerts",
STUB_STATE_MORE_PAGES,
STUB_STATE_NO_PAGES,
200,
],
[
Expand All @@ -91,7 +94,7 @@ def setUp(self) -> None:
TaskUtil.load_expected("monitor_alert_two"),
False,
"monitor_alerts_two",
STUB_STATE_EXPECTED_SECOND_PAGE,
STUB_STATE_NO_PAGES,
200,
],
[
Expand Down Expand Up @@ -120,9 +123,6 @@ def test_monitor_alerts_pagination(
mock_req.return_value = mock_conditions(200, file_name=response_file)

output, state, has_more_pages, status_code, _ = self.task.run(state=state)
print(test_name)
print(state)
print(expected_state)

self.assertEqual(expected_output, output)
self.assertEqual(expected_has_more_pages, has_more_pages)
Expand Down

0 comments on commit c430c81

Please sign in to comment.