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

[fix][SOL002][VNF-PM][v5.2.1][6.3.3.4.5,12 Test-IDs] Fix Location Header...

[fix][SOL002][VNF-PM][v5.2.1][6.3.3.4.5,12 Test-IDs] Fix Location Header identifier across VNF-PM APIs
parent 6f9ca837
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ POST Create new Performance Threshold
    Check HTTP Response Body Json Schema Is   Threshold
    Check HTTP Response Header Contains    Location
    Check Postcondition Threshold Exists
    Check Postcondition Threshold Resource Returned in Location Header Is Available

PUT Performance Thresholds - Method not implemented
    [Documentation]    Test ID: 6.3.3.4.6
@@ -164,6 +165,8 @@ POST Create new Performance Threshold with permitted authorization scope
    Check HTTP Response Body Json Schema Is   Threshold
    Check HTTP Response Header Contains    Location
    Check Postcondition Threshold Exists
    Check Postcondition Threshold Resource Returned in Location Header Is Available

POST Create new Performance Threshold with NOT permitted authorization scope
    [Documentation]    Test ID: 6.3.3.4.13
    ...    Test title:  POST Create new Performance Threshold with permitted authorization scope
@@ -300,6 +303,16 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
    
Check Postcondition Threshold 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/Threshold.schema.json    ${result}
    Log    Threshold resource validated

Check HTTP Response Header Contain Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}