Commit ceb2b7c2 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.4/7.x Test-ID] fix - check Location...

[fix-test][SOL005][NSD-Mgmt][v5.2.1][5.3.1.4/7.x Test-ID] fix - check Location Header and resource availability in SOL005 PNFD Management and subscriptions - item #8 in NFVSOL(25)000288
parent f0b15064
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -186,6 +186,18 @@ Check Postcondition NsdInfo Resource Returned in Location Header Is Available
    Validate Json    NsdInfo.schema.json    ${result}
    Log    Validated NsdInfo schema

Check Postcondition PnfdInfo 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    PnfdInfo.schema.json    ${result}
    Log    Validated PnfdInfo 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
@@ -247,6 +247,7 @@ Create new Network Service Descriptor Resource with permitted authorization scop
    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

+2 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ Create new PNF Descriptor Resource
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   PnfdInfo
    Check HTTP Response Header Contains    Location
    Check Postcondition PnfdInfo Resource Returned in Location Header Is Available
    Check Postcondition PnfdInfo Exists

PUT all PNF Descriptors - Method not implemented
@@ -208,6 +209,7 @@ Create new PNF Descriptor Resource with permitted authorization scope
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   PnfdInfo
    Check HTTP Response Header Contains    Location
    Check Postcondition PnfdInfo Resource Returned in Location Header Is Available
    Check Postcondition PnfdInfo Exists

Create new PNF Descriptor Resource with not permitted authorization scope
+2 −0
Original line number Diff line number Diff line
@@ -75,6 +75,8 @@ Create new NSD Management subscription
    Send Post Request for NSD Management Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    NsdmSubscription
    Check HTTP Response Header Contains    Location
    Check Postcondition Subscription Resource Returned in Location Header Is Available
    Check HTTP Response Body NsdmSubscription Attributes Values Match the Issued Subscription
    Check Postcondition NSD Management Subscription Is Set