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

refactoring completed SOL5 + documentation SOL3... missing workflow

parent b44cfed2
...@@ -38,16 +38,17 @@ Post Cancel operation task Conflict ...@@ -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
......
...@@ -10,7 +10,7 @@ Suite Setup Check resource existance ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
......
...@@ -5,6 +5,7 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ...@@ -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 ...@@ -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
......
...@@ -4,56 +4,72 @@ Resource environment/variables.txt ...@@ -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
......
...@@ -4,57 +4,66 @@ Resource environment/variables.txt ...@@ -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
Get stauts information about multiple VNF instances ... Post-Conditions: none
[Documentation] Get Operation Status Post Individual VNF LCM OP occurences
... The client can use this method to retrieve status information about a VNF lifecycle management operation occurrence Check HTTP Response Status Code Is 405
... by reading an individual �VNF LCM operation occurrence� resource.
Log Query status information about multiple VNF lifecycle management operation occurrences. Get status information about multiple VNF instances
Set Headers {"Accept":"${ACCEPT}"} [Documentation] Test ID: 7.3.1.12.2
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ... Test title: Get status information about multiple VNF instances
Log Execute Query and validate response ... Test objective: The objective is to test that this method retrieve status information about a VNF lifecycle management operation occurrence
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId} ... Pre-conditions: none
Log Validate Status code ... Reference: section 5.4.13.3.2 - SOL003 v2.4.1
Integer response status 200 ... Config ID: Config_prod_VNFM
${contentType}= Output response headers Content-Type ... Applicability: none
Should Contain ${contentType} ${CONTENT_TYPE} ... Post-Conditions: none
${result}= Output response body Get multiple VNF instances
Validate Json VnfLcmOpOcc.schema.json ${result} Check HTTP Response Status Code Is 200
Log Validation OK Check HTTP Response Body Json Schema Is VnfLcmOpOcc
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
...@@ -3,6 +3,7 @@ Suite Setup Create Sessions ...@@ -3,6 +3,7 @@ Suite Setup Create Sessions
Suite Teardown Terminate All Processes kill=true Suite Teardown Terminate All Processes kill=true
Resource environment/configuration.txt Resource environment/configuration.txt
Resource environment/variables.txt Resource environment/variables.txt
Resource VnfLcmMntOperationKeywords.robot
Library MockServerLibrary Library MockServerLibrary
Library Process Library Process
Library OperatingSystem Library OperatingSystem
...@@ -13,77 +14,86 @@ ${sleep_interval} 20s ...@@ -13,77 +14,86 @@ ${sleep_interval} 20s
*** Test Cases *** *** Test Cases ***
Deliver a notification - Operation Occurence Deliver a notification - Operation Occurence
log The POST method delivers a notification from the server to the client. [Documentation] Test ID: 7.3.1.19.1
${json}= Get File schemas/vnfLcmOperationOccurrenceNotification.schema.json ... Test title: POST Deliver a notification - Operation Occurence
${BODY}= evaluate json.loads('''${json}''') json ... Test objective: The objective is to test that POST method trigger a notification about lifecycle changes triggered by a VNF LCM
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification operation occurrence
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} ... Pre-conditions: none
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 ... Reference: section 5.4.20.3.1 - SOL005 v2.4.1
Create Mock Expectation ${req} ${rsp} ... Config ID: Config_prod_NFVO
Sleep ${sleep_interval} ... Applicability: none
Log Verifying results ... Post-Conditions: none
Verify Mock Expectation ${req} POST Operation occurrence
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
Deliver a notification - Id Creation Deliver a notification - Id Creation
log The POST method delivers a notification from the server to the client. [Documentation] Test ID: 7.3.1.19.2
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json ... Test title: Deliver a notification - Id Creation
${BODY}= evaluate json.loads('''${json}''') json ... Test objective: The objective is to test that POST method trigger a notification about the creation of a VNF identifier and the related to a VNF instance resource.
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification ... Pre-conditions: none
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} ... Reference: section 5.4.20.3.1 - SOL005 v2.4.1
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 ... Config ID: Config_prod_NFVO
Create Mock Expectation ${req} ${rsp} ... Applicability: none
Sleep ${sleep_interval} ... Post-Conditions: none
Log</