From 75b15af427ccf2ef67c8a93348c5128f7f17a0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 13 Aug 2018 13:31:30 +0200 Subject: [PATCH] fix: properly validate the last-type search query --- tests/testlive_comprehensive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 9ef346f..8bfe8ed 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -224,6 +224,10 @@ class TestComprehensive(unittest.TestCase): # Test invalid query response = pub_misp_connector.search(publish_timestamp='5x') self.assertEqual(len(response), 0) + response = pub_misp_connector.search(publish_timestamp='ad') + self.assertEqual(len(response), 0) + response = pub_misp_connector.search(publish_timestamp='aaad') + self.assertEqual(len(response), 0) # Search as user # # Test - last 4 min response = pub_misp_connector.search(publish_timestamp='5s')