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

[fix][SOL002][VNF-LCM-COORD][v5.2.1][6.3.6.2.1,11 Test-IDs] Fix Location...

[fix][SOL002][VNF-LCM-COORD][v5.2.1][6.3.6.2.1,11 Test-IDs] Fix Location Header identifier across VNF-LCM-COORD APIs
parent 7c174402
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ POST Coordination of LCM Operation Occurance and API Producer has Chosen the Syn
    Check HTTP Response Body Json Schema Is    LcmCoord
    Check HTTP Response Header Contains    Location
    Check Postcondition LcmCoord Exists
    Check Postcondition Resource Returned in Location Header Is Available


POST Coordination of LCM Operation Occurance and API Producer has Chosen the Asynchronous Mode
    [Documentation]    Test ID: 6.3.6.2.2
@@ -39,6 +41,7 @@ POST Coordination of LCM Operation Occurance and API Producer has Chosen the Asy
    Check HTTP Response Body Should be Empty
    Check HTTP Response Header Contains    Location


POST Coordination of a LCM Operation Occurance Forbidden
    [Documentation]    Test ID: 6.3.6.2.3
    ...    Test title: Post Coordination of an LCM operation occurrence Forbidden
@@ -152,6 +155,7 @@ POST Coordination of LCM Operation Occurance and API Producer has Chosen the Syn
    Check HTTP Response Body Json Schema Is    LcmCoord
    Check HTTP Response Header Contains    Location
    Check Postcondition LcmCoord Exists
    Check Postcondition Resource Returned in Location Header Is Available
POST Coordination of LCM Operation Occurance and API Producer has Chosen the Synchronous Mode with not permitted authorization scope
    [Documentation]    Test ID: 6.3.6.2.12
    ...    Test title: Post Coordination of an LCM operation occurrence with not permitted authorization scope
+10 −0
Original line number Diff line number Diff line
@@ -34,6 +34,16 @@ Check Postcondition LcmCoord Exists
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    LcmCoord

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/LcmCoord.schema.json    ${result}
    Log    Resource validated

Check HTTP Response Body Should be Empty
    Should Be Empty    ${response['body']}