Commit 6542012c authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

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

[test-new][SOL005][VNF-PCKG-MGMT][v5.3.1][5.3.5.5.8 Test-ID][NFVSOL(26)0000093] Implemented new test cases for 401/404 HTTP Response in VNFPackageContentViaUri.
parent 994df86f
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -104,5 +104,18 @@ Upload VNF Package Content from URI with not permitted authorization scope
    ...    Applicability: none
    ...    Post-Conditions: none
    Send POST Request to upload VNF Package Content from URI with not permitted authorization scope
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body is Empty

Upload VNF Package Content from URI with invalid identifer
    [Documentation]    Test ID: 5.3.5.5.8
    ...    Test title: Upload VNF Package Content from URI with invalid identifer
    ...    Test objective: The objective is to test that the upload of a VNF Package Content from URI fails when using an invalid identifier.
    ...    Pre-conditions: One or more VNF Packages are in onboarding state CREATED in the NFVO.
    ...    Reference: Clause 9.4.6.3.1 - ETSI GS NFV-SOL 005 [3] v5.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send POST Request to upload VNF Package Content from URI with invalid identifer
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+10 −0
Original line number Diff line number Diff line
@@ -936,6 +936,16 @@ Send POST Request to upload VNF Package Content from URI
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Send POST Request to upload VNF Package Content from URI with invalid identifer
    Log    Trying to perform a POST. The POST method provides the information for the NFVO to get the content of a VNF package.
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template}=    Get File    jsons/UploadVnfPkgFromUriRequest.json
    ${body}=        Format String   ${template}     vnfPkgUri=${vnfPkgUri}
    REST.POST    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${erroneousVnfPkgId}/package_content/upload_from_uri    ${body}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Send POST Request to upload VNF Package Content from URI with permitted authorization scope
    Log    Trying to perform a POST. The POST method provides the information for the NFVO to get the content of a VNF package.
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}