From 7dd51a2e187a6cfea05ed46004a25152d687197f Mon Sep 17 00:00:00 2001 From: Pavel Aharoni Date: Wed, 13 Dec 2017 17:01:19 +0200 Subject: sdc-tosca tests change and refactoring Change-Id: Ibffb597a5197675499c7fe544fba953065f2f9bf Issue-ID: SDC-752 Signed-off-by: Pavel Aharoni --- ...jtosca-validation-issue-configuration-test.yaml | 57 ++++++++++++++++++++++ .../jtosca-validation-issue-configuration.yaml | 28 ++++------- 2 files changed, 67 insertions(+), 18 deletions(-) create mode 100644 src/test/resources/config/jtosca-validation-issue-configuration-test.yaml (limited to 'src/test/resources') diff --git a/src/test/resources/config/jtosca-validation-issue-configuration-test.yaml b/src/test/resources/config/jtosca-validation-issue-configuration-test.yaml new file mode 100644 index 0000000..1378ca7 --- /dev/null +++ b/src/test/resources/config/jtosca-validation-issue-configuration-test.yaml @@ -0,0 +1,57 @@ +# jTosca validation issues +#by error code, type the validation issue to be CRITICAL/WARNING +# since Conformance level considered to this type. for example: +#JE001: +# - type: WARNING, +# sinceCsarConformanceLevel: 3.0 +# - type: WARNING, +# sinceCsarConformanceLevel: 5.0 +validationIssues: + # TypeMismatchError + JE001: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + - issueType: CRITICAL + sinceCsarConformanceLevel: 4.0 + - issueType: WARNING + sinceCsarConformanceLevel: 5.0 + # MissingType + JE002: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + #MissingRequiredFieldError + JE003: + - issueType: CRITICAL + sinceCsarConformanceLevel: 4.0 + #MissingRequiredFieldError2 + JE004: + - issueType: WARNING + sinceCsarConformanceLevel: 2.0 + #InvalidGroupTargetException + JE005: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + #Schema definition of \"%s\" has \"status\" attribute with an invalid value + JE006: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + - issueType: CRITICAL + sinceCsarConformanceLevel: 4.0 + - issueType: WARNING + sinceCsarConformanceLevel: 5.0 + #The unit \"%s\" is not valid + JE007: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + #ValidationError + JE008: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + #ValueError: Expected max 2 arguments for function \"get_input\" but received \"%s\"",args.size()) + JE009: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 + #MissingRequiredFieldError3 + JE010: + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 \ No newline at end of file diff --git a/src/test/resources/config/jtosca-validation-issue-configuration.yaml b/src/test/resources/config/jtosca-validation-issue-configuration.yaml index 1378ca7..f4bb949 100644 --- a/src/test/resources/config/jtosca-validation-issue-configuration.yaml +++ b/src/test/resources/config/jtosca-validation-issue-configuration.yaml @@ -1,32 +1,28 @@ -# jTosca validation issues -#by error code, type the validation issue to be CRITICAL/WARNING +# jTosca validation issues +#by error code, type the validation issue to be CRITICAL/WARNING # since Conformance level considered to this type. for example: -#JE001: -# - type: WARNING, -# sinceCsarConformanceLevel: 3.0 -# - type: WARNING, +#JE001: +# - issueType: WARNING +# sinceCsarConformanceLevel: 3.0 +# - issueType: WARNING # sinceCsarConformanceLevel: 5.0 validationIssues: # TypeMismatchError - JE001: + JE001: - issueType: WARNING sinceCsarConformanceLevel: 3.0 - - issueType: CRITICAL - sinceCsarConformanceLevel: 4.0 - - issueType: WARNING - sinceCsarConformanceLevel: 5.0 # MissingType JE002: - issueType: WARNING sinceCsarConformanceLevel: 3.0 #MissingRequiredFieldError JE003: - - issueType: CRITICAL - sinceCsarConformanceLevel: 4.0 + - issueType: WARNING + sinceCsarConformanceLevel: 3.0 #MissingRequiredFieldError2 JE004: - issueType: WARNING - sinceCsarConformanceLevel: 2.0 + sinceCsarConformanceLevel: 3.0 #InvalidGroupTargetException JE005: - issueType: WARNING @@ -35,10 +31,6 @@ validationIssues: JE006: - issueType: WARNING sinceCsarConformanceLevel: 3.0 - - issueType: CRITICAL - sinceCsarConformanceLevel: 4.0 - - issueType: WARNING - sinceCsarConformanceLevel: 5.0 #The unit \"%s\" is not valid JE007: - issueType: WARNING -- cgit 1.2.3-korg