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

[fix][SOL002][VNF-PM][v5.2.1][6.3.3.1.9 Test-ID] Fix Location Header identifier across VNF-PM APIs

parent 19c5a89d
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -131,6 +131,7 @@ POST Create new VNF Performance Monitoring Job - SUCCESSFUL
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is   PmJob
    Check Postcondition PmJob Exists
    Check Postcondition PM Job Resource Returned in Location Header Is Available

PUT all VNF Performance Monitoring Jobs - Method not implemented
    [Documentation]    Test ID: 6.3.3.1.10
@@ -390,6 +391,16 @@ Check Postcondition PmJob Exists
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    PmJob
    
Check Postcondition PM Job Resource Returned in Location Header Is Available
    Log    Fetching PM job 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/PmJob.schema.json    ${result}
    Log    PM Job resource validated

Check HTTP Response Body Matches exclude_fields selector
    Log    Checking that reports element is missing
    ${reports}=    Get Value From Json    ${response['body']}    $..reports