summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
authorPriyanshuAgarwal <pagarwal@amdocs.com>2018-01-22 20:15:01 +0200
committerpriyanshu <pagarwal@amdocs.com>2018-02-07 02:01:09 +0530
commit0dcd1eef24541d074edcf3c8640b38cf7528ef6b (patch)
tree4fee5b77673f0246111bedf25dd2c2fb89036b3c /src/test/resources
parent8f26703ebe460602d150faaba7759031c6088a5a (diff)
configuration overriding capabilities.
Updated files in SDC Parser Library. Change-Id: I885f0a155e52e337f776f74ef5675c080eecfaa8 Issue-ID: SDC-955 Signed-off-by: priyanshu <pagarwal@amdocs.com>
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