Commit b83a73a6 authored by Eisha Ayaz's avatar Eisha Ayaz Committed by Giacomo Bernini
Browse files

[fix][SOL002][VNF-IND][v5.2.1][6.3.2.4.12-13 Test-IDs] Fix Location Header...

[fix][SOL002][VNF-IND][v5.2.1][6.3.2.4.12-13 Test-IDs] Fix Location Header identifier across VNF-IND APIs
parent ce835ea9
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -170,6 +170,8 @@ Create new VNF indicator Subscription - DUPLICATION
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is    VnfIndicatorSubscription
    Check Operation Occurrence Id
    Check Postcondition VNF Indicator Subscription Is Set


Create new VNF indicator Subscription - NO-DUPLICATION
    [Documentation]    Test ID: 6.3.2.4.13
@@ -184,6 +186,8 @@ Create new VNF indicator Subscription - NO-DUPLICATION
    Check HTTP Response Status Code Is    303
    Check HTTP Response Header Contains    Location
    Check Operation Occurrence Id
    Check Postcondition Resource Returned in Location Header Is Available

GET VNF Indicators Subscriptions with permitted authorization scope
    [Documentation]    Test ID: 6.3.2.4.14
    ...    Test title: GET VNF Indicators Subscriptions with permitted authorization scope
@@ -322,6 +326,16 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK

Check Postcondition Resource Returned in Location Header Is Available
    Log    Fetching resource pointed by Location header
    GET    ${response['headers']['Location']}
    Integer    response status    200
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    schemas/VnfIndicatorSubscription.schema.json    ${result}
    Log    Subscription resource validated
    
Check HTTP Response Body Matches the Subscription
    Log    Check Response matches subscription
    ${body}=    Get File    jsons/subscriptions.json