Commit e434010e authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[fix-test][SOL005][NS-FM][v5.2.1][5.3.3.x.y Test-IDs] fix - check Location...

[fix-test][SOL005][NS-FM][v5.2.1][5.3.3.x.y Test-IDs] fix - check Location Header and resource availability in SOL005 NS FM - item #8 in NFVSOL(25)000288
parent 09494b2b
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -290,6 +290,18 @@ POST Subscription
    #Run Keyword If    ${NFVO_CHECKS_NOTIF_ENDPOINT} == 1    #removed as the check of notif endpoint is done by NFVO while processing subscription reques
    #...    Check Notification Endpoint 

Check Postcondition FmSubscription Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    REST.GET    ${response['headers']['Location']}
    Integer    response status    200
    Log    Received a 200 OK as expected
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    FmSubscription.schema.json    ${result}
    Log    Validated FmSubscription schema

# Post Create subscription - DUPLICATION
    # Log    Trying to create a subscription with an already created content
    # Pass Execution If    ${VNFM_ALLOWS_DUPLICATE_SUBS} == 0    NVFO is not permitting duplication. Skipping the test
@@ -547,6 +559,11 @@ Check HTTP Response Header Contains Location
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}

Check HTTP Response Header Contains
    [Arguments]    ${CONTENT_TYPE}
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Log    Header is present

GET Alarm With Filter "id"
	Log    Query NFVO The GET method queries information about multiple alarms with filter "id".
	Set Headers  {"Accept":"${ACCEPT}"}  
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ Create a new alarm subscription
    Check HTTP Response Status Code Is    201
    Check Operation Occurrence Id
    Check HTTP Response Body Json Schema Is  FmSubscription
    Check HTTP Response Header Contains    Location
    Check Postcondition FmSubscription Resource Returned in Location Header Is Available
    
Create a duplicated Subscription
     [Documentation]    Test ID: 5.3.3.3.2