Skip to content

Commit

Permalink
added template
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelianhan007 committed Dec 17, 2024
1 parent 900dc0c commit a4ede09
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,23 @@ public static List<Pair<PathCheck, Object>> 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<PathCheck, Object> pair1 = Pair.of(pathCheck1, "user1");
Pair<PathCheck, Object> pair2 = Pair.of(pathCheck2, "user1");
Expand All @@ -227,9 +243,10 @@ public static List<Pair<PathCheck, Object>> buildIllegalPathCheckList() {
Pair<PathCheck, Object> pair4 = Pair.of(pathCheck4, "123");
Pair<PathCheck, Object> pair5 = Pair.of(pathCheck5, "123");
Pair<PathCheck, Object> pair6 = Pair.of(pathCheck6, "");
Pair<PathCheck, Object> pair7 = Pair.of(pathCheck7, Map.of("id", 123));
Pair<PathCheck, Object> pair7 = Pair.of(pathCheck7, Map.of("emailAddress", 123));
Pair<PathCheck, Object> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4ede09

Please sign in to comment.