Commit e5c19d11 authored by Najam UI Hassan's avatar Najam UI Hassan Committed by Giacomo Bernini
Browse files

fixed issues

parent 11fe57a5
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ Request to compile the logged data into a file - Synchronous mode
    [Documentation]    Test ID: 8.3.4.4.1
    ...    Test title: Request to compile the logged data into a file - Synchronous mode
    ...    Test objective: The objective is to request to compile the logged data into a file in synchronous mode and perform a JSON schema validation on the returned log report data structure
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: The NFV-MANO can decide immediately what to respond to a compile request
@@ -27,7 +27,7 @@ Request to compile the logged data into a file - Asynchronous mode
    [Documentation]    Test ID: 8.3.4.4.2
    ...    Test title: Request to compile the logged data into a file - Asynchronous mode
    ...    Test objective: The objective is to request to compile the logged data into a file in asynchronous mode and perform a JSON schema validation on the returned log report data structure
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: The NFV-MANO can not decide immediately what to respond to a compile request
@@ -41,11 +41,11 @@ Request to compile the logged data into a file - Already Processing
    [Documentation]    Test ID: 8.3.4.4.3
    ...    Test title: Request to compile the logged data into a file - Already Processing
    ...    Test objective: The objective is to request to compile the logged data into a file when a log data compilation and report creation is already ongoing, or a log report has just been created, for the specified logging job at the time of processing the request and perform a JSON schema validation on the returned log report data structure
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: 
    ...    Post-Conditions: 
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Log data Request
    Check HTTP Response Status Code Is    303
    Check Operation Occurrence Id
@@ -54,7 +54,7 @@ Request to compile the logged data into a file with unprocessable entity
        [Documentation]    Test ID: 8.3.4.4.4
    ...    Test title: Request to compile the logged data into a file with unprocessable entity
    ...    Test objective:  The objective is to test that the rrequest to compile the logged data into a file fails when error in request body. 
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
@@ -67,11 +67,11 @@ GET Compiled Log Data - Method not implemented
    [Documentation]    Test ID: 8.3.4.4.5
    ...    Test title: GET Compiled Log Data - Method not implemented
    ...    Test objective: The objective is to test that GET method is not allowed to retrieve compiled log data.
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Send Get Compiled Log Data
    Check HTTP Response Status Code Is    405
    
@@ -79,11 +79,11 @@ PUT Compiled Log Data - Method not implemented
    [Documentation]    Test ID: 8.3.4.4.6
    ...    Test title: PUT Compiled Log Data - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to update compiled log data.
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Send PUT Compiled Log Data
    Check HTTP Response Status Code Is    405
    
@@ -91,11 +91,11 @@ PATCH Compiled Log Data - Method not implemented
    [Documentation]    Test ID: 8.3.4.4.7
    ...    Test title: PATCH Compiled Log Data - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to update compiled log data.
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Send PATCH Compiled Log Data
    Check HTTP Response Status Code Is    405
    
@@ -103,11 +103,11 @@ DELETE Compiled Log Data - Method not implemented
    [Documentation]    Test ID: 8.3.4.4.8
    ...    Test title: DELETE Compiled Log Data - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not allowed to update compiled log data.
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.6.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Send DELETE Compiled Log Data
    Check HTTP Response Status Code Is    405
    
 No newline at end of file
+3 −2
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ POST Individual Logging Job - Method not implemented
    [Documentation]    Test ID: 8.3.4.2.1
    ...    Test title: POST Individual Logging Job - method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed to create an Indiviual Logging
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.4.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
@@ -31,7 +31,7 @@ GET individual Logging Job
    ...    Post-Conditions: none
    GET individual Logging Job
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   PmJob
    Check HTTP Response Body Json Schema Is   LoggingJob
    Check HTTP Response Body Logging Job Identifier matches the requested Logging Job

GET individual Logging Job with invalid resource identifier
@@ -95,3 +95,4 @@ DELETE Individual Logging Job with invalid resource identifier
    ...    Post-Conditions: none
    Send Delete request for individual Logging Job with invalid resource identifier
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ Get Individual Log Report with invalid resource endpoint
    ...    Post-Conditions: none
    Get Individual Log Report with invalid resource endpoint
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails

PUT Individual Log Report - Method not implemented
    [Documentation]    Test ID: 8.3.4.3.5
+4 −4
Original line number Diff line number Diff line
@@ -11,10 +11,10 @@ POST Create a new logging job
    [Documentation]    Test ID: 8.3.4.1.1
    ...    Test title: POST Create a new logging job
    ...    Test objective: The objective is to create a new logging job
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: clause 8.5.3.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: logging job created
    POST Create a new logging job
    Check HTTP Response Status Code Is    201
@@ -28,8 +28,8 @@ GET information about logging jobs
    ...    Pre-conditions: At least one logging job is created.
    ...    Reference: clause 8.5.3.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: 
    ...    Post-Conditions:  
    ...    Applicability: none
    ...    Post-Conditions:  none
    GET Logging Jobs
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    LoggingJobs
+2 −4
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ GET Logging Jobs with fields attribute selector
    Set Suite Variable    ${response}    ${output}
    
GET Logging Jobs with exclude_fields attribute selector
    Log    Query VNF The GET method queries information about multiple alarms, using fields
    Log    Query NFV-MANO The GET method queries information about multiple alarms, using fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/log_jobs?exclude_fields=${fields}
@@ -150,7 +150,7 @@ Check Postcondition Logging Job is not Created
    Check HTTP Response Status Code Is    404

GET individual Logging Job
    Log    Trying to get a Pm Job 
    Log    Trying to get a Logging Job 
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/log_jobs/${logJobId}
@@ -413,8 +413,6 @@ Send Post Request for Subscription
    POST    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions    ${body_request}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Run Keyword If    ${NFVMANO_CHECKS_NOTIF_ENDPOINT} == 1
    ...       Check Notification Endpoint

Check HTTP Response Body LogmSubscription Attributes Values Match the Issued Subscription
    Log    Check Response matches subscription
Loading