From fa05473b545451ac45555c3ac2073a38a5995604 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 25 Nov 2024 16:21:37 -0800 Subject: [PATCH] Fix unit test wrt new rules --- .../shredding/DocumentShredderDocLimitsTest.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/stargate/sgv2/jsonapi/service/shredding/DocumentShredderDocLimitsTest.java b/src/test/java/io/stargate/sgv2/jsonapi/service/shredding/DocumentShredderDocLimitsTest.java index f85c7d389..a196b8cca 100644 --- a/src/test/java/io/stargate/sgv2/jsonapi/service/shredding/DocumentShredderDocLimitsTest.java +++ b/src/test/java/io/stargate/sgv2/jsonapi/service/shredding/DocumentShredderDocLimitsTest.java @@ -405,7 +405,17 @@ public void handleBigEngineeringNotation() throws Exception { @Nested class ValidationDocNameViolations { @ParameterizedTest - @ValueSource(strings = {"name", "a123", "snake_case", "camelCase", "ab-cd-ef"}) + @ValueSource( + strings = { + "name", + "a123", + "snake_case", + "camelCase", + "ab-cd-ef", + "snake_case", + "colons:are:good:too", + "and/or" + }) public void allowRegularPropertyNames(String validName) { final ObjectNode doc = objectMapper.createObjectNode(); doc.put("_id", 123); @@ -430,7 +440,7 @@ public void catchEmptyPropertyName() { } @ParameterizedTest - @ValueSource(strings = {"$function", "dot.ted", "index[1]", "a/b", "a\\b"}) + @ValueSource(strings = {"$function", "dot.ted", "index[1]", "a\\b", "r&b"}) public void catchInvalidPropertyName(String invalidName) { final ObjectNode doc = objectMapper.createObjectNode(); doc.put("_id", 123);