Commit 90004c2b authored by aureliano sinatra's avatar aureliano sinatra
Browse files

refactoring completed SOL5 + documentation SOL3... missing workflow

parent b44cfed2
Loading
Loading
Loading
Loading
+9 −8
Original line number Original line Diff line number Diff line
@@ -38,16 +38,17 @@ Post Cancel operation task Conflict


Post Cancel operation task Not Found
Post Cancel operation task Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    [Documentation]    Not Found
     [Documentation]    Test ID: 7.3.1.16.2
    ...    Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists. 
    ...    Test title: POST Cancel operation task
    ...    Specifically in case of this task resource, the response code 404 shall also be returned 
    ...    Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the operation is not supported
    ...    if the task is not supported for the VNF LCM operation occurrence represented by the parent resource, 
    ...    Pre-conditions: 
    ...    which means that the task resource consequently does not exist. 
    ...    Reference:  section 5.4.17.3.1 - SOL003 v2.4.1
    ...    In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the �detail� attribute shall convey more information about the error.
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null  
    [Setup]    Check Fail not supported
    [Setup]    Check Fail not supported
    POST Cancel operation task
    POST Cancel operation task
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
GET Cancel operation task - Method not implemented
GET Cancel operation task - Method not implemented
    [Documentation]    Test ID: 7.3.1.16.3
    [Documentation]    Test ID: 7.3.1.16.3
    ...    Test title: GET Cancel operation task - Method not implemented
    ...    Test title: GET Cancel operation task - Method not implemented
+5 −5
Original line number Original line Diff line number Diff line
@@ -10,7 +10,7 @@ Suite Setup Check resource existance


*** Test Cases ***
*** Test Cases ***
POST Change external VNF connectivity 
POST Change external VNF connectivity 
    [Documentation]    Test ID: 7.3.1.14.1
    [Documentation]    Test ID: 7.3.1.10.1
    ...    Test title: POST Change external VNF connectivity
    ...    Test title: POST Change external VNF connectivity
    ...    Test objective: The objective is to test that POST method trigger a change in VNF external connectivity
    ...    Test objective: The objective is to test that POST method trigger a change in VNF external connectivity
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -23,7 +23,7 @@ POST Change external VNF connectivity
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    
    
GET Change external VNF connectivity - Method not implemented
GET Change external VNF connectivity - Method not implemented
    [Documentation]    Test ID: 7.3.1.14.2
    [Documentation]    Test ID: 7.3.1.10.2
    ...    Test title: GET Change external VNF connectivity - Method not implemented
    ...    Test title: GET Change external VNF connectivity - Method not implemented
    ...    Test objective: The objective is to test that GET method is not implemented
    ...    Test objective: The objective is to test that GET method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -35,7 +35,7 @@ GET Change external VNF connectivity - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PUT Change external VNF connectivity - Method not implemented
PUT Change external VNF connectivity - Method not implemented
    [Documentation]    Test ID: 7.3.1.14.3
    [Documentation]    Test ID: 7.3.1.10.3
    ...    Test title: PUT Change external VNF connectivity - Method not implemented
    ...    Test title: PUT Change external VNF connectivity - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -47,7 +47,7 @@ PUT Change external VNF connectivity - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Change external VNF connectivity - Method not implemented
PATCH Change external VNF connectivity - Method not implemented
    [Documentation]    Test ID: 7.3.1.14.4
    [Documentation]    Test ID: 7.3.1.10.4
    ...    Test title: PATCH Change external VNF connectivity - Method not implemented
    ...    Test title: PATCH Change external VNF connectivity - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -59,7 +59,7 @@ PATCH Change external VNF connectivity - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
DELETE Change external VNF connectivity - Method not implemented
DELETE Change external VNF connectivity - Method not implemented
    [Documentation]    Test ID: 7.3.1.14.5
    [Documentation]    Test ID: 7.3.1.10.5
    ...    Test title: DELETE Change external VNF connectivity - Method not implemented
    ...    Test title: DELETE Change external VNF connectivity - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
+74 −58
Original line number Original line Diff line number Diff line
@@ -5,6 +5,7 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library    DependencyLibrary
Library    DependencyLibrary
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Resource    VnfLcmMntOperationKeywords.robot
Documentation    This task resource represents the "Fail operation" operation. 
Documentation    This task resource represents the "Fail operation" operation. 
...    The client can use this resource to mark a VNF lifecycle management operation occurrence as "finally failed", 
...    The client can use this resource to mark a VNF lifecycle management operation occurrence as "finally failed", 
...    i.e. change the state of the related VNF LCM operation occurrence resource to "FAILED", if it is not assumed that a subsequent retry or rollback will succeed. 
...    i.e. change the state of the related VNF LCM operation occurrence resource to "FAILED", if it is not assumed that a subsequent retry or rollback will succeed. 
@@ -13,80 +14,95 @@ Suite Setup Check resource existance


