From 0dcd1eef24541d074edcf3c8640b38cf7528ef6b Mon Sep 17 00:00:00 2001 From: PriyanshuAgarwal Date: Mon, 22 Jan 2018 20:15:01 +0200 Subject: configuration overriding capabilities. Updated files in SDC Parser Library. Change-Id: I885f0a155e52e337f776f74ef5675c080eecfaa8 Issue-ID: SDC-955 Signed-off-by: priyanshu --- .../resources/config/error-configuration-test.yaml | 22 +++++++++++++++++++++ src/test/resources/config/error-configuration.yaml | 4 ++++ .../csars/service-missing-csar-meta-file.csar | Bin 0 -> 45132 bytes 3 files changed, 26 insertions(+) create mode 100644 src/test/resources/config/error-configuration-test.yaml create mode 100644 src/test/resources/csars/service-missing-csar-meta-file.csar (limited to 'src/test/resources') 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 Binary files /dev/null and b/src/test/resources/csars/service-missing-csar-meta-file.csar differ -- cgit 1.2.3-korg