summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2018-08-14 16:52:58 +0300
committerYuli Shlosberg <ys9693@att.com>2018-08-14 16:52:58 +0300
commita2705637c17beb663c47f82b03279e479ed2f8ca (patch)
tree32e25f1692c718f068ed54657489a5b86a206302 /src
parent9cc8dff8223e03b6a5bc5cfc2c23d31989de2c61 (diff)
Enable types validation feature
InvalidTypeError added to conf This conf addition will case to parser throw exception in case that invalid type found during parsing process Change-Id: I6497d32862e64abaeec20d30da50fff4c5964d4e Issue-ID: SDC-1646 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/config/jtosca-validation-issue-configuration.yaml8
-rw-r--r--src/test/resources/config/jtosca-validation-issue-configuration.yaml8
-rw-r--r--src/test/resources/csars/resource-Vdbe-csar.csarbin67692 -> 68234 bytes
-rw-r--r--src/test/resources/csars/service-AlService-csar.csarbin37564 -> 37560 bytes
-rw-r--r--src/test/resources/csars/service-Ipassignservice-csar.csarbin49044 -> 52208 bytes
-rw-r--r--src/test/resources/csars/service-PortMirroring.csarbin55678 -> 55584 bytes
-rw-r--r--src/test/resources/csars/service-ServiceForToscaParserTests-csar.csarbin77413 -> 77409 bytes
-rw-r--r--src/test/resources/csars/service-VdbeSrv-csar.csarbin73851 -> 74393 bytes
-rw-r--r--src/test/resources/csars/service-VlanD2dSrv-csar.csarbin73963 -> 74505 bytes
-rw-r--r--src/test/resources/csars/service-resolve-get-input-csar.csarbin49461 -> 52513 bytes
-rw-r--r--src/test/resources/csars/service-resolve-get-input-csar_QA.csarbin49407 -> 52459 bytes
-rw-r--r--src/test/resources/log4j.properties8
12 files changed, 24 insertions, 0 deletions
diff --git a/src/main/resources/config/jtosca-validation-issue-configuration.yaml b/src/main/resources/config/jtosca-validation-issue-configuration.yaml
index f4bb949..3f62953 100644
--- a/src/main/resources/config/jtosca-validation-issue-configuration.yaml
+++ b/src/main/resources/config/jtosca-validation-issue-configuration.yaml
@@ -46,4 +46,12 @@ validationIssues:
#MissingRequiredFieldError3
JE010:
- issueType: WARNING
+ sinceCsarConformanceLevel: 3.0
+ #InvalidTypeError
+ JE136:
+ - issueType: CRITICAL
+ sinceCsarConformanceLevel: 3.0
+ #Exception from SnakeYAML
+ JE198:
+ - issueType: CRITICAL
sinceCsarConformanceLevel: 3.0 \ No newline at end of file
diff --git a/src/test/resources/config/jtosca-validation-issue-configuration.yaml b/src/test/resources/config/jtosca-validation-issue-configuration.yaml
index f4bb949..3f62953 100644
--- a/src/test/resources/config/jtosca-validation-issue-configuration.yaml
+++ b/src/test/resources/config/jtosca-validation-issue-configuration.yaml
@@ -46,4 +46,12 @@ validationIssues:
#MissingRequiredFieldError3
JE010:
- issueType: WARNING
+ sinceCsarConformanceLevel: 3.0
+ #InvalidTypeError
+ JE136:
+ - issueType: CRITICAL
+ sinceCsarConformanceLevel: 3.0
+ #Exception from SnakeYAML
+ JE198:
+ - issueType: CRITICAL
sinceCsarConformanceLevel: 3.0 \ No newline at end of file
diff --git a/src/test/resources/csars/resource-Vdbe-csar.csar b/src/test/resources/csars/resource-Vdbe-csar.csar
index 32a11b9..0705852 100644
--- a/src/test/resources/csars/resource-Vdbe-csar.csar
+++ b/src/test/resources/csars/resource-Vdbe-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-AlService-csar.csar b/src/test/resources/csars/service-AlService-csar.csar
index c02097d..653b80d 100644
--- a/src/test/resources/csars/service-AlService-csar.csar
+++ b/src/test/resources/csars/service-AlService-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-Ipassignservice-csar.csar b/src/test/resources/csars/service-Ipassignservice-csar.csar
index c065fea..007b96a 100644
--- a/src/test/resources/csars/service-Ipassignservice-csar.csar
+++ b/src/test/resources/csars/service-Ipassignservice-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-PortMirroring.csar b/src/test/resources/csars/service-PortMirroring.csar
index b90f3b1..c3a44a0 100644
--- a/src/test/resources/csars/service-PortMirroring.csar
+++ b/src/test/resources/csars/service-PortMirroring.csar
Binary files differ
diff --git a/src/test/resources/csars/service-ServiceForToscaParserTests-csar.csar b/src/test/resources/csars/service-ServiceForToscaParserTests-csar.csar
index a3e6f70..9afc278 100644
--- a/src/test/resources/csars/service-ServiceForToscaParserTests-csar.csar
+++ b/src/test/resources/csars/service-ServiceForToscaParserTests-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-VdbeSrv-csar.csar b/src/test/resources/csars/service-VdbeSrv-csar.csar
index b0e5131..f911753 100644
--- a/src/test/resources/csars/service-VdbeSrv-csar.csar
+++ b/src/test/resources/csars/service-VdbeSrv-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-VlanD2dSrv-csar.csar b/src/test/resources/csars/service-VlanD2dSrv-csar.csar
index 9cc3b13..efec4c0 100644
--- a/src/test/resources/csars/service-VlanD2dSrv-csar.csar
+++ b/src/test/resources/csars/service-VlanD2dSrv-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-resolve-get-input-csar.csar b/src/test/resources/csars/service-resolve-get-input-csar.csar
index 7c14159..d793229 100644
--- a/src/test/resources/csars/service-resolve-get-input-csar.csar
+++ b/src/test/resources/csars/service-resolve-get-input-csar.csar
Binary files differ
diff --git a/src/test/resources/csars/service-resolve-get-input-csar_QA.csar b/src/test/resources/csars/service-resolve-get-input-csar_QA.csar
index 7206139..a290ff1 100644
--- a/src/test/resources/csars/service-resolve-get-input-csar_QA.csar
+++ b/src/test/resources/csars/service-resolve-get-input-csar_QA.csar
Binary files differ
diff --git a/src/test/resources/log4j.properties b/src/test/resources/log4j.properties
new file mode 100644
index 0000000..c18c3da
--- /dev/null
+++ b/src/test/resources/log4j.properties
@@ -0,0 +1,8 @@
+# Root logger option
+log4j.rootLogger=info, stdout
+
+# Direct log messages to stdout
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n