*** Test Cases ***
*** Test Cases ***
Post Fail operation task  
Post Fail operation task  
    [Documentation]    The POST method marks a VNF lifecycle management operation occurrence as "finally failed" if that operation occurrence is in "FAILED_TEMP" state.
    [Documentation]    Test ID: 7.3.1.15.1
    Log    Final fail a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    Test title: Post Fail operation task
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is to test that POST method mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
    Log    Execute Query and validate response
    ...    Pre-conditions: the related "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
    Post    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    ...    Reference:  section 5.4.16.3.1 - SOL003 v2.4.1
    Output    response
    ...    Config ID: Config_prod_VNFM
    Log    Validate Status code
    ...    Applicability: none
    Integer    response status    200
    ...    Post-Conditions: none 
    Log    Validation OK
    Depends on test    Check resource FAILED_TEMP
    Post Fail operation
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id


Post Fail operation task Conflict (Not-FAILED_TEMP)
Post Fail operation task Conflict (Not-FAILED_TEMP)
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
    [Documentation]    Conflict. 
    [Documentation]    Test ID: 7.3.1.15.2
    ...    The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource. 
    ...    Test title: Post Fail operation task
    ...    Typically, this is due to the fact that the VNF instance resource is not in FAILED_TEMP state, 
    ...    Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    or another error handling action is starting, such as retry or rollback. 
    ...    Pre-conditions: the related "VNF LCM operation occurrence" resource is not in "FAILED_TEMP" state.
    ...    The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
    ...    Reference:  section 5.4.16.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none     
    Depends on test failure  Check resource FAILED_TEMP
    Depends on test failure  Check resource FAILED_TEMP
    Log    Final Fail an operation
    Post Fail operation
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Check HTTP Response Status Code Is    409
    Post    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Integer    response status    409
    Log    Status code validated
    ${problemDetails}=    Output    response body
    Validate Json    ProblemDetails.schema.json    ${problemDetails}
    Log    Validation OK




Post Fail operation task Not Found
Post Fail operation task Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    [Documentation]    Not Found
    [Documentation]    Test ID: 7.3.1.15.3
    ...    Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists. 
    ...    Test title: Post Fail operation task
    ...    Specifically in case of this task resource, the response code 404 shall also be returned 
    ...    Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation because the operation is not supported
    ...    if the task is not supported for the VNF LCM operation occurrence represented by the parent resource, 
    ...    Pre-conditions: 
    ...    which means that the task resource consequently does not exist. 
    ...    Reference:  section 5.4.16.3.1 - SOL003 v2.4.1
    ...    In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the �detail� attribute shall convey more information about the error.
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    [Setup]    Check Fail not supported
    [Setup]    Check Fail not supported
    log    Final fail an operation
    Post Fail operation
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Check HTTP Response Status Code Is    404
    Post    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    Log    Validate Status code
    Integer    response status    409
    ${problemDetails}=    Output    response body
    Validate Json    ProblemDetails.schema.json    ${problemDetails}
    Log    Validation OK


GET Fail operation task - Method not implemented
GET Fail operation task - Method not implemented
    log    Trying to perform a GET. This method should not be implemented
     [Documentation]    Test ID: 7.3.1.15.4
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test title: GET Fail operation task- Method not implemented
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    ...    Test objective: The objective is to verify that the method is not implemented 
    Log    Validate Status code
    ...    Pre-conditions: none
    Integer    response status    405
    ...    Reference:  section 5.4.16.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: 
    Get Fail operation
    Check HTTP Response Status Code Is    405


PUT Fail operation task - Method not implemented
PUT Fail operation task - Method not implemented
    log    Trying to perform a PUT. This method should not be implemented
     [Documentation]    Test ID: 7.3.1.15.5
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test title: PUT Fail operation task- Method not implemented
    Put    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    ...    Test objective: The objective is to verify that the method is not implemented 
    Log    Validate Status code
    ...    Pre-conditions: none
    Integer    response status    405
    ...    Reference:  section 5.4.16.3.3 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: 
    Put Fail operation
    Check HTTP Response Status Code Is    405


