File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
dd-java-agent/instrumentation/karate
src/main/java/datadog/trace/instrumentation/karate Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ muzzle {
1818addTestSuiteForDir(' latestDepTest' , ' test' )
1919
2020dependencies {
21+ implementation project(' :components:json:json-io' )
22+
2123 compileOnly group : ' com.intuit.karate' , name : ' karate-core' , version : ' 1.0.0'
2224
2325 testImplementation testFixtures(project(' :dd-java-agent:agent-ci-visibility' ))
Original file line number Diff line number Diff line change 66import com .intuit .karate .core .Scenario ;
77import com .intuit .karate .core .ScenarioRuntime ;
88import com .intuit .karate .core .Tag ;
9+ import datadog .json .buffer .JsonMapper ;
910import datadog .trace .api .civisibility .config .TestIdentifier ;
1011import datadog .trace .api .civisibility .events .TestDescriptor ;
1112import datadog .trace .api .civisibility .events .TestSuiteDescriptor ;
@@ -76,7 +77,7 @@ public static List<String> getCategories(List<Tag> tags) {
7677 }
7778
7879 public static String getParameters (Scenario scenario ) {
79- return scenario .getExampleData () != null ? Strings .toJson (scenario .getExampleData ()) : null ;
80+ return scenario .getExampleData () != null ? JsonMapper .toJson (scenario .getExampleData ()) : null ;
8081 }
8182
8283 public static TestIdentifier toTestIdentifier (Scenario scenario ) {
You can’t perform that action at this time.
0 commit comments