Skip to content

Commit 0d49c12

Browse files
authored
update MAX_SIZE_EXCEEDED value (#6779)
1 parent 39767bb commit 0d49c12

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dd-java-agent/agent-iast/src/main/java/com/datadog/iast/model/json/TruncatedVulnerabilitiesAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class TruncatedVulnerabilitiesAdapter extends FormattingAdapter<TruncatedVulnerabilities> {
1616

17-
private static final String MAX_SIZE_EXCEEDED = "MAX SIZE EXCEEDED";
17+
private static final String MAX_SIZE_EXCEEDED = "MAX_SIZE_EXCEEDED";
1818

1919
private final JsonAdapter<Vulnerability> vulnerabilityAdapter;
2020

dd-java-agent/agent-iast/src/test/groovy/com/datadog/iast/model/json/VulnerabilityEncodingTest.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
415415
{
416416
"type": "WEAK_HASH",
417417
"evidence": {
418-
"value": "MAX SIZE EXCEEDED"
418+
"value": "MAX_SIZE_EXCEEDED"
419419
},
420420
"hash":1042880134,
421421
"location": {
@@ -454,7 +454,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
454454
"vulnerabilities": [
455455
{
456456
"evidence": {
457-
"value": "MAX SIZE EXCEEDED"
457+
"value": "MAX_SIZE_EXCEEDED"
458458
},
459459
"hash": 1042880134,
460460
"location": {
@@ -467,7 +467,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
467467
},
468468
{
469469
"evidence": {
470-
"value": "MAX SIZE EXCEEDED"
470+
"value": "MAX_SIZE_EXCEEDED"
471471
},
472472
"hash": 1042880134,
473473
"location": {
@@ -543,7 +543,7 @@ class VulnerabilityEncodingTest extends DDSpecification {
543543
}
544544

545545
private static int countGenericEvidenceOccurrences(final String input){
546-
Pattern pattern = Pattern.compile("\"evidence\":\\{\"value\":\"MAX SIZE EXCEEDED\"}")
546+
Pattern pattern = Pattern.compile("\"evidence\":\\{\"value\":\"MAX_SIZE_EXCEEDED\"}")
547547
Matcher matcher = pattern.matcher(input)
548548
int count = 0
549549
while (matcher.find()){

0 commit comments

Comments
 (0)