# (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest

from .metrics import METRICS
from .utils import assert_service_checks_ok

pytestmark = [pytest.mark.e2e]


def test(dd_agent_check):
    aggregator = dd_agent_check(rate=True)

    assert_service_checks_ok(aggregator)

    for metric in METRICS:
        aggregator.assert_metric(metric)

    aggregator.assert_all_metrics_covered()
