Skip to content

Commit

Permalink
Fix RestJsonMalformedPatternReDOSString test
Browse files Browse the repository at this point in the history
The test was attempted to be fixed as part of #1506. None of the other
tests echo back the value that failed the regex.
  • Loading branch information
david-perez authored and kstich committed Jul 1, 2024
1 parent 497d2ca commit efcb39c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ apply MalformedPattern @httpMalformedRequestTests([
mediaType: "application/json",
assertion: {
contents: """
{ "message" : "1 validation error detected. Value 000000000000000000000000000000000000000000000000000000000000000000000000000000000000! at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$",
"fieldList" : [{"message": "Value 000000000000000000000000000000000000000000000000000000000000000000000000000000000000! at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$", "path": "/evilString"}]}"""
{ "message" : "1 validation error detected. Value at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$",
"fieldList" : [{"message": "Value at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$", "path": "/evilString"}]}"""
}
}
}
Expand Down

0 comments on commit efcb39c

Please sign in to comment.