Skip to content

Commit

Permalink
fix: properly validate the last-type search query
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Aug 13, 2018
1 parent 9669d89 commit 75b15af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testlive_comprehensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ def test_search_publish_timestamp(self):
# 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')
Expand Down

0 comments on commit 75b15af

Please sign in to comment.