From ee7835fec8d80c6f15eb3381a5df07915840b4a8 Mon Sep 17 00:00:00 2001 From: Andrea Peruffo Date: Mon, 9 Oct 2023 15:11:15 +0100 Subject: [PATCH] fix --- .../java/io/fabric8/crd/generator/v1/JsonSchemaTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java b/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java index dae2be28a30..a8bb31f1dad 100644 --- a/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java +++ b/crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java @@ -156,10 +156,10 @@ void shouldAugmentPropertiesSchemaFromAnnotations() throws JsonProcessingExcepti final JSONSchemaProps defaultValue2 = spec.get("defaultValue2"); assertEquals("my-value2", YAML_MAPPER.writeValueAsString(defaultValue2.getDefault()).trim()); - assertNull(defaultValue.getNullable()); - assertNull(defaultValue.getMinimum()); - assertNull(defaultValue.getMaximum()); - assertNull(defaultValue.getPattern()); + assertNull(defaultValue2.getNullable()); + assertNull(defaultValue2.getMinimum()); + assertNull(defaultValue2.getMaximum()); + assertNull(defaultValue2.getPattern()); // check required list, should register properties with their modified name if needed final List required = specSchema.getRequired();