From a4ede09be7d506c070acdbacae121cb27dd16726 Mon Sep 17 00:00:00 2001 From: xuelianhan007 Date: Tue, 17 Dec 2024 11:12:53 +0800 Subject: [PATCH] added template --- .../MappingMatrixCheckerActionRunnerTest.java | 23 ++++++++++++++++--- .../main/resources/mef-sonata/product.yaml | 2 +- .../template-upgrade/release.1.6.3.yaml | 15 ++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.6.3.yaml diff --git a/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java b/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java index dae1f80f..2d5ecb81 100644 --- a/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java +++ b/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java @@ -218,7 +218,23 @@ public static List> buildIllegalPathCheckList() { PathCheck pathCheck7 = new PathCheck( - "expect7", "user", ExpectTypeEnum.EXPECTED_TRUE, "${param.id}", "error", 400, "String"); + "expect7", + "$.body.relatedContactInformation[*]", + ExpectTypeEnum.EXPECTED_TRUE, + "${param.emailAddress}", + "error", + 400, + "String"); + + PathCheck pathCheck8 = + new PathCheck( + "expect7", + "$.body.relatedContactInformation[*]", + ExpectTypeEnum.EXPECTED_TRUE, + "${param.emailAddress}", + "error", + 400, + "String"); Pair pair1 = Pair.of(pathCheck1, "user1"); Pair pair2 = Pair.of(pathCheck2, "user1"); @@ -227,9 +243,10 @@ public static List> buildIllegalPathCheckList() { Pair pair4 = Pair.of(pathCheck4, "123"); Pair pair5 = Pair.of(pathCheck5, "123"); Pair pair6 = Pair.of(pathCheck6, ""); - Pair pair7 = Pair.of(pathCheck7, Map.of("id", 123)); + Pair pair7 = Pair.of(pathCheck7, Map.of("emailAddress", 123)); + Pair pair8 = Pair.of(pathCheck8, Map.of("emailAddress1", "")); - return List.of(pair1, pair2, pair3A, pair3B, pair4, pair5, pair6, pair7); + return List.of(pair1, pair2, pair3A, pair3B, pair4, pair5, pair6, pair7, pair8); } @ParameterizedTest diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml index 18599be8..57812870 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml @@ -103,7 +103,7 @@ spec: - classpath:/mef-sonata/mapping-matrix/mapping.matrix.inventory.eline.read.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.inventory.uni.list.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.inventory.eline.list.yaml - - classpath:/mef-sonata/template-upgrade/release.1.6.2.yaml + - classpath:/mef-sonata/template-upgrade/release.1.6.3.yaml templateUpgradePaths: diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.6.3.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.6.3.yaml new file mode 100644 index 00000000..0786a144 --- /dev/null +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.6.3.yaml @@ -0,0 +1,15 @@ +--- +kind: kraken.product.template-upgrade +apiVersion: v1 +metadata: + key: kraken.product.template-upgrade.1.6.3 + name: V1.6.3 + labels: + productSpec: grace + productVersion: V1.6.3 + publishDate: 2024-12-17 + description: | + Add data type validation for the following use cases: + - UNI order creating + - Eline order creating + version: 1 \ No newline at end of file