diff options
author | Pavel Aharoni <pa0916@att.com> | 2017-06-08 12:26:00 +0300 |
---|---|---|
committer | Pavel Aharoni <pa0916@att.com> | 2017-06-08 12:26:00 +0300 |
commit | 6b61b88108c5d35efb61cd1006d0a3b9db9d35bf (patch) | |
tree | 85c77d3d6e944f58ba6a9b3a5e9ac3778658d5a2 /src/test/resources | |
parent | 9b5e11ba43f82c87623e05671a96a4ce0aedfde7 (diff) |
[SDC-30] SDC-TOSCA initial commit
Change-Id: I1048701a6f4a2e14cb37ecc6205b07ffce8af38f
Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'src/test/resources')
18 files changed, 23 insertions, 0 deletions
diff --git a/src/test/resources/config/configuration.yaml b/src/test/resources/config/configuration.yaml new file mode 100644 index 0000000..379e962 --- /dev/null +++ b/src/test/resources/config/configuration.yaml @@ -0,0 +1,3 @@ +conformanceLevel: + minVersion: '3.0' + maxVersion: '3.0'
\ No newline at end of file diff --git a/src/test/resources/config/error-configuration.yaml b/src/test/resources/config/error-configuration.yaml new file mode 100644 index 0000000..3febd33 --- /dev/null +++ b/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/src/test/resources/csars/1service-ServiceWithPorts.csar b/src/test/resources/csars/1service-ServiceWithPorts.csar Binary files differnew file mode 100644 index 0000000..fa6577b --- /dev/null +++ b/src/test/resources/csars/1service-ServiceWithPorts.csar diff --git a/src/test/resources/csars/csar-invalid-zip.zip b/src/test/resources/csars/csar-invalid-zip.zip new file mode 100644 index 0000000..04de055 --- /dev/null +++ b/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/src/test/resources/csars/service-Renanatst2-csar.csar b/src/test/resources/csars/service-Renanatst2-csar.csar Binary files differnew file mode 100644 index 0000000..37baffb --- /dev/null +++ b/src/test/resources/csars/service-Renanatst2-csar.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-csar-0904-2.csar b/src/test/resources/csars/service-ServiceFdnt-csar-0904-2.csar Binary files differnew file mode 100644 index 0000000..4f57b71 --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-csar-0904-2.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-csar-no-vf.csar b/src/test/resources/csars/service-ServiceFdnt-csar-no-vf.csar Binary files differnew file mode 100644 index 0000000..c35baf5 --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-csar-no-vf.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-csar-rainy.csar b/src/test/resources/csars/service-ServiceFdnt-csar-rainy.csar Binary files differnew file mode 100644 index 0000000..f3b3a46 --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-csar-rainy.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-csar.csar b/src/test/resources/csars/service-ServiceFdnt-csar.csar Binary files differnew file mode 100644 index 0000000..983dc9b --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-csar.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-test-csar.csar b/src/test/resources/csars/service-ServiceFdnt-test-csar.csar Binary files differnew file mode 100644 index 0000000..5a364cd --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-test-csar.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-with-allotted.csar b/src/test/resources/csars/service-ServiceFdnt-with-allotted.csar Binary files differnew file mode 100644 index 0000000..ef6d03e --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-with-allotted.csar diff --git a/src/test/resources/csars/service-ServiceFdnt-with-get-input.csar b/src/test/resources/csars/service-ServiceFdnt-with-get-input.csar Binary files differnew file mode 100644 index 0000000..53aea49 --- /dev/null +++ b/src/test/resources/csars/service-ServiceFdnt-with-get-input.csar diff --git a/src/test/resources/csars/service-entry-definition-not-defined.csar b/src/test/resources/csars/service-entry-definition-not-defined.csar Binary files differnew file mode 100644 index 0000000..47e65b6 --- /dev/null +++ b/src/test/resources/csars/service-entry-definition-not-defined.csar diff --git a/src/test/resources/csars/service-invalid-conformence-level.csar b/src/test/resources/csars/service-invalid-conformence-level.csar Binary files differnew file mode 100644 index 0000000..12621f0 --- /dev/null +++ b/src/test/resources/csars/service-invalid-conformence-level.csar diff --git a/src/test/resources/csars/service-invalid-input-args.csar b/src/test/resources/csars/service-invalid-input-args.csar Binary files differnew file mode 100644 index 0000000..22f9970 --- /dev/null +++ b/src/test/resources/csars/service-invalid-input-args.csar diff --git a/src/test/resources/csars/service-invalid-yaml-content-meta.csar b/src/test/resources/csars/service-invalid-yaml-content-meta.csar Binary files differnew file mode 100644 index 0000000..f77af6f --- /dev/null +++ b/src/test/resources/csars/service-invalid-yaml-content-meta.csar diff --git a/src/test/resources/csars/service-missing-entry-definition.csar b/src/test/resources/csars/service-missing-entry-definition.csar Binary files differnew file mode 100644 index 0000000..8fd1962 --- /dev/null +++ b/src/test/resources/csars/service-missing-entry-definition.csar diff --git a/src/test/resources/csars/service-missing-meta-file.csar b/src/test/resources/csars/service-missing-meta-file.csar Binary files differnew file mode 100644 index 0000000..79348db --- /dev/null +++ b/src/test/resources/csars/service-missing-meta-file.csar |