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

[fix][SOL003][VNF-OP-GRANT][v5.2.1][7.3.2.1.1..11 Test-IDs] Fix Location...

[fix][SOL003][VNF-OP-GRANT][v5.2.1][7.3.2.1.1..11 Test-IDs] Fix Location Header identifier across VNF-OP-GRANT APIs
parent c9de032b
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode
    Check HTTP Response Status Code Is    201
    Check Operation Occurrence Id existence 
    Check HTTP Response Body Json Schema Is    grant
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available


Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
    [Documentation]    Test ID: 7.3.2.1.2
@@ -44,6 +47,7 @@ Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id existence 
    Check HTTP Response Body Json Schema Is    grant
    Check Postcondition Resource Returned in Location Header Is Available
    Wait for individual grant successful notification 

Requests a grant for a particular VNF lifecycle operation - Forbidden 
@@ -120,6 +124,9 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode usi
    Check HTTP Response Status Code Is    201
    Check Operation Occurrence Id existence 
    Check HTTP Response Body Json Schema Is    grant
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available
 

Requests a grant for a particular VNF lifecycle operation - Synchronous mode using targetScaleLevelInfo for Target size
    [Documentation]    Test ID: 7.3.2.1.9
@@ -134,6 +141,8 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode usi
    Check HTTP Response Status Code Is    201
    Check Operation Occurrence Id existence 
    Check HTTP Response Body Json Schema Is    grant 
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available   

Requests a grant for a particular VNF lifecycle operation - Synchronous mode using attribute addResources for Target size
    [Documentation]    Test ID: 7.3.2.1.10
@@ -148,6 +157,8 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode usi
    Check HTTP Response Status Code Is    201
    Check Operation Occurrence Id existence 
    Check HTTP Response Body Json Schema Is    grant
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available

Requests a grant for a particular VNF lifecycle operation - Synchronous mode with permitted authorization scope
    [Documentation]    Test ID: 7.3.2.1.11
@@ -162,6 +173,8 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode wit
    Check HTTP Response Status Code Is    201
    Check Operation Occurrence Id existence 
    Check HTTP Response Body Json Schema Is    grant
    Check HTTP Response Header Contains    Location
    Check Postcondition Resource Returned in Location Header Is Available

Requests a grant for a particular VNF lifecycle operation - Synchronous mode with not permitted authorization scope
    [Documentation]    Test ID: 7.3.2.1.12
+10 −0
Original line number Diff line number Diff line
@@ -143,6 +143,16 @@ 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    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/grant.schema.json    ${result}
    Log    resource validated
 
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    Run Keyword If    '${input}' == 'ProblemDetails'    Should Contain    ${response['headers']['Content-Type']}    application/problem+json