def test_positive_smoke_enrich_health(module_headers): """Perform testing for enrich health endpoint to check status of CyberCrime Tracker module ID: CCTRI-844-2774693e-f297-11ea-adc1-0242ac120002 Steps: 1. Send request to enrich health endpoint Expectedresults: 1. Check that data in response body contains status Ok from CyberCrime Tracker module Importance: Critical """ response_from_all_modules = enrich_post_health( **{'headers': module_headers} ) response_from_cybercrime = get_observables(response_from_all_modules, MODULE_NAME) assert response_from_cybercrime['module'] == MODULE_NAME assert response_from_cybercrime['module_instance_id'] assert response_from_cybercrime['module_type_id'] assert response_from_cybercrime['data'] == {'status': 'ok'}
def test_positive_smoke_enrich_health(module_headers): """Perform testing for enrich health endpoint to check status of Abuse IPDB module ID: CCTRI-811-bc1b575c-495e-49f4-a5db-2867941c3303 Steps: 1. Send request to enrich health endpoint Expectedresults: 1. Check that data in response body contains status Ok from Abuse IPDB module Importance: Critical """ response_from_all_modules = enrich_post_health( **{'headers': module_headers}) response_from_abuse_ipdb = get_observables(response_from_all_modules, MODULE_NAME) assert response_from_abuse_ipdb['data'] == {'status': 'ok'}
def test_positive_smoke_enrich_health(module_headers): """Perform testing for enrich health endpoint to check status of Gigamon ThreatINSIGHT module ID: CCTRI-652-df76fdb9-0e57-45a3-b312-2d2036e14b48 Steps: 1. Send request to enrich health endpoint Expectedresults: 1. Check that data in response body contains status Ok from Gigamon ThreatINSIGHT module Importance: Critical """ response_from_all_modules = enrich_post_health( **{'headers': module_headers} ) response_from_gigamon = get_observables(response_from_all_modules, MODULE_NAME) assert response_from_gigamon['data'] == {'status': 'ok'}
def test_positive_smoke_enrich_health(module_headers): """Perform testing for enrich health endpoint to check status of Google Chronicle ID: CCTRI-769-34e92acf-45e2-4ef6-b5f4-c7e7f4e10f11 Steps: 1. Send request to enrich health endpoint Expectedresults: 1. Check that data in response body contains status Ok from Google Chronicle module Importance: Critical """ response_from_all_modules = enrich_post_health( **{'headers': module_headers}) response_from_chronicle_module = get_observables(response_from_all_modules, MODULE_NAME) assert response_from_chronicle_module['data'] == {'status': 'ok'}
def test_positive_smoke_enrich_health(module_headers): """Perform testing for enrich health endpoint to check status of AlienVault OTX module ID: CCTRI-1336-6d0d5b40-6d1d-46a5-97f8-ff5f38defd5a Steps: 1. Send request to enrich health endpoint Expectedresults: 1. Check that data in response body contains status Ok from AlienVault OTX module Importance: Critical """ response_from_all_modules = enrich_post_health( **{'headers': module_headers}) health_from_alien_vault = get_observables(response_from_all_modules, MODULE_NAME) assert health_from_alien_vault['module'] == MODULE_NAME assert health_from_alien_vault['module_instance_id'] assert health_from_alien_vault['module_type_id'] assert health_from_alien_vault['data']['status'] == 'ok'