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

[fix][SOL002][VNF-FM][v5.2.1][6.3.4.4.1,23 Test-IDs] Fix Location Header identifier across FM API

parent eb03ef6f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ Create a new subscription
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Header Contain Link
    Check Postcondition resource exists
    Check Postcondition Resource Returned in Location Header Is Available

Create a duplicated Subscription
     [Documentation]    Test ID: 6.3.4.4.2
@@ -315,6 +316,8 @@ Create a new subscription with permitted authorization scope
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Header Contain Link
    Check Postcondition resource exists
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available
Create a new subscription with not permitted authorization scope
    [Documentation]    Test ID: 6.3.4.4.24
    ...    Test title: Create a new subscription with not permitted authorization scope
@@ -565,6 +568,15 @@ Check Postcondition resource exists
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} 
    Integer    response status    200

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/FmSubscription.schema.json    ${result}
    Log    Subscription resource validated
Check Postcondition Duplicate Subscription exsist
    Should Not Be Equal As Strings    ${response['body']['callbackUri']}    ${subscriptionId}