Commit 45c90b4f authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[fix-test][SOL005][VNF-PKG-MGMT][v5.2.1][5.3.5.x.y Test-IDs] fix - check...

[fix-test][SOL005][VNF-PKG-MGMT][v5.2.1][5.3.5.x.y Test-IDs] fix - check Location Header and resource availability in SOL005 VNF Package mgmt - item #8 in NFVSOL(25)000288
parent ea8ed84b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -76,6 +76,8 @@ Create new VNF Package subscription
    Send Post Request for VNF Package Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PkgmSubscription
    Check HTTP Response Header Contains    Location
    Check Postcondition Subscription Resource Returned in Location Header Is Available
    Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
    Check Postcondition VNF Package Subscription Is Set 

@@ -108,6 +110,8 @@ Create duplicated VNF Package subscription with NFVO creating duplicated subscri
    Send Post Request for Duplicated VNF Package Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PkgmSubscription
    Check HTTP Response Header Contains    Location
    Check Postcondition Subscription Resource Returned in Location Header Is Available
    Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
    Check Postcondition VNF Package Subscription Is Set 

+12 −0
Original line number Diff line number Diff line
@@ -1100,6 +1100,18 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
    Should Be Equal    ${result['callbackUri']}    ${subscription['callbackUri']}
    Log    Validated Issued subscription is same as original

Check Postcondition vnfPckgInfo 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    vnfPckgInfo.schema.json    ${result}
    Log    Validated vnfPckgInfo schema

Get Individual VNF Package Subscription
    Log    Trying to get a single subscription identified by subscriptionId
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
+2 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@ Create new VNF Package Resource
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   vnfPkgInfo
    Check HTTP Response Header Contains    Location
    Check Postcondition vnfPckgInfo Resource Returned in Location Header Is Available
    Check Postcondition VNF Package Resource Exists
    Check HTTP Response Body vnfPkgInfo content against VNF Descriptor

@@ -234,6 +235,7 @@ Create new VNF Package Resource with permitted authorization scope
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   vnfPkgInfo
    Check HTTP Response Header Contains    Location
    Check Postcondition vnfPckgInfo Resource Returned in Location Header Is Available
    Check Postcondition VNF Package Resource Exists
    Check HTTP Response Body vnfPkgInfo content against VNF Descriptor