11
11
import com .datadog .debugger .probe .LogProbe ;
12
12
import com .datadog .debugger .sink .Snapshot ;
13
13
import com .squareup .moshi .JsonAdapter ;
14
+ import datadog .environment .ConfigHelper ;
14
15
import datadog .trace .agent .test .utils .PortUtils ;
16
+ import datadog .trace .api .ConfigInversionStrictStyle ;
15
17
import datadog .trace .bootstrap .debugger .MethodLocation ;
16
18
import datadog .trace .bootstrap .debugger .ProbeId ;
17
19
import datadog .trace .util .TagsHelper ;
25
27
import okhttp3 .OkHttpClient ;
26
28
import okhttp3 .Request ;
27
29
import okhttp3 .mockwebserver .RecordedRequest ;
30
+ import org .junit .jupiter .api .AfterAll ;
31
+ import org .junit .jupiter .api .BeforeAll ;
28
32
import org .junit .jupiter .api .DisplayName ;
29
33
import org .junit .jupiter .api .Test ;
30
34
import org .junit .jupiter .api .condition .DisabledIf ;
@@ -36,6 +40,7 @@ public class TracerDebuggerIntegrationTest extends BaseIntegrationTest {
36
40
private static final String DEBUGGER_TEST_APP_CLASS =
37
41
"datadog.smoketest.debugger.SpringBootTestApplication" ;
38
42
private static final ProbeId PROBE_ID = new ProbeId ("123356536" , 1 );
43
+ private static ConfigInversionStrictStyle currStyle ;
39
44
40
45
@ Override
41
46
protected String getAppClass () {
@@ -47,6 +52,17 @@ protected String getAppId() {
47
52
return TagsHelper .sanitize ("SpringBootTestApplication" );
48
53
}
49
54
55
+ @ BeforeAll
56
+ static void setupAll () {
57
+ currStyle = ConfigHelper .configInversionStrictFlag ();
58
+ ConfigHelper .setConfigInversionStrict (ConfigInversionStrictStyle .TEST );
59
+ }
60
+
61
+ @ AfterAll
62
+ static void tearDownAll () {
63
+ ConfigHelper .setConfigInversionStrict (currStyle );
64
+ }
65
+
50
66
@ ParameterizedTest (name = "Process tags enabled ''{0}''" )
51
67
@ ValueSource (booleans = {true , false })
52
68
@ DisplayName ("testTracer" )
0 commit comments