From cd59115e97e22c6876be623ddf8c8822573c8311 Mon Sep 17 00:00:00 2001 From: davdarras Date: Fri, 14 Jun 2024 14:49:53 +0200 Subject: [PATCH] test: temporarily enable additional properties for data --- .../web/validation/json/JsonValidatorComponentTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/queen-application/src/test/java/fr/insee/queen/application/web/validation/json/JsonValidatorComponentTest.java b/queen-application/src/test/java/fr/insee/queen/application/web/validation/json/JsonValidatorComponentTest.java index 88fa8aff..b7a6b1e4 100644 --- a/queen-application/src/test/java/fr/insee/queen/application/web/validation/json/JsonValidatorComponentTest.java +++ b/queen-application/src/test/java/fr/insee/queen/application/web/validation/json/JsonValidatorComponentTest.java @@ -74,8 +74,10 @@ void testData05() throws IOException { String dataJson = JsonTestHelper.getResourceFileAsString("json-schema-validation/data/invalid-property-data.json"); JsonNode dataNode = mapper.readValue(dataJson, JsonNode.class); Set errors = validatorComponent.validate(SchemaType.DATA, dataNode); - assertThat(errors).isNotEmpty(); + assertThat(errors).isEmpty(); + /*assertThat(errors).isNotEmpty(); errors.forEach(error -> assertForbiddenProperty(error, "$", "PLOP")); + */ } @Test