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

updated missing test step for Location Header in Test IDs: 8.3.4.5.9 and 8.3.4.5.11

parent 10254835
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -22,6 +22,11 @@ Check HTTP Response Header Contains
    [Arguments]    ${CONTENT_TYPE}
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Log    Header is present
    Run Keyword If    '${CONTENT_TYPE}' == 'Location'    Check Existence of Location Header Resource
Check Existence of Location Header Resource
    GET    ${response['headers']['Location']}
    Log    Validate Status code
    Integer    response status    200

Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
@@ -642,10 +647,6 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
    ${result}=    Output    response body
    Validate Json    LogmSubscription.schema.json    ${result}
    Log    Validated LogmSubscription schema
    ${body}=    Get File    jsons/subscriptions.json
    ${subscription}=    evaluate    json.loads('''${body}''')    json
    Should Be Equal    ${result['callbackUri']}    ${subscription['callbackUri']}
    Log    Validated Issued subscription is same as original
    
Send Put Request for Subscriptions
    [Documentation]    This method is not supported. When this method is requested on this resource, the NFV-MANO shall return a "405 Method
+2 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ POST Create new Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    LogmSubscription
    Check HTTP Response Header Contains    Location
    Check Postcondition Subscription Resource Returned in Location Header Is Available
    Check HTTP Response Body LogmSubscription Attributes Values Match the Issued Subscription
    Check Postcondition Subscription Is Set 

@@ -156,6 +157,7 @@ POST Create request for duplicated Subscription creating duplicated subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PmSubscription
    Check HTTP Response Header Contains    Location
    Check Postcondition Subscription Resource Returned in Location Header Is Available
    Check HTTP Response Body LogmSubscription Attributes Values Match the Issued Subscription
    Check Postcondition Subscription Is Set