PATCH Fail operation task - Method not implemented
PATCH Fail operation task - Method not implemented
    log    Trying to perform a PATCH. This method should not be implemented
     [Documentation]    Test ID: 7.3.1.15.6
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test title: GET Fail operation task- Method not implemented
    Patch    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    ...    Test objective: The objective is to verify that the method is not implemented 
    Log    Validate Status code
    ...    Pre-conditions: none
    Integer    response status    405
    ...    Reference:  section 5.4.16.3.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: 
    Patch Fail operation
    Check HTTP Response Status Code Is    405
    
    
DELETE Fail operation task - Method not implemented
DELETE Fail operation task - Method not implemented
    log    Trying to perform a DELETE. This method should not be implemented
     [Documentation]    Test ID: 7.3.1.15.7
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test title: DELETE Fail operation task- Method not implemented
    Delete    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
    ...    Test objective: The objective is to verify that the method is not implemented 
    Log    Validate Status code
    ...    Pre-conditions: none
    Integer    response status    405
    ...    Reference:  section 5.4.16.3.5 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: 
    Delete Fail operation
    Check HTTP Response Status Code Is    405


*** Keywords ***
*** Keywords ***
Check resource existance
Check resource existance
+53 −37
Original line number Original line Diff line number Diff line
@@ -4,56 +4,72 @@ Resource environment/variables.txt
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Resource    VnfLcmMntOperationKeywords.robot
Documentation    This resource represents an individual subscription. The client can use this resource to read and to terminate a
Documentation    This resource represents an individual subscription. The client can use this resource to read and to terminate a
...    subscription to notifications related to VNF lifecycle management
...    subscription to notifications related to VNF lifecycle management
Suite Setup    Check resource existance
Suite Setup    Check resource existance


*** Test Cases ***
*** Test Cases ***
Post Individual Subscription - Method not implemented
Post Individual Subscription - Method not implemented
    log    Trying to perform a POST. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.18.1
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: Post Individual Subscription - Method not implemented
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    ...    Test objective: The objective is to test that the method is not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Pre-conditions: none
    Post    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}  
    ...    Reference:  section 5.4.19.3.1 - SOL003 v2.4.1
    Log    Validate Status code
    ...    Config ID: Config_prod_VNFM
    Integer    response status    405
    ...    Applicability: none
    ...    Post-Conditions: none 
    Post Create Individual subscription
	Check HTTP Response Status Code Is    405


Get Information about an individual subscription
GET Individual Subscription
    log    Trying to get information about an individual subscription
    [Documentation]    Test ID: 7.3.1.18.2
    Set Headers    {"Accept":"${ACCEPT}"}  
    ...    Test title: GET Individual Subscription
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is Get the an individual subscription
    Get    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
    ...    Pre-conditions: none
    Log    Validate Status code
    ...    Reference:  section 5.4.19.3.2 - SOL003 v2.4.1
    Integer    response status    200
    ...    Config ID: Config_prod_VNFM
    ${result}=    Output    response body
    ...    Applicability: none
    Validate Json    Subscription.schema.json    ${result}
    ...    Post-Conditions: none 
    Log    Validation OK
    Get Individual Subscription
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    Subscription


PUT an individual subscription - Method not implemented
PUT an individual subscription - Method not implemented
    log    Trying to perform a PUT. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.18.3
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: PUT Individual Subscription - Method not implemented
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    ...    Test objective: The objective is to test that the method is not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Pre-conditions: none
    Put    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}    
    ...    Reference:  section 5.4.19.3.3 - SOL003 v2.4.1
    Log    Validate Status code
    ...    Config ID: Config_prod_VNFM
    Integer    response status    405
    ...    Applicability: none
    ...    Post-Conditions: none 
    Put Individual subscription
	Check HTTP Response Status Code Is    405


PATCH an individual subscription - Method not implemented
PATCH an individual subscription - Method not implemented
    log    Trying to perform a PATCH. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.18.4
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: PATCH Individual Subscription - Method not implemented
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    ...    Test objective: The objective is to test that the method is not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Pre-conditions: none
    Patch    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}    
    ...    Reference:  section 5.4.19.3.4 - SOL003 v2.4.1
    Log    Validate Status code
    ...    Config ID: Config_prod_VNFM
    Integer    response status    405
    ...    Applicability: none
    ...    Post-Conditions: none 
    Patch Individual subscription
	Check HTTP Response Status Code Is    405    
    
    
DELETE an individual subscription
DELETE an individual subscription
    log    Try to delete an individual subscription
     [Documentation]    Test ID: 7.3.1.18.5
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: DELETE Individual Subscription - Method not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is to test that the method is not implemented
    Delete    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}    
    ...    Pre-conditions: none
    Log    Validate Status code
    ...    Reference:  section 5.4.19.3.5 - SOL003 v2.4.1
    Integer    response status    204
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Delete Individual subscription
	Check HTTP Response Status Code Is    405


