Skip to content

Commit ee3ad4b

Browse files
link04veerbia
authored andcommitted
Removing MetaStruct Check from TestDirectoryListingLeak (#6404)
## Summary of changes Same as #6395 this test is part of the same family and I just noticed it also sometimes flakes without the expected snapshot.
1 parent 2ec56f8 commit ee3ad4b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ public async Task TestDirectoryListingLeak(string featureEnvVar)
742742
newFixture.SetOutput(Output);
743743

744744
var datetimeOffset = DateTimeOffset.UtcNow; // Catch vulnerability at the startup of the app
745-
await TryStartApp(newFixture);
745+
await TryStartApp(newFixture, new MockTracerAgent.AgentConfiguration { SpanMetaStructs = false });
746746

747747
var agent = newFixture.Agent;
748748
var spans = agent.WaitForSpans(1, minDateTime: datetimeOffset);

tracer/test/snapshots/Iast.DirectoryListingLeak.AspNetCore5.IastEnabled.verified.txt

-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
_dd.top_level: 1.0,
3434
_dd.tracer_kr: 1.0,
3535
_sampling_priority_v1: 2.0
36-
},
37-
MetaStruct: {
38-
iast:
3936
}
4037
}
4138
]

0 commit comments

Comments
 (0)