Commit 994df86f authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

[test-new][SOL005][VNF-PCKG-MGMT][v5.3.1][5.3.5.15.9...

[test-new][SOL005][VNF-PCKG-MGMT][v5.3.1][5.3.5.15.9 Test-ID][NFVSOL(26)0000093] Implemented new test cases for 404 HTTP Response in VNFPackageArtifacts.
parent c28c3cdc
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -236,3 +236,15 @@ Get VNF Package Artifact with not permitted authorization scope
    ...    Post-Conditions: none
    Get Artifact in VNF Package with not permitted authorization scope
    Check HTTP Response Status Code Is    401

Get VNF Package Artifact with invalid identifer
    [Documentation]    Test ID: 5.3.5.13.1
    ...    Test title: Get VNF Package Artifact with invalid identifer
    ...    Test objective: The objective is to test that the GET VNF Package Artifact request fails when using an invalid identifier
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 9.4.5a.3.2 - ETSI GS NFV-SOL 005 [3] v5.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Artifact in VNF Package with invalid identifer
    Check HTTP Response Status Code Is    404
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
@@ -1487,6 +1487,14 @@ Get Artifact in VNF Package
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Get Artifact in VNF Package with invalid identifer
    Log    Trying to get Artifact in VNF Package
    Set Headers    {"Accept": "${ACCEPT_ZIP}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    REST.GET    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${erroneousVnfPackageId}/artifacts
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Get Artifact in VNF Package with permitted authorization scope
    Log    Trying to get Artifact in VNF Package
    Set Headers    {"Accept": "${ACCEPT_ZIP}"}