chg: Temp disable tests for request_community_access

pull/471/head
Raphaël Vinot 2019-08-30 12:15:39 +02:00
parent 681c06cdd2
commit 5037810c4c
1 changed files with 6 additions and 6 deletions

View File

@ -1932,14 +1932,14 @@ class TestComprehensive(unittest.TestCase):
self.assertEqual(communities[0].name, 'CIRCL Private Sector Information Sharing Community - aka MISPPRIV')
community = self.admin_misp_connector.get_community(communities[1], pythonify=True)
self.assertEqual(community.name, 'CIRCL n/g CSIRT information sharing community - aka MISP')
# FIXME: Add more tests later.
# FIXME: Fails on travis for now due to GPG misconfigured
# r = self.admin_misp_connector.request_community_access(community, mock=False)
# self.assertTrue(r['message'], 'Request sent.')
r = self.admin_misp_connector.request_community_access(community, mock=True)
mail = email.message_from_string(r['headers'] + '\n' + r['message'])
for k, v in mail.items():
if k == 'To':
self.assertEqual(v, 'info@circl.lu')
# r = self.admin_misp_connector.request_community_access(community, mock=True)
# mail = email.message_from_string(r['headers'] + '\n' + r['message'])
# for k, v in mail.items():
# if k == 'To':
# self.assertEqual(v, 'info@circl.lu')
def test_upload_stix(self):
# FIXME https://github.com/MISP/MISP/issues/4892