summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/config/error-configuration-test.yaml22
-rw-r--r--src/test/resources/config/error-configuration.yaml4
-rw-r--r--src/test/resources/csars/service-missing-csar-meta-file.csarbin0 -> 45132 bytes
3 files changed, 26 insertions, 0 deletions
diff --git a/src/test/resources/config/error-configuration-test.yaml b/src/test/resources/config/error-configuration-test.yaml
new file mode 100644
index 0000000..f5c20aa
--- /dev/null
+++ b/src/test/resources/config/error-configuration-test.yaml
@@ -0,0 +1,22 @@
+# Errors
+errors:
+ FILE_NOT_FOUND: {
+ code: TP0001,
+ failOnError: true,
+ message: "Error: CSAR file not found."
+ }
+ BAD_FORMAT: {
+ code: TP0002,
+ failOnError: true,
+ message: "Error: CSAR file bad format. Check the log for details."
+ }
+ CONFORMANCE_LEVEL_ERROR: {
+ code: TP0003,
+ failOnError: false,
+ message: "Error: CSAR version is unsupported. Parser supports versions %s to %s."
+ }
+ GENERAL_ERROR: {
+ code: TP0004,
+ failOnError: true,
+ message: "Error: an unexpected internal error occured."
+ } \ No newline at end of file
diff --git a/src/test/resources/config/error-configuration.yaml b/src/test/resources/config/error-configuration.yaml
index 3febd33..44173cd 100644
--- a/src/test/resources/config/error-configuration.yaml
+++ b/src/test/resources/config/error-configuration.yaml
@@ -2,17 +2,21 @@
errors:
FILE_NOT_FOUND: {
code: TP0001,
+ failOnError: true,
message: "Error: CSAR file not found."
}
BAD_FORMAT: {
code: TP0002,
+ failOnError: true,
message: "Error: CSAR file bad format. Check the log for details."
}
CONFORMANCE_LEVEL_ERROR: {
code: TP0003,
+ failOnError: true,
message: "Error: CSAR version is unsupported. Parser supports versions %s to %s."
}
GENERAL_ERROR: {
code: TP0004,
+ failOnError: true,
message: "Error: an unexpected internal error occured."
} \ No newline at end of file
diff --git a/src/test/resources/csars/service-missing-csar-meta-file.csar b/src/test/resources/csars/service-missing-csar-meta-file.csar
new file mode 100644
index 0000000..7c75314
--- /dev/null
+++ b/src/test/resources/csars/service-missing-csar-meta-file.csar
Binary files differ