#NEWLINE# def test_check( self ) : #NEWLINE# #INDENT# '\n        Check coverage.\n        ' #NEWLINE# self . run_check ( CONFIG ) #NEWLINE# self . service_checks = self . wait_for_async ( 'get_service_checks' , 'service_checks' , 5 ) #NEWLINE# tags = [ 'url:https://thereisnosuchlink.com' , 'instance:conn_error' ] #NEWLINE# self . assertServiceCheckCritical ( 'http.can_connect' , tags = tags ) #NEWLINE# tags = [ 'url:http://httpbin.org/404' , 'instance:http_error_status_code' ] #NEWLINE# self . assertServiceCheckCritical ( 'http.can_connect' , tags = tags ) #NEWLINE# self . assertServiceCheckOK ( 'http.can_connect' , tags = tags , count = 0 ) #NEWLINE# tags = [ 'url:http://httpbin.org/404' , 'instance:status_code_match' , 'foo:bar' ] #NEWLINE# self . assertServiceCheckOK ( 'http.can_connect' , tags = self ) #NEWLINE# tags = [ 'url:https://github.com' , 'instance:cnt_mismatch' ] #NEWLINE# self . assertServiceCheckCritical ( 'http.can_connect' , tags = tags ) #NEWLINE# self . assertServiceCheckOK ( 'http.can_connect' , tags = tags , count = 0 ) #NEWLINE# tags = [ 'url:https://github.com' , 'instance:cnt_match' ] #NEWLINE# self . assertServiceCheckOK ( 'http.can_connect' , tags = tags ) #NEWLINE# self . coverage_report ( )