Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change assert all metrics covered - ci run all (#4253)
* Fix assert_all_metrics_covered * Fix cockroachdb tests * Fix etcd tests * Fix mysql tests * Add exec permissions to wait-for-it * Fix rabbitMQ tests
- Loading branch information
Showing
7 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
# (C) Datadog, Inc. 2018 | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
import pytest | ||
from six import itervalues | ||
|
||
from datadog_checks.cockroachdb import CockroachdbCheck | ||
from datadog_checks.cockroachdb.metrics import METRIC_MAP | ||
|
||
|
||
@pytest.mark.integration | ||
def test_check(aggregator, instance): | ||
check = CockroachdbCheck('cockroachdb', {}, {}, [instance]) | ||
check.check(instance) | ||
|
||
for metric in itervalues(METRIC_MAP): | ||
try: | ||
aggregator.assert_metric(metric) | ||
except AssertionError: | ||
pass | ||
aggregator.assert_metric('cockroachdb.{}'.format(metric), at_least=0) | ||
|
||
assert aggregator.metrics_asserted_pct > 80 | ||
assert aggregator.metrics_asserted_pct > 80, 'Missing metrics {}'.format(aggregator.not_asserted()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters