Skip to content

Commit f0954cc

Browse files
committed
Skip table size metrics for windows
1 parent 01ae90e commit f0954cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlserver/tests/test_integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from datadog_checks.sqlserver.connection import SQLConnectionError
1414
from datadog_checks.sqlserver.const import (
1515
DATABASE_INDEX_METRICS,
16+
TABLE_SIZE_METRICS,
1617
ENGINE_EDITION_SQL_DATABASE,
1718
ENGINE_EDITION_STANDARD,
1819
INSTANCE_METRICS_DATABASE,
@@ -452,7 +453,7 @@ def test_check_windows_defaults(aggregator, dd_run_check, init_config, instance_
452453
for mname in EXPECTED_DEFAULT_METRICS + CUSTOM_METRICS:
453454

454455
# These require extra setup to test
455-
if mname not in DATABASE_INDEX_METRICS:
456+
if mname not in DATABASE_INDEX_METRICS and mname not in TABLE_SIZE_METRICS:
456457
aggregator.assert_metric(mname)
457458

458459
aggregator.assert_service_check('sqlserver.can_connect', status=SQLServer.OK)

0 commit comments

Comments
 (0)