diff options
author | Michal Banka <michal.banka@nokia.com> | 2020-07-02 10:55:44 +0200 |
---|---|---|
committer | Michal Banka <michal.banka@nokia.com> | 2020-07-02 12:00:39 +0200 |
commit | bf4dc2a659022d62a6dc9d3d1f09e60439b2932d (patch) | |
tree | d3da7b3ab2a345b94e471f08da11efcb2109be69 | |
parent | 8fd3dcfc8252a986300c35d1c58f34ab4d210ea4 (diff) |
Change R130206 warning message
Change-Id: I0160fb47414d6b04d2ef649bbacb5125f3ad3335
Issue-ID: VNFSDK-595
Signed-off-by: Michal Banka <michal.banka@nokia.com>
3 files changed, 9 insertions, 5 deletions
diff --git a/Changelog.md b/Changelog.md index fa623b9..fb1ada9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -32,4 +32,8 @@ All notable changes to this project will be documented in this file. ### Fixed - Fixed bug that was causing problem with loading rules properties. - - https://jira.onap.org/browse/VNFSDK-587
\ No newline at end of file + - https://jira.onap.org/browse/VNFSDK-587 +- Fixed VNFSDK doesn't check if all files in package are listed in manifest file + - https://jira.onap.org/browse/VNFSDK-583 +- Fixed package security SOL004 Option 1 make rule less restrictive as this rule is not implemented in SDC Onboarding + - https://jira.onap.org/browse/VNFSDK-595
\ No newline at end of file diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206.java b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206.java index 64eb878..41625a9 100644 --- a/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206.java +++ b/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206.java @@ -122,7 +122,7 @@ public class VTPValidateCSARR130206 extends VTPValidateCSARBase { public static class CSARWarningNoSecurity extends CSARArchive.CSARErrorWarning{ CSARWarningNoSecurity(){ super(EMPTY_STRING, EMPTY_STRING,-1, EMPTY_STRING); - this.message = "Warning. Consider adding security options (CMS and hash codes for sources) in manifest file."; + this.message = "Warning. Consider adding package integrity and authenticity assurance according to ETSI NFV-SOL 004 Security Option 1"; } } diff --git a/csarvalidation/src/test/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206IntegrationTest.java b/csarvalidation/src/test/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206IntegrationTest.java index 0147c90..eef9881 100644 --- a/csarvalidation/src/test/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206IntegrationTest.java +++ b/csarvalidation/src/test/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206IntegrationTest.java @@ -92,7 +92,7 @@ public class VTPValidateCSARR130206IntegrationTest { List<CSARArchive.CSARError> errors = testCase.getErrors(); assertThat(errors.size()).isEqualTo(1); assertThat(convertToMessagesList(errors)).contains( - "Warning. Consider adding security options (CMS and hash codes for sources) in manifest file." + "Warning. Consider adding package integrity and authenticity assurance according to ETSI NFV-SOL 004 Security Option 1" ); } @@ -151,7 +151,7 @@ public class VTPValidateCSARR130206IntegrationTest { List<CSARArchive.CSARError> errors = testCase.getErrors(); assertThat(convertToMessagesList(errors)).contains( "Unable to find cert file defined by Entry-Certificate!", - "Warning. Consider adding security options (CMS and hash codes for sources) in manifest file.", + "Warning. Consider adding package integrity and authenticity assurance according to ETSI NFV-SOL 004 Security Option 1", "Missing. Entry [tosca_definitions_version]" ); } @@ -170,7 +170,7 @@ public class VTPValidateCSARR130206IntegrationTest { List<CSARArchive.CSARError> errors = testCase.getErrors(); assertThat(convertToMessagesList(errors)).contains( "Unable to find cert file defined by ETSI-Entry-Certificate!", - "Warning. Consider adding security options (CMS and hash codes for sources) in manifest file." + "Warning. Consider adding package integrity and authenticity assurance according to ETSI NFV-SOL 004 Security Option 1" ); } |