diff options
author | Pavel Aharoni <pa0916@att.com> | 2017-05-24 13:23:12 +0300 |
---|---|---|
committer | Pavel Aharoni <pa0916@att.com> | 2017-05-24 13:23:12 +0300 |
commit | 9e430cd9d4722c3e614c8a2fd822cff1604be1f2 (patch) | |
tree | 565af8e16f17ae46bc901093aded0e19ac1b4c1f /sdc-tosca-parser/src/test/resources | |
parent | 67a7f1d57b6b1d7c07dc3da4db51a387f90fef28 (diff) |
[SDC-24] error handling
Change-Id: Iac97052fab32f638d4cf52b094caad31f6d76902
Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'sdc-tosca-parser/src/test/resources')
-rw-r--r-- | sdc-tosca-parser/src/test/resources/config/error-configuration.yaml | 18 | ||||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/csar-invalid-zip.zip | 2 | ||||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/service-entry-definition-not-defined.csar | bin | 0 -> 45157 bytes | |||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/service-invalid-conformence-level.csar | bin | 0 -> 45194 bytes | |||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/service-invalid-input-args.csar | bin | 0 -> 106698 bytes | |||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/service-invalid-yaml-content-meta.csar | bin | 0 -> 45198 bytes | |||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/service-missing-entry-definition.csar | bin | 0 -> 42668 bytes | |||
-rw-r--r-- | sdc-tosca-parser/src/test/resources/csars/service-missing-meta-file.csar | bin | 0 -> 44893 bytes |
8 files changed, 20 insertions, 0 deletions
diff --git a/sdc-tosca-parser/src/test/resources/config/error-configuration.yaml b/sdc-tosca-parser/src/test/resources/config/error-configuration.yaml new file mode 100644 index 0000000..3febd33 --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/config/error-configuration.yaml @@ -0,0 +1,18 @@ +# Errors +errors: + FILE_NOT_FOUND: { + code: TP0001, + message: "Error: CSAR file not found." + } + BAD_FORMAT: { + code: TP0002, + message: "Error: CSAR file bad format. Check the log for details." + } + CONFORMANCE_LEVEL_ERROR: { + code: TP0003, + message: "Error: CSAR version is unsupported. Parser supports versions %s to %s." + } + GENERAL_ERROR: { + code: TP0004, + message: "Error: an unexpected internal error occured." + }
\ No newline at end of file diff --git a/sdc-tosca-parser/src/test/resources/csars/csar-invalid-zip.zip b/sdc-tosca-parser/src/test/resources/csars/csar-invalid-zip.zip new file mode 100644 index 0000000..04de055 --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/csar-invalid-zip.zip @@ -0,0 +1,2 @@ +SDC-TOSCA-Meta-File-Version: 1.0 +SDC-TOSCA-Definitions-Version: 2.0 diff --git a/sdc-tosca-parser/src/test/resources/csars/service-entry-definition-not-defined.csar b/sdc-tosca-parser/src/test/resources/csars/service-entry-definition-not-defined.csar Binary files differnew file mode 100644 index 0000000..47e65b6 --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/service-entry-definition-not-defined.csar diff --git a/sdc-tosca-parser/src/test/resources/csars/service-invalid-conformence-level.csar b/sdc-tosca-parser/src/test/resources/csars/service-invalid-conformence-level.csar Binary files differnew file mode 100644 index 0000000..12621f0 --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/service-invalid-conformence-level.csar diff --git a/sdc-tosca-parser/src/test/resources/csars/service-invalid-input-args.csar b/sdc-tosca-parser/src/test/resources/csars/service-invalid-input-args.csar Binary files differnew file mode 100644 index 0000000..22f9970 --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/service-invalid-input-args.csar diff --git a/sdc-tosca-parser/src/test/resources/csars/service-invalid-yaml-content-meta.csar b/sdc-tosca-parser/src/test/resources/csars/service-invalid-yaml-content-meta.csar Binary files differnew file mode 100644 index 0000000..f77af6f --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/service-invalid-yaml-content-meta.csar diff --git a/sdc-tosca-parser/src/test/resources/csars/service-missing-entry-definition.csar b/sdc-tosca-parser/src/test/resources/csars/service-missing-entry-definition.csar Binary files differnew file mode 100644 index 0000000..8fd1962 --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/service-missing-entry-definition.csar diff --git a/sdc-tosca-parser/src/test/resources/csars/service-missing-meta-file.csar b/sdc-tosca-parser/src/test/resources/csars/service-missing-meta-file.csar Binary files differnew file mode 100644 index 0000000..79348db --- /dev/null +++ b/sdc-tosca-parser/src/test/resources/csars/service-missing-meta-file.csar |