#NEWLINE# def test_check( self ) : #NEWLINE# #INDENT# config = { #NEWLINE# #INDENT# 'instances' : self . MYSQL_CONFIG , #NEWLINE# #UNINDENT# } #NEWLINE# self . run_check_twice ( config ) #NEWLINE# self . assertServiceCheck ( 'mysql.can_connect' , status = AgentCheck . OK , tags = self . SC_TAGS , count = 1 ) #NEWLINE# for mname in ( ( ( ( ( self . INNODB_METRICS + self . SYSTEM_METRICS ) + self . REPLICATION_METRICS ) + self . KEY_CACHE ) + self . COMMON_GAUGES ) + self . COMMON_RATES ) : #NEWLINE# #INDENT# self . assertMetric ( mname , tags = self . METRIC_TAGS , count = 1 ) #NEWLINE# #UNINDENT# self . assertServiceMetadata ( [ 'version' ] , count = 1 ) #NEWLINE# self . assertMetric ( 'alice.age' , value = 25 ) #NEWLINE# self . assertMetric ( 'bob.age' , value = 20 ) #NEWLINE# self . coverage_report ( )