From 28c3cf581fe20cb5a431a48f6b689d47cf7ad212 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 23 Sep 2022 17:20:53 +0530 Subject: [PATCH] UT: Add test cases for AgentSignal resource's POST --- .../unit_tests/monkey_island/cc/resources/test_agent_signals.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_signals.py b/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_signals.py index 673ae6de7..b4a6a4d7f 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_signals.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/test_agent_signals.py @@ -64,6 +64,8 @@ def test_agent_signals_terminate_all_post(flask_client): {}, {"wrong_key": TIMESTAMP_1}, TIMESTAMP_1, + {"terminate_time": 0}, + {"terminate_time": -1}, ], ) def test_agent_signals_terminate_all_post__invalid_timestamp(flask_client, bad_data):