mirror of https://github.com/MISP/PyMISP
				
				
				
			chg: [testing] testing
							parent
							
								
									bc96756ef7
								
							
						
					
					
						commit
						e612a97a02
					
				|  | @ -1174,6 +1174,7 @@ class TestComprehensive(unittest.TestCase): | |||
|         second.set_date('2018-09-01') | ||||
|         second.add_attribute('ip-src', '8.8.8.8') | ||||
|         try: | ||||
|             self.admin_misp_connector.set_server_setting('MISP.background_jobs', False, force=True) | ||||
|             first = self.user_misp_connector.add_event(first) | ||||
|             print(first.to_json()) | ||||
|             second = self.user_misp_connector.add_event(second) | ||||
|  | @ -1187,6 +1188,7 @@ class TestComprehensive(unittest.TestCase): | |||
|             first = self.user_misp_connector.update_event(first) | ||||
|             print(first.to_json()) | ||||
|             print(self.admin_misp_connector.publish(first, alert=False)) | ||||
|             self.admin_misp_connector.set_server_setting('MISP.background_jobs', True, force=True) | ||||
|             time.sleep(5) | ||||
|             csv = self.user_misp_connector.search(return_format='csv', publish_timestamp=first.timestamp.timestamp()) | ||||
|             self.assertEqual(len(csv), 1) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 iglocska
						iglocska