Commit 46073d54 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

updated missing test step for Location Header in Test ID: 8.3.2.1.1

parent 2fe39331
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -235,6 +235,17 @@ Check HTTP Response Header Contains
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Log    Header is present

Check Postcondition Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    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    schemas/PmJobschema.json    ${result}
    Log    Validated PmJobschema schema

Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    Run Keyword If    '${input}' == 'ProblemDetails'    Should Contain    ${response['headers']['Content-Type']}    application/problem+json
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ POST Create new NFV-MANO Performance Monitoring Job
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is   PmJob
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available
    Check Postcondition PmJob Exists
    
GET all NFV-MANO Performance Monitoring Jobs