Skip to content

Commit

Permalink
added test cases for duplicate rate/monotonic count metric
Browse files Browse the repository at this point in the history
  • Loading branch information
npezzotti committed Jun 4, 2021
1 parent 9afd01c commit ad8802a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion datadog_checks_base/tests/stubs/test_aggregator_no_duplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,29 @@ def test_assert_no_duplicate_message(aggregator):
False,
),
(
'duplicate metric',
'duplicate gauge metric',
[
dict(type='gauge', name='metric.a', value=1, tags=['aa'], hostname='1'),
dict(type='gauge', name='metric.a', value=1, tags=['aa'], hostname='1'),
],
True,
),
(
'duplicate rate metric',
[
dict(type='rate', name='metric.a', value=1, tags=['aa'], hostname='1'),
dict(type='rate', name='metric.a', value=1, tags=['aa'], hostname='1'),
],
True,
),
(
'duplicate monotonic_count metric',
[
dict(type='monotonic_count', name='metric.a', value=1, tags=['aa'], hostname='1'),
dict(type='monotonic_count', name='metric.a', value=1, tags=['aa'], hostname='1'),
],
True,
),
(
'duplicate metric with different values',
[
Expand Down

0 comments on commit ad8802a

Please sign in to comment.