Commit f0b15064 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[fix-test][SOL005][NSD-Mgmt][v5.2.1][5.3.1.1.11 Test-ID] fix - check Location...

[fix-test][SOL005][NSD-Mgmt][v5.2.1][5.3.1.1.11 Test-ID] fix - check Location Header and resource availability in SOL005 NSD Management - item #8 in NFVSOL(25)000288
parent cdc82c80
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -174,6 +174,18 @@ Send Post Request to create new Network Service Descriptor Resource with not per
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output} 

Check Postcondition NsdInfo Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    REST.GET    ${response['headers']['Location']}
    Integer    response status    200
    Log    Received a 200 OK as expected
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    NsdInfo.schema.json    ${result}
    Log    Validated NsdInfo schema

Check Postcondition NsdInfo Exists
    Log    Checking that nsd info exists
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
+1 −0
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@ Create new Network Service Descriptor Resource
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   NsdInfo
    Check HTTP Response Header Contains    Location
    Check Postcondition NsdInfo Resource Returned in Location Header Is Available
    Check Postcondition NsdInfo Exists
    Check HTTP Response Body NsInstance content against NS Descriptor