From 2c877f2aec11b7f5d2f23dfc5ce7398b2ce33b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 3 Feb 2019 20:23:24 +0100 Subject: [PATCH] fix: Disable STIX test on travis. --- tests/testlive_comprehensive.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 1391d7a..64b1ca3 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -840,12 +840,13 @@ class TestComprehensive(unittest.TestCase): first.add_attribute('ip-src', '8.8.8.8') try: first = self.user_misp_connector.add_event(first) - stix = self.user_misp_connector.search(return_format='stix', eventid=first.id) - found = re.findall('8.8.8.8', stix) - self.assertTrue(found) - stix2 = self.user_misp_connector.search(return_format='stix2', eventid=first.id) - json.dumps(stix2, indent=2) - self.assertEqual(stix2['objects'][-1]['pattern'], "[network-traffic:src_ref.type = 'ipv4-addr' AND network-traffic:src_ref.value = '8.8.8.8']") + if not travis_run: + stix = self.user_misp_connector.search(return_format='stix', eventid=first.id) + found = re.findall('8.8.8.8', stix) + self.assertTrue(found) + stix2 = self.user_misp_connector.search(return_format='stix2', eventid=first.id) + json.dumps(stix2, indent=2) + self.assertEqual(stix2['objects'][-1]['pattern'], "[network-traffic:src_ref.type = 'ipv4-addr' AND network-traffic:src_ref.value = '8.8.8.8']") finally: # Delete event self.admin_misp_connector.delete_event(first.id)