Skip to content

Commit c80f33a

Browse files
authored
Remove unnecessary test
1 parent acfa641 commit c80f33a

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

tracer/test/Datadog.Trace.Security.Unit.Tests/RASP/RaspModuleDownstreamTests.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -207,24 +207,6 @@ public async Task AddBody_ChunkedEncoding_SkipsBody(sizeInBytes int, long bodySi
207207

208208
wafArgs.Should().NotContainKey(AddressesConstants.DownstreamResponseBody);
209209
}
210-
211-
/// <summary>
212-
/// Verifies that when Content-Length is absent, the body is NOT parsed.
213-
/// </summary>
214-
[Fact]
215-
public async Task AddBody_ChunkedJson_DoesNotParsePartialJson()
216-
{
217-
// Build a JSON payload where the first bytes are syntactically incomplete
218-
// (simulate a large array whose closing bracket is beyond the limit).
219-
const long bodySizeLimit = 1_000L;
220-
var chunkedContent = HttpMocks.CreateLargeChunkedContent(sizeInBytes: 900, "application/json", incomplete: true);
221-
var wafArgs = new Dictionary<string, object>();
222-
223-
await RaspModule.AddBody(chunkedContent, wafArgs, AddressesConstants.DownstreamResponseBody, bodySizeLimit);
224-
225-
// The WAF must never receive a truncated/partial JSON body.
226-
wafArgs.Should().NotContainKey(AddressesConstants.DownstreamResponseBody);
227-
}
228210
}
229211

230212
#endif

0 commit comments

Comments
 (0)