# stdlib
from nose.plugins.attrib import attr

# project
from checks import AgentCheck
from utils.platform import Platform
from tests.checks.common import AgentCheckTest


@attr(requires='mysql')
class TestMySql(AgentCheckTest):
    CHECK_NAME = 'mysql'

    METRIC_TAGS = ['tag1', 'tag2']
    SC_TAGS = ['server:localhost', 'port:unix_socket']

    MYSQL_MINIMAL_CONFIG = [{
        'server': 'localhost',
        'user': 'dog',
        'pass': 'dog'
    }]

    MYSQL_COMPLEX_CONFIG = [{
        'server': 'localhost',
        'user': 'dog',
        'pass': 'dog',
        'options': {
            'replication': True,
            'extra_status_metrics': True,
            'extra_innodb_metrics': True,
            'extra_performance_metrics': True,
            'schema_size_metrics': True,