*** Keywords ***
*** Keywords ***
Check resource existance
Check resource existance
+57 −48
Original line number Original line Diff line number Diff line
@@ -4,57 +4,66 @@ Resource environment/variables.txt
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}    
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Documentation    This resource represents a VNF lifecycle management operation occurrence. The client can use this resource to read
Resource    VnfLcmMntOperationKeywords.robot
...    status information about an individual VNF lifecycle management operation occurrence. Further, the client can use task
...    resources which are children of this resource to request cancellation of an operation in progress, and to request the
...    handling of operation errors via retrying the operation, rolling back the operation, or permanently failing the operation


*** Test Cases ***
*** Test Cases ***
Post Individual VNF LCM OP occurences - Method not implemented
Post Individual VNF LCM OP occurences - Method not implemented
    log    Trying to perform a POST. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.12.1
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: Post Individual VNF LCM OP occurences - Method not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is to test that POST method is not implemented
    Post    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ...    Pre-conditions: none
    Log    Validate Status code
    ...    Reference:  section 5.4.13.3.1 - SOL003 v2.4.1
    Integer    response status    405
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Post Individual VNF LCM OP occurences
    Check HTTP Response Status Code Is    405
    
    
Get stauts information about multiple VNF instances  
Get status information about multiple VNF instances 
    [Documentation]    Get Operation Status
    [Documentation]    Test ID: 7.3.1.12.2
    ...    The client can use this method to retrieve status information about a VNF lifecycle management operation occurrence 
    ...    Test title: Get status information about multiple VNF instances
    ...    by reading an individual �VNF LCM operation occurrence� resource.
    ...    Test objective: The objective is to test that this method retrieve status information about a VNF lifecycle management operation occurrence 
    Log    Query status information about multiple VNF lifecycle management operation occurrences.
    ...    Pre-conditions: none
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Reference:  section 5.4.13.3.2 - SOL003 v2.4.1
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Config ID: Config_prod_VNFM
    Log    Execute Query and validate response
    ...    Applicability: none
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ...    Post-Conditions: none 
    Log    Validate Status code
    Get multiple VNF instances
    Integer    response status    200
    Check HTTP Response Status Code Is    200
    ${contentType}=    Output    response headers Content-Type
    Check HTTP Response Body Json Schema Is    VnfLcmOpOcc 
    Should Contain    ${contentType}    ${CONTENT_TYPE}
    ${result}=    Output    response body
    Validate Json    VnfLcmOpOcc.schema.json    ${result}
    Log    Validation OK


PUT stauts information about multiple VNF instances - Method not implemented 
PUT status information about multiple VNF instances - Method not implemented
    log    Trying to perform a PUT. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.12.3
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: Put Individual VNF LCM OP occurences - Method not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is to test that PUT method is not implemented
    Put    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ...    Pre-conditions: none
    Log    Validate Status code
    ...    Reference:  section 5.4.13.3.3 - SOL003 v2.4.1
    Integer    response status    405
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    Put multiple VNF instances
    Check HTTP Response Status Code Is    405


PATCH stauts information about multiple VNF instances - Method not implemented 
PATCH status information about multiple VNF instances - Method not implemented 
    log    Trying to perform a PATCH. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.12.4
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: Patch Individual VNF LCM OP occurences - Method not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is to test that PATCH method is not implemented
    Patch    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ...    Pre-conditions: none
    Log    Validate Status code
    ...    Reference:  section 5.4.13.3.4 - SOL003 v2.4.1
    Integer    response status    405
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none      
    Patch multiple VNF instances
    Check HTTP Response Status Code Is    405
    
    
DELETE stauts information about multiple VNF instances - Method not implemented 
DELETE status information about multiple VNF instances - Method not implemented 
    log    Trying to perform a DELETE. This method should not be implemented
    [Documentation]    Test ID: 7.3.1.12.5
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test title: Delete Individual VNF LCM OP occurences - Method not implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Test objective: The objective is to test that DELETE method is not implemented
    Delete    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ...    Pre-conditions: none
    Log    Validate Status code
    ...    Reference:  section 5.4.13.3.5 - SOL003 v2.4.1
    Integer    response status    405
    ...    Config ID: Config_prod_VNFM
 No newline at end of file
    ...    Applicability: none
    ...    Post-Conditions: none  
    Delete multiple VNF instances
    Check HTTP Response Status Code Is    405
 No newline at end of file
Loading