File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # (C) Datadog, Inc. 2026 -present
1+ # (C) Datadog, Inc. 2025 -present
22# All rights reserved
33# Licensed under a 3-clause BSD style license (see LICENSE)
44
55from datadog_checks .envoy import Envoy
66
77from .common import DEFAULT_INSTANCE , get_fixture_path
88
9+ OPENMETRICS_FIXTURE = get_fixture_path ('./openmetrics/openmetrics.txt' )
910
10- def test_openmetrics_check (benchmark , mock_http_response ):
11- mock_http_response (file_path = get_fixture_path ('./openmetrics/openmetrics.txt' ))
1211
13- c = Envoy ('envoy' , {}, [DEFAULT_INSTANCE ])
12+ def test_openmetrics_check (benchmark , dd_run_check , mock_http_response ):
13+ mock_http_response (file_path = OPENMETRICS_FIXTURE )
1414
15- # Run once to get any first-run overhead out of the way.
16- c . check ( DEFAULT_INSTANCE )
15+ c = Envoy ( 'envoy' , {}, [ DEFAULT_INSTANCE ])
16+ dd_run_check ( c )
1717
1818 benchmark (c .check , DEFAULT_INSTANCE )
You can’t perform that action at this time.
0 commit comments