Skip to content

Commit

Permalink
supported only with odbc
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnoveljic committed Sep 25, 2024
1 parent e880c88 commit 54e9034
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sqlserver/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ files:
- name: deadlocks_collection
hidden: True
description: |
Configure the collection of deadlock data.
Configure the collection of deadlock data. The feature is supported for odbc connector only.
options:
- name: enabled
description: |
Expand Down
3 changes: 3 additions & 0 deletions sqlserver/tests/test_deadlocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from datadog_checks.sqlserver.queries import DEADLOCK_TIMESTAMP_ALIAS, DEADLOCK_XML_ALIAS

from .common import CHECK_NAME
from .utils import not_windows_ado

try:
import pyodbc
Expand Down Expand Up @@ -111,6 +112,8 @@ def _create_deadlock(bob_conn, fred_conn):
return "deadlock" in exception_1_text or "deadlock" in exception_2_text


# TODO: remove @not_windows_ado when the functionality is supported for MSOLEDBSQL
@not_windows_ado
@pytest.mark.integration
@pytest.mark.usefixtures('dd_environment')
def test_deadlocks(aggregator, dd_run_check, init_config, dbm_instance):
Expand Down

0 comments on commit 54e9034

Please sign in to comment.