Skip to content

Commit

Permalink
fix schema test by syncing with master
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpi committed Nov 18, 2023
1 parent 808b5a1 commit 067db23
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tracer/test/Datadog.Trace.Security.Unit.Tests/WafTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,15 @@ public void SchemaBodyExtraction()
{
Execute(
AddressesConstants.RequestBody,
new Dictionary<string, object> { { "property1", "/.adsensepostnottherenonobook" }, { "property2", 2 }, { "property3", 3.10 }, { "property4", true } },
new Dictionary<string, object>
{
{ "property1", "/.adsensepostnottherenonobook" },
{ "property2", 2 },
{ "property3", 3.10 },
{ "property4", 5.10M },
{ "property5", true },
{ "property6", 10u }
},
"security_scanner",
"crs-913-120",
schemaExtraction: """{"_dd.appsec.s.req.body":[{"property1":[8],"property2":[4],"property3":[16],"property4":[16],"property5":[2],"property6":[4] }]}""");
Expand Down

0 comments on commit 067db23

Please sign in to comment.