Skip to content

Commit 7eff3cf

Browse files
committed
fix duplicate bytes clearing + makes iast key present in snapshots
1 parent 168c806 commit 7eff3cf

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/AspNetCore5IastTests.cs

-5
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,6 @@ public async Task TestVulnerabilityStack(string name, string url)
414414
var json = MetaStructToJson(data);
415415
span.Tags["_dd.stack"] = json;
416416
}
417-
418-
foreach (var key in span.MetaStruct.Keys.ToArray())
419-
{
420-
span.MetaStruct[key] = [];
421-
}
422417
}
423418
}
424419

tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/IastVerifyScrubberExtensions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ public static void IastMetaStructScrubbing(MockSpan target, bool forceMetaStruct
9494
var json = JsonConvert.SerializeObject(iastMetaStruct, Formatting.Indented);
9595
target.Tags[Tags.IastJson] = json;
9696

97-
target.MetaStruct.Remove("iast");
98-
9997
// Let the snapshot know that the data comes from the meta struct
10098
if (forceMetaStruct)
10199
{

0 commit comments

Comments
 (0)