Commit 30f4797
authored
Remove the guards around M.D.SqlClient V4 in tests (#7541)
## Summary of changes
there was a piece of code skipping some tests in v4 and above of the
library. Those were added in #2077 referencing
dotnet/SqlClient#1390
However, this check has stayed in place ever since, stopping tests from
being run on newer versions, even though the issue says that the issue
was fixed in 4.0.1 if I read correctly. Since we don't run tests on
v4.0.0 (the lowest 4 we run on is 4.0.6), we shouldn't need to check for
this anymore.
This might have been kept around because of an other issue where the
sample app encountered an authentication issue trying to connect to the
server in docker because the security certificate was not proper. Adding
`TrustServerCertificate` on the connection string fixes this, and should
allow us to run all tests always.
## Reason for change
better test coverage for SqlClient
## Implementation details
## Test coverage
ran a pipeline testing all package versions for this test here:
https://dev.azure.com/datadoghq/dd-trace-dotnet/_build/results?buildId=187543
## Other details
<!-- Fixes #{issue} -->
<!-- 1 parent 20c5d82 commit 30f4797
File tree
4 files changed
+20
-43
lines changed- tracer/test
- Datadog.Trace.ClrProfiler.IntegrationTests/AdoNet
- test-applications/integrations/Samples.Microsoft.Data.SqlClient
4 files changed
+20
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
Lines changed: 1 addition & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 50 | + | |
68 | 51 | | |
69 | 52 | | |
70 | 53 | | |
| |||
Lines changed: 17 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
29 | | - | |
30 | | - | |
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
| |||
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
40 | | - | |
| 32 | + | |
41 | 33 | | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
47 | 39 | | |
48 | | - | |
| 40 | + | |
49 | 41 | | |
50 | 42 | | |
51 | 43 | | |
52 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
53 | 47 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
63 | 55 | | |
64 | 56 | | |
65 | 57 | | |
| 58 | + | |
| 59 | + | |
66 | 60 | | |
67 | | - | |
68 | 61 | | |
69 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments