Commit 0b0f73e1 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[fix-test][SOL009][NFVMANO-FM][v5.2.1][8.3.4.x.y Test-IDs] fix - check...

[fix-test][SOL009][NFVMANO-FM][v5.2.1][8.3.4.x.y Test-IDs] fix - check Location Header and resource availability in SOL009 NFVMANO Log Management - item #8 in NFVSOL(25)000288
parent 36203666
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ Request to compile the logged data into a file - Synchronous mode
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains Location
    Check HTTP Response Body Json Schema Is    LogReport
    Check Postcondition Log Report Resource Returned in Location Header Is Available

Request to compile the logged data into a file - Asynchronous mode
    [Documentation]    Test ID: 8.3.4.4.2
@@ -29,6 +30,7 @@ Request to compile the logged data into a file - Asynchronous mode
    Send Log data Request in Asynchronous mode
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains Location
    Check Postcondition Log Report Resource Returned in Location Header Is Available
    Check postcondition Wait for compilation success notification 
    
Request to compile the logged data into a file - Already Processing
@@ -43,6 +45,7 @@ Request to compile the logged data into a file - Already Processing
    Send Log data Request
    Check HTTP Response Status Code Is    303
    Check HTTP Response Header Contains Location
    Check Postcondition Log Report Resource Returned in Location Header Is Available
    
Request to compile the logged data into a file with unprocessable content
        [Documentation]    Test ID: 8.3.4.4.4
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ POST Create a new logging job
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is    LoggingJob
    Check Postcondition Logging Job Resource Returned in Location Header Is Available
    Check Post-Condition Logging job is created
    
GET information about logging jobs 
+23 −1
Original line number Diff line number Diff line
@@ -648,6 +648,28 @@ Check Postcondition Subscription Resource Returned in Location Header Is Availab
    Validate Json    LogmSubscription.schema.json    ${result}
    Log    Validated LogmSubscription schema

Check Postcondition Logging Job Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    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    LoggingJob.schema.json    ${result}
    Log    Validated LoggingJob schema

Check Postcondition Log Report Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    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    LogReport.schema.json    ${result}
    Log    Validated LogReport schema

Send Put Request for Subscriptions
    [Documentation]    This method is not supported. When this method is requested on this resource, the NFV-MANO shall return a "405 Method
    ...    Not Allowed" response as defined in clause 4.3.5.4.