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
Post Cancel operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation] Not Found
... Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
... Specifically in case of this task resource, the response code 404 shall also be returned
... if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
... which means that the task resource consequently does not exist.
... 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.
[Documentation] Test ID: 7.3.1.16.2
... Test title: POST Cancel operation task
... Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the operation is not supported
... Pre-conditions:
... Reference: section 5.4.17.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: in response header Location should not be null
[Setup] Check Fail not supported
POST Cancel operation task
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
Check HTTP Response Status Code Is 404
GET Cancel operation task - Method not implemented
[Documentation] Test ID: 7.3.1.16.3
... Test title: GET Cancel operation task - Method not implemented
......
......@@ -10,7 +10,7 @@ Suite Setup Check resource existance
*** Test Cases ***
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 objective: The objective is to test that POST method trigger a change in VNF external connectivity
... Pre-conditions: none
......@@ -23,7 +23,7 @@ POST Change external VNF connectivity
Check Operation Occurrence Id
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 objective: The objective is to test that GET method is not implemented
... Pre-conditions: none
......@@ -35,7 +35,7 @@ GET Change external VNF connectivity - Method not implemented
Check HTTP Response Status Code Is 405
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 objective: The objective is to test that PUT method is not implemented
... Pre-conditions: none
......@@ -47,7 +47,7 @@ PUT Change external VNF connectivity - Method not implemented
Check HTTP Response Status Code Is 405
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 objective: The objective is to test that PATCH method is not implemented
... Pre-conditions: none
......@@ -59,7 +59,7 @@ PATCH Change external VNF connectivity - Method not implemented
Check HTTP Response Status Code Is 405
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 objective: The objective is to test that DELETE method is not implemented
... Pre-conditions: none
......
......@@ -5,6 +5,7 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library DependencyLibrary
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Resource VnfLcmMntOperationKeywords.robot
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",
... 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 ***
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.
Log Final fail a VNF lifecycle operation if that operation has experienced a temporary failure
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Log Execute Query and validate response
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
Output response
Log Validate Status code
Integer response status 200
Log Validation OK
[Documentation] Test ID: 7.3.1.15.1
... Test title: Post Fail operation task
... 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
... Pre-conditions: the related "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
... Reference: section 5.4.16.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
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)
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[Documentation] Conflict.
... The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
... Typically, this is due to the fact that the VNF instance resource is not in FAILED_TEMP state,
... or another error handling action is starting, such as retry or rollback.
... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
[Documentation] Test ID: 7.3.1.15.2
... Test title: Post Fail operation task
... 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
... Pre-conditions: the related "VNF LCM operation occurrence" resource is not in "FAILED_TEMP" state.
... 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
Log Final Fail an operation
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
Integer response status 409
Log Status code validated
${problemDetails}= Output response body
Validate Json ProblemDetails.schema.json ${problemDetails}
Log Validation OK
Post Fail operation
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
Post Fail operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation] Not Found
... Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
... Specifically in case of this task resource, the response code 404 shall also be returned
... if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
... which means that the task resource consequently does not exist.
... 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.
[Documentation] Test ID: 7.3.1.15.3
... Test title: Post Fail operation task
... 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
... Pre-conditions:
... Reference: section 5.4.16.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
[Setup] Check Fail not supported
log Final fail an operation
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
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
Post Fail operation
Check HTTP Response Status Code Is 404
GET Fail operation task - Method not implemented
log Trying to perform a GET. This method should not be implemented
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.15.4
... Test title: GET Fail operation task- Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... 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
log Trying to perform a PUT. This method should not be implemented
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.15.5
... Test title: PUT Fail operation task- Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... 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
log Trying to perform a PATCH. This method should not be implemented
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.15.6
... Test title: GET Fail operation task- Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... 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
log Trying to perform a DELETE. This method should not be implemented
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/fail
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.15.7
... Test title: DELETE Fail operation task- Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... 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 ***
Check resource existance
......
......@@ -4,56 +4,72 @@ Resource environment/variables.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library JSONLibrary
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
... subscription to notifications related to VNF lifecycle management
Suite Setup Check resource existance
*** Test Cases ***
Post Individual Subscription - Method not implemented
log Trying to perform a POST. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.18.1
... Test title: Post Individual Subscription - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: none
... Reference: section 5.4.19.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Post Create Individual subscription
Check HTTP Response Status Code Is 405
Get Information about an individual subscription
log Trying to get information about an individual subscription
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
Log Validate Status code
Integer response status 200
${result}= Output response body
Validate Json Subscription.schema.json ${result}
Log Validation OK
GET Individual Subscription
[Documentation] Test ID: 7.3.1.18.2
... Test title: GET Individual Subscription
... Test objective: The objective is Get the an individual subscription
... Pre-conditions: none
... Reference: section 5.4.19.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
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
log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.18.3
... Test title: PUT Individual Subscription - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: none
... Reference: section 5.4.19.3.3 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Put Individual subscription
Check HTTP Response Status Code Is 405
PATCH an individual subscription - Method not implemented
log Trying to perform a PATCH. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
Log Validate Status code
Integer response status 405
[Documentation] Test ID: 7.3.1.18.4
... Test title: PATCH Individual Subscription - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: none
... Reference: section 5.4.19.3.4 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Patch Individual subscription
Check HTTP Response Status Code Is 405
DELETE an individual subscription
log Try to delete an individual subscription
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId}
Log Validate Status code
Integer response status 204
[Documentation] Test ID: 7.3.1.18.5
... Test title: DELETE Individual Subscription - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: none
... Reference: section 5.4.19.3.5 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Delete Individual subscription
Check HTTP Response Status Code Is 405
*** Keywords ***
Check resource existance
......
......@@ -4,57 +4,66 @@ Resource environment/variables.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Documentation This resource represents a VNF lifecycle management operation occurrence. The client can use this resource to read
... 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
Resource VnfLcmMntOperationKeywords.robot
*** Test Cases ***
Post Individual VNF LCM OP occurences - Method not implemented
log Trying to perform a POST. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
Log Validate Status code
Integer response status 405
Get stauts information about multiple VNF instances
[Documentation] Get Operation Status
... The client can use this method to retrieve status information about a VNF lifecycle management operation occurrence
... by reading an individual �VNF LCM operation occurrence� resource.
Log Query status information about multiple VNF lifecycle management operation occurrences.
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Log Execute Query and validate response
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
Log Validate Status code
Integer response status 200
${contentType}= Output response headers Content-Type
Should Contain ${contentType} ${CONTENT_TYPE}
${result}= Output response body
Validate Json VnfLcmOpOcc.schema.json ${result}
Log Validation OK
[Documentation] Test ID: 7.3.1.12.1
... Test title: Post Individual VNF LCM OP occurences - Method not implemented
... Test objective: The objective is to test that POST method is not implemented
... Pre-conditions: none
... Reference: section 5.4.13.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Post Individual VNF LCM OP occurences
Check HTTP Response Status Code Is 405
Get status information about multiple VNF instances
[Documentation] Test ID: 7.3.1.12.2
... Test title: Get status information about multiple VNF instances
... Test objective: The objective is to test that this method retrieve status information about a VNF lifecycle management operation occurrence
... Pre-conditions: none
... Reference: section 5.4.13.3.2 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Get multiple VNF instances
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is VnfLcmOpOcc
PUT stauts information about multiple VNF instances - Method not implemented
log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
Log Validate Status code
Integer response status 405
PUT status information about multiple VNF instances - Method not implemented
[Documentation] Test ID: 7.3.1.12.3
... Test title: Put Individual VNF LCM OP occurences - Method not implemented
... Test objective: The objective is to test that PUT method is not implemented
... Pre-conditions: none
... Reference: section 5.4.13.3.3 - SOL003 v2.4.1
... 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
log Trying to perform a PATCH. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
Log Validate Status code
Integer response status 405
PATCH status information about multiple VNF instances - Method not implemented
[Documentation] Test ID: 7.3.1.12.4
... Test title: Patch Individual VNF LCM OP occurences - Method not implemented
... Test objective: The objective is to test that PATCH method is not implemented
... Pre-conditions: none
... Reference: section 5.4.13.3.4 - SOL003 v2.4.1
... 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
log Trying to perform a DELETE. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
Log Validate Status code
Integer response status 405
\ No newline at end of file
DELETE status information about multiple VNF instances - Method not implemented
[Documentation] Test ID: 7.3.1.12.5
... Test title: Delete Individual VNF LCM OP occurences - Method not implemented
... Test objective: The objective is to test that DELETE method is not implemented
... Pre-conditions: none
... Reference: section 5.4.13.3.5 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... 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
Suite Teardown Terminate All Processes kill=true
Resource environment/configuration.txt
Resource environment/variables.txt
Resource VnfLcmMntOperationKeywords.robot
Library MockServerLibrary
Library Process
Library OperatingSystem
......@@ -13,77 +14,86 @@ ${sleep_interval} 20s
*** Test Cases ***
Deliver a notification - Operation Occurence
log The POST method delivers a notification from the server to the client.
${json}= Get File schemas/vnfLcmOperationOccurrenceNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
Verify Mock Expectation ${req}
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
[Documentation] Test ID: 7.3.1.19.1
... Test title: POST Deliver a notification - Operation Occurence
... Test objective: The objective is to test that POST method trigger a notification about lifecycle changes triggered by a VNF LCM
operation occurrence
... Pre-conditions: none
... Reference: section 5.4.20.3.1 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
POST Operation occurrence
Deliver a notification - Id Creation
log The POST method delivers a notification from the server to the client.
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
Verify Mock Expectation ${req}
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
[Documentation] Test ID: 7.3.1.19.2
... Test title: Deliver a notification - Id Creation
... 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.
... Pre-conditions: none
... Reference: section 5.4.20.3.1 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
POST Id creation
Deliver a notification - Id deletion
log The POST method delivers a notification from the server to the client.
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
Verify Mock Expectation ${req}
Log Cleaning the endpoint
Clear Requests ${callback_endpoint}
[Documentation] Test ID: 7.3.1.19.3
... Test title: Deliver a notification - Id deletion
... Test objective: The objective is to test that POST method trigger A notification about the deletion of a VNF identifier and the related to a VNF instance resource
... Pre-conditions: none
... Reference: section 5.4.20.3.1 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
POST Id deletion
Test a notification end point
log The GET method allows the server to test the notification endpoint
&{req}= Create Mock Request Matcher GET ${callback_endpoint}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
Clear Requests ${callback_endpoint}
GET Test a notification end point
[Documentation] Test ID: 7.3.1.19.4
... Test title: GET Test a notification end point
... Test objective: The objective is to test that GET method allows the server to test the notification endpoint that is provided by the client
... Pre-conditions: none
... Reference: section 5.4.20.3.2 - SOL005 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET test endpoint
PUT notification - Method not implemented
log Trying to perform a PUT. This method should not be implemented
Put ${callback_endpoint}
Log Validate Status code
Output response
Integer response status 405
[Documentation] Test ID: 7.3.1.19.5
... Test title: PUT Individual Subscription - Method not implemented
... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: none