Skip to content

Commit

Permalink
PP-13084: Increase number of custom metadata fields to 15 (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldquek authored Aug 30, 2024
1 parent 1a343d3 commit f4fe105
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class ExternalMetadata {

public static final int MAX_KEY_VALUE_PAIRS = 10;
public static final int MAX_KEY_VALUE_PAIRS = 15;
public static final int MIN_KEY_LENGTH = 1;
public static final int MAX_KEY_LENGTH = 30;
public static final int MAX_VALUE_LENGTH = 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public void shouldPassValidation() {
}

@Test
public void shouldFailValidationWithMoreThan10Keys() {
Map<String, Object> metadata = IntStream.rangeClosed(1, 11).boxed()
public void shouldFailValidationWithMoreThan15Keys() {
Map<String, Object> metadata = IntStream.rangeClosed(1, 16).boxed()
.collect(Collectors.toUnmodifiableMap(i -> "key" + i, i-> "value" + i));
ExternalMetadata invalidExternalMetadata = new ExternalMetadata(metadata);

Expand Down

0 comments on commit f4fe105

Please sign in to comment.