-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mariadb): update tests to support mariadb>=1.1.0 (#3883)
The latest version of mariadb client library requires a newer version of the C library in order to build. This PR updates snapshot tests to account for newly supported db.rowcount for mariadb query spans. This PR depends on #3884 to be merged and update our dev image first before this can pass. This is a testing only fix, our integration continues to work fine for mariadb>=1.1.0, but our test suite was not setup for it. Co-authored-by: Kyle Verhoog <[email protected]> Co-authored-by: Munir Abdinur <[email protected]> (cherry picked from commit 22746a3) # Conflicts: # tests/contrib/mariadb/test_mariadb.py
- Loading branch information
1 parent
697c05b
commit 2c171d1
Showing
22 changed files
with
478 additions
and
102 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
30 changes: 30 additions & 0 deletions
30
...pshots/tests.contrib.mariadb.test_mariadb.test_analytics_with_rate_snapshot_post_1_1.json
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[[ | ||
{ | ||
"name": "mariadb.query", | ||
"service": "mariadb", | ||
"resource": "SELECT 1", | ||
"trace_id": 0, | ||
"span_id": 1, | ||
"parent_id": 0, | ||
"type": "sql", | ||
"meta": { | ||
"db.name": "test", | ||
"db.user": "test", | ||
"out.host": "127.0.0.1", | ||
"runtime-id": "778c778962a54eeea3ae401d2417ef86" | ||
}, | ||
"metrics": { | ||
"_dd.agent_psr": 1.0, | ||
"_dd.measured": 1, | ||
"_dd.top_level": 1, | ||
"_dd.tracer_kr": 1.0, | ||
"_dd1.sr.eausr": 0.5, | ||
"_sampling_priority_v1": 1, | ||
"db.rowcount": 1, | ||
"out.port": 3306, | ||
"sql.rows": 1, | ||
"system.pid": 9677 | ||
}, | ||
"duration": 1412500, | ||
"start": 1656521264659140100 | ||
}]] |
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
30 changes: 30 additions & 0 deletions
30
...ots/tests.contrib.mariadb.test_mariadb.test_analytics_without_rate_snapshot_post_1_1.json
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[[ | ||
{ | ||
"name": "mariadb.query", | ||
"service": "mariadb", | ||
"resource": "SELECT 1", | ||
"trace_id": 0, | ||
"span_id": 1, | ||
"parent_id": 0, | ||
"type": "sql", | ||
"meta": { | ||
"db.name": "test", | ||
"db.user": "test", | ||
"out.host": "127.0.0.1", | ||
"runtime-id": "778c778962a54eeea3ae401d2417ef86" | ||
}, | ||
"metrics": { | ||
"_dd.agent_psr": 1.0, | ||
"_dd.measured": 1, | ||
"_dd.top_level": 1, | ||
"_dd.tracer_kr": 1.0, | ||
"_dd1.sr.eausr": 1.0, | ||
"_sampling_priority_v1": 1, | ||
"db.rowcount": 1, | ||
"out.port": 3306, | ||
"sql.rows": 1, | ||
"system.pid": 9677 | ||
}, | ||
"duration": 580200, | ||
"start": 1656521264692636300 | ||
}]] |
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
25 changes: 25 additions & 0 deletions
25
tests/snapshots/tests.contrib.mariadb.test_mariadb.test_commit_snapshot_pre_1_1.json
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[[ | ||
{ | ||
"name": "mariadb.connection.commit", | ||
"service": "mariadb", | ||
"resource": "mariadb.connection.commit", | ||
"trace_id": 0, | ||
"span_id": 1, | ||
"parent_id": 0, | ||
"meta": { | ||
"db.name": "test", | ||
"db.user": "test", | ||
"out.host": "127.0.0.1", | ||
"runtime-id": "93f76aae38d74161926ccd64013f5d01" | ||
}, | ||
"metrics": { | ||
"_dd.agent_psr": 1.0, | ||
"_dd.top_level": 1, | ||
"_dd.tracer_kr": 1.0, | ||
"_sampling_priority_v1": 1, | ||
"out.port": 3306, | ||
"system.pid": 9600 | ||
}, | ||
"duration": 395000, | ||
"start": 1656521180729828000 | ||
}]] |
Oops, something went wrong.