Update tests to support signature in PCKS7 format.
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Idf76a0926ff942737ccec84f9a3aff067802ea80
Issue-ID: VNFSDK-714
diff --git a/tests/vnfsdk-refrepo/csar/invalid_with_security.csar b/tests/vnfsdk-refrepo/csar/invalid_with_security.csar
index c2560bd..1b25855 100644
--- a/tests/vnfsdk-refrepo/csar/invalid_with_security.csar
+++ b/tests/vnfsdk-refrepo/csar/invalid_with_security.csar
Binary files differ
diff --git a/tests/vnfsdk-refrepo/csar_validation_tests.robot b/tests/vnfsdk-refrepo/csar_validation_tests.robot
index a7c2c40..9097c1a 100644
--- a/tests/vnfsdk-refrepo/csar_validation_tests.robot
+++ b/tests/vnfsdk-refrepo/csar_validation_tests.robot
@@ -10,7 +10,6 @@
${response}= Get Request refrepo /PackageResource/healthcheck
Should Be Equal As Strings ${response.status_code} 200
-
Validate correct, no security CSAR
[Documentation] Valid CSAR with no security should PASS validation and should return no error
@@ -42,7 +41,7 @@
FOR ${resault} IN @{json_response[0]["results"]["results"]}
${validation_errors}= Get Length ${resault["errors"]}
run keyword if "${resault["vnfreqName"]}" == "${CERTIFICATION_RULE}"
- ... Should Be Equal As Strings ${validation_errors} 7
+ ... Should Be Equal As Strings ${validation_errors} 9
run keyword if "${resault["vnfreqName"]}" == "${PM_DICTIONARY_YAML_RULE}"
... Should Be Equal As Strings ${validation_errors} 1
run keyword if "${resault["vnfreqName"]}" == "${MANIFEST_FILE_RULE}"
@@ -66,7 +65,7 @@
FOR ${resault} IN @{json_response[0]["results"]["results"]}
${validation_errors}= Get Length ${resault["errors"]}
run keyword if "${resault["vnfreqName"]}" == "${CERTIFICATION_RULE}"
- ... Should Be Equal As Strings ${validation_errors} 7
+ ... Should Be Equal As Strings ${validation_errors} 9
run keyword if "${resault["vnfreqName"]}" == "${PM_DICTIONARY_YAML_RULE}"
... Should Be Equal As Strings ${validation_errors} 1
END