diff options
author | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2021-01-13 09:28:01 +0100 |
---|---|---|
committer | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2021-01-13 09:28:40 +0100 |
commit | f24ffce9e368502d16d73e3d0dea39983eaf6493 (patch) | |
tree | 67aec42b408ac0be585b4a8f7ba193bb270fb8ff | |
parent | 3aea09ade1b9559bb14d8c8f6d043b073b317c08 (diff) |
Update tests to support signature in PCKS7 format.
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: Idf76a0926ff942737ccec84f9a3aff067802ea80
Issue-ID: VNFSDK-714
-rw-r--r-- | tests/vnfsdk-refrepo/csar/invalid_with_security.csar | bin | 10824 -> 12975 bytes | |||
-rw-r--r-- | tests/vnfsdk-refrepo/csar_validation_tests.robot | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/vnfsdk-refrepo/csar/invalid_with_security.csar b/tests/vnfsdk-refrepo/csar/invalid_with_security.csar Binary files differindex c2560bd5..1b258558 100644 --- a/tests/vnfsdk-refrepo/csar/invalid_with_security.csar +++ b/tests/vnfsdk-refrepo/csar/invalid_with_security.csar diff --git a/tests/vnfsdk-refrepo/csar_validation_tests.robot b/tests/vnfsdk-refrepo/csar_validation_tests.robot index a7c2c402..9097c1a9 100644 --- a/tests/vnfsdk-refrepo/csar_validation_tests.robot +++ b/tests/vnfsdk-refrepo/csar_validation_tests.robot @@ -10,7 +10,6 @@ Perform vnf refrepo healthcheck ${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 @@ Validate secure CSAR with invalid certificate 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 @@ Validate CSAR using selected rules 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 |