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

[fix][SOL003][VNF-VIRT-RES-QUOTA][ v5.2.1] [7.3.7.1.1..13 Test-IDs] Fix...

[fix][SOL003][VNF-VIRT-RES-QUOTA][ v5.2.1] [7.3.7.1.1..13 Test-IDs] Fix Location Header identifier across VIRT-RES-QUOTA APIs
parent dfa190ca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ Create new Virtualised Resources Quota Available Notification subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is    VrQuotaAvailSubscription
    Check Postcondition Subscription Resource Returned in Location Header Is Available

    
Create new Virtualised Resources Quota Available Notification subscription - DUPLICATION
    [Documentation]    Test ID: 7.3.7.1.2
@@ -37,6 +39,7 @@ Create new Virtualised Resources Quota Available Notification subscription - DUP
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is    VrQuotaAvailSubscription
    Check Postcondition Subscription Resource Returned in Location Header Is Available
    
Create new Virtualised Resources Quota Available Notification subscription - NO-DUPLICATION
    [Documentation]    Test ID: 7.3.7.1.3
@@ -190,6 +193,8 @@ Create new Virtualised Resources Quota Available Notification subscription with
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is    VrQuotaAvailSubscription
    Check Postcondition Subscription Resource Returned in Location Header Is Available


Create new Virtualised Resources Quota Available Notification subscription with not permitted authorization scope 
    [Documentation]    Test ID: 7.3.7.1.14
+9 −0
Original line number Diff line number Diff line
@@ -41,6 +41,15 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
    
Check Postcondition Subscription Resource Returned in Location Header Is Available
    Log    Fetching  subscription 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/VrQuotaAvailSubscription.schema.json    ${result}
    Log    subscription resource validated
Check HTTP Response Header ContentType is 
    [Arguments]    ${expected_contentType}
    Log    Validate content type