diff --git a/SOL002/VNFConfiguration-API/Configuration.robot b/SOL002/VNFConfiguration-API/Configuration.robot index 3120ea30d65c71e2e09da4afc2940914b60cdfb5..a6411336e478f62ca92cf9918459f5daee0f382a 100644 --- a/SOL002/VNFConfiguration-API/Configuration.robot +++ b/SOL002/VNFConfiguration-API/Configuration.robot @@ -18,7 +18,7 @@ Set new VNF Configuration ... Post-Conditions: The configuration is successfully set in the VNF and it matches the issued configuration Send VNF configuration Check HTTP Response Status Code Is 200 - Check HTTP Response Header Contains Etag + Check HTTP Response Header Contains ETag Check HTTP Response Body Json Schema Is vnfConfigModifications.schema.json Check Postcondition VNF Is Configured @@ -48,7 +48,7 @@ Get information about a VNF configuration with HTTP Etag ... Post-Conditions: none Get VNF configuration Check HTTP Response Status Code Is 200 - Check HTTP Response Header Contains Etag + Check HTTP Response Header Contains ETag Check HTTP Response Body Json Schema Is vnfConfiguration.schema.json Set new VNF Configuration - HTTP Etag precondition unsuccessful @@ -121,6 +121,7 @@ Send VNF configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/vnfConfigModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/configuration ${body} + Set Suite Variable &{etag} ${response[0]['headers']['ETag']} ${output}= Output response Set Suite Variable @{response} ${output} @@ -158,11 +159,11 @@ Check Postcondition VNF Is Configured Should Be Equal ${response[0]['body']} ${input} Send Duplicated VNF configuration - Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified + Depends On Test Send VNF configuration # If the previous test scceeded, it means that Etag has been modified log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Set Headers {"If-Match": "${Etag}"} + Set Headers {"If-Match": "${etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/vnfConfigModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/configuration ${body} diff --git a/SOL002/VNFFaultManagement-API/IndividualAlarm.robot b/SOL002/VNFFaultManagement-API/IndividualAlarm.robot index 43c1d6759475adb3fd5162bb1f83189666c2bb11..ec2aa8ed967f0897c4e7ae52f2f1cabcdd637046 100644 --- a/SOL002/VNFFaultManagement-API/IndividualAlarm.robot +++ b/SOL002/VNFFaultManagement-API/IndividualAlarm.robot @@ -8,6 +8,10 @@ Library JSONSchemaLibrary schemas/ Library DependencyLibrary +*** Variables ** +${original_etag} 1234 + + *** Test Cases *** POST Alarm - Method not implemented log Trying to perform a POST. This method should not be implemented @@ -17,6 +21,7 @@ POST Alarm - Method not implemented Log Validate Status code Integer response status 405 + Get information about a configuration [Documentation] Test ID: 7.4.3.1 ... Test title: Get information about an alarm @@ -32,15 +37,17 @@ Get information about a configuration Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Log Execute Query and validate response Get ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} - ${Etag}= Output response headers Etag Log Validate Status code Integer response status 200 + ${etag} Output response header ETag + Set Suite Variable &{original_etag} ${etag} ${contentType}= Output response headers Content-Type Should Contain ${contentType} ${CONTENT_TYPE} ${result}= Output response body Validate Json alarm.schema.json ${result} Log Validation OK + PUT Alarm - Method not implemented log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -49,6 +56,7 @@ PUT Alarm - Method not implemented Log Validate Status code Integer response status 405 + PATCH Alarm [Documentation] Test ID: 7.4.3.2 ... Test title: Modify an individual alarm resource @@ -60,60 +68,63 @@ PATCH Alarm ... Post-Conditions: log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/alarmModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} Log Validate Status code - ${Etag_modified}= Output response headers Etag Integer response status 200 ${contentType}= Output response headers Content-Type Should Contain ${contentType} ${CONTENT_TYPE} ${result}= Output response body Validate Json alarmModifications.schema.json ${result} Log Validation OK + -PATCH Alarm - Conflict + + +PATCH Alarm - Precondition failed [Documentation] Test ID: 7.4.3.2-1 - ... Test title: Modify an individual alarm resource - Conflict + ... Test title: Modify an individual alarm resource - Precondition failed ... Test objective: The objective is to Modify an individual alarm resource ... Pre-conditions: The related alarm exists ... Reference: section 7.4.3 - SOL002 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: The alarm resource is not modified - Depends On Test PATCH Alarm # If the previous test scceeded, it means that the alarm is in ackownledged state + Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/alarmModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} Log Validate Status code - Integer response status 409 + Integer response status 412 ${problemDetails}= Output response body Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -PATCH Alarm - Precondition failed +PATCH Alarm - Conflict [Documentation] Test ID: 7.4.3.2-1 - ... Test title: Modify an individual alarm resource - Precondition failed + ... Test title: Modify an individual alarm resource - Conflict ... Test objective: The objective is to Modify an individual alarm resource ... Pre-conditions: The related alarm exists ... Reference: section 7.4.3 - SOL002 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: The alarm resource is not modified - Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified + Depends On Test PATCH Alarm # If the previous test scceeded, it means that the alarm is in ackownledged state log Trying to perform a PATCH. This method modifies an individual alarm resource - Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} - Set Headers {"If-Match": "${Etag}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/alarmModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} Log Validate Status code - Integer response status 412 + Integer response status 409 ${problemDetails}= Output response body Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK diff --git a/SOL002/VNFFaultManagement-API/environment/variables.txt b/SOL002/VNFFaultManagement-API/environment/variables.txt index e3d485e806adaff758727f480b63811144c909cd..fc5212d5d38bb191765dc00e18074df88ad925f8 100644 --- a/SOL002/VNFFaultManagement-API/environment/variables.txt +++ b/SOL002/VNFFaultManagement-API/environment/variables.txt @@ -16,8 +16,8 @@ ${CONTENT_TYPE} application/json ${VNFM_DUPLICATION} 0 ${alarmId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d -${Etag}= an etag -${Etag_modified}= a modified etag +${etags} a modified etag +${wrong_etag} wrong-tag ${CONTENT_TYPE_PATCH} application/merge-patch+json ${PerceivedSeverity} CRITICAL diff --git a/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot b/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot index 0856f08e15aa1acd7c8dbfb2baf78847a3e8c02b..8d7bd021174882229380f49194b07b9884e3e543 100644 --- a/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot +++ b/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot @@ -38,23 +38,6 @@ Post Cancel operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Cancel operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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. - [Setup] Launch another error handling action - log Final Fail an operation - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/cancel - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Post Cancel operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot b/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot index 0ddb04269f65a78a422bf743ddae67459d5d052a..60be754d3736651c6eefc666403ac5c8ebd825b7 100644 --- a/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot +++ b/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot @@ -21,27 +21,7 @@ Change external VNF connectivity Should Contain ${headers} Location Log Validation OK -Change external VNF connectivity Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 another LCM operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the deployment flavour of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/changeExtVnfConnectivityRequest .json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished - - + GET Change external VNF connectivity - 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}"} diff --git a/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot b/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot index b1c238bf80c40de1a37dd36eea97096299ac67fa..1fd21f35cc6d3ac936f714f1010d0c40d8f3b770 100644 --- a/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot +++ b/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot @@ -41,26 +41,6 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Change deployment flavour of a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the deployment flavour of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/changeVnfFlavourRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Change deployment flavour of a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/FailOperationTask.robot b/SOL002/VNFLifecycleManagement-API/FailOperationTask.robot index 2e160b6cb394c0acf6fb245de274343fbcfe7934..684ec9519772a140c3a7edc5f5b36f232c727d58 100644 --- a/SOL002/VNFLifecycleManagement-API/FailOperationTask.robot +++ b/SOL002/VNFLifecycleManagement-API/FailOperationTask.robot @@ -41,23 +41,6 @@ Post Fail operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Fail operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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. - [Setup] Launch another error handling action - 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 - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Post Fail operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/HealVNFTask.robot b/SOL002/VNFLifecycleManagement-API/HealVNFTask.robot index d761cb348909d49573d960293b7755af109cf9d4..52c7618910a109f00225a9659d85af2a1e0ea43c 100644 --- a/SOL002/VNFLifecycleManagement-API/HealVNFTask.robot +++ b/SOL002/VNFLifecycleManagement-API/HealVNFTask.robot @@ -41,26 +41,6 @@ Heal a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Heal a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to heal a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/healVnFRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Heal a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/IndividualSubscription.robot b/SOL002/VNFLifecycleManagement-API/IndividualSubscription.robot index 026a3a7dccab38c84c7c217135589a3d28790883..7b5b22ac6c6106baeeb321e6a97c58bb7ab6d294 100644 --- a/SOL002/VNFLifecycleManagement-API/IndividualSubscription.robot +++ b/SOL002/VNFLifecycleManagement-API/IndividualSubscription.robot @@ -50,7 +50,7 @@ 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}"} - Patch ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} + Delete ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} Log Validate Status code Integer response status 204 diff --git a/SOL002/VNFLifecycleManagement-API/IndividualVNFInstance.robot b/SOL002/VNFLifecycleManagement-API/IndividualVNFInstance.robot index cf1a04dc043dc64821bc92c93e578c8f5fdd306f..73ab26ca20332a94202eae807c205a1120d32c7b 100644 --- a/SOL002/VNFLifecycleManagement-API/IndividualVNFInstance.robot +++ b/SOL002/VNFLifecycleManagement-API/IndividualVNFInstance.robot @@ -10,9 +10,9 @@ Documentation This resource represents an individual VNF instance. The client ... underlying VNF instance, and to read information about the VNF instance. Suite Setup Check resource existance + *** Variables *** -${Etag}= an etag -${Etag_modified}= a modified etag +${original_etag} 1234 *** Test Cases *** Post Individual VNFInstance - Method not implemented @@ -31,13 +31,14 @@ Get Information about an individual VNF Instance Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} Log Validate Status code - ${Etag}= Output response headers Etag Integer response status 200 ${contentType}= Output response headers Content-Type Should Contain ${contentType} ${CONTENT_TYPE} ${result}= Output response body Validate Json vnfInstance.schema.json ${result} Log Validation OK + ${etag} Output response header ETag + Set Suite Variable &{original_etag} ${etag} PUT Individual VNFInstance - Method not implemented Log Trying to perform a PUT. This method should not be implemented @@ -56,12 +57,11 @@ PATCH Individual VNFInstance log Trying to modify an individual VNF instance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code - ${Etag_modified}= Output response headers Etag - Integer response status 202 ${headers}= Output response headers Should Contain ${headers} Location Log Validation OK @@ -75,7 +75,7 @@ PATCH Individual VNFInstance Precondition failed log Trying to modify an individual VNF instance Precondition failed Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} - Set Headers {"If-Match": "${Etag}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} @@ -126,7 +126,7 @@ DELETE Individual VNFInstance Conflict [Setup] Check resource instantiated log Trying to delete an individual VNF instance Conflict Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} + Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instantiatedVnfInstanceId} Log Validate Status code Integer response status 409 ${contentType}= Output response headers Content-Type diff --git a/SOL002/VNFLifecycleManagement-API/InstantiateVNFTask.robot b/SOL002/VNFLifecycleManagement-API/InstantiateVNFTask.robot index 307b42a7374efec2b6a52cf4fb6605fa5e59f396..3d0c9f8f44565fb78fd81d07285f3a73de85126c 100644 --- a/SOL002/VNFLifecycleManagement-API/InstantiateVNFTask.robot +++ b/SOL002/VNFLifecycleManagement-API/InstantiateVNFTask.robot @@ -35,7 +35,7 @@ Instantiate a vnfInstance Conflict Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/instantiateVnfRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${body} + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instantiatedVnfInstanceId}/instantiate ${body} Integer response status 409 Log Status code validated ${contentType}= Output response headers Content-Type diff --git a/SOL002/VNFLifecycleManagement-API/LCMParallelOperation.robot b/SOL002/VNFLifecycleManagement-API/LCMParallelOperation.robot new file mode 100644 index 0000000000000000000000000000000000000000..4effbe1b51a018e0a58f27014c866e7d3ee81f11 --- /dev/null +++ b/SOL002/VNFLifecycleManagement-API/LCMParallelOperation.robot @@ -0,0 +1,40 @@ +*** Settings *** +Resource environment/variables.txt +Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} +Library OperatingSystem +Library JSONLibrary +Library JSONSchemaLibrary schemas/ + +*** Test Cases *** +Scale a vnfInstance + [Documentation] Instantiate VNF The POST method instantiates a VNF instance. + Log Trying to Instantiate a vnf Instance + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + ${body}= Get File jsons/scaleVnfRequest.json + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${conflicVnfInstanceId}/scale ${body} + Integer response status 202 + Log Status code validated + ${headers}= Output response headers + Should Contain ${headers} Location + Log Validation OK + +Scale a vnfInstance Conflict (parallel LCM operation) + # TODO: Need to set the pre-condition of the test + [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 in NOT-INSTANTIATED state, or that another lifecycle management operation is ongoing. + ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. + log Trying to Scale a vnf Instance + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + ${body}= Get File jsons/scaleVnfRequest.json + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${conflicVnfInstanceId}/scale ${body} + Integer response status 409 + Log Status code validated + ${problemDetails}= Output response body + Validate Json ProblemDetails.schema.json ${problemDetails} + Log Validation OK + diff --git a/SOL002/VNFLifecycleManagement-API/OperateVNFTask.robot b/SOL002/VNFLifecycleManagement-API/OperateVNFTask.robot index 77ae2f9726ee2564b09299818a3033d212923029..035572726c5f0c738135479002a48e30b85d3b77 100644 --- a/SOL002/VNFLifecycleManagement-API/OperateVNFTask.robot +++ b/SOL002/VNFLifecycleManagement-API/OperateVNFTask.robot @@ -13,7 +13,7 @@ Operate a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Integer response status 202 Log Status code validated @@ -33,7 +33,7 @@ Operate a vnfInstance Conflict (Not-Instantiated) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Integer response status 409 Log Status code validated @@ -41,26 +41,6 @@ Operate a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Operate a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the operational state of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Operate a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent @@ -73,7 +53,7 @@ Operate a vnfInstance Not Found Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Integer response status 404 Log Status code validated diff --git a/SOL002/VNFLifecycleManagement-API/RetryOperationTask.robot b/SOL002/VNFLifecycleManagement-API/RetryOperationTask.robot index ce6afdd19007a73c9a6322fa7af57726f0aaae4f..d98c4f160b988b44bf8ae6814ada18d41bf72072 100644 --- a/SOL002/VNFLifecycleManagement-API/RetryOperationTask.robot +++ b/SOL002/VNFLifecycleManagement-API/RetryOperationTask.robot @@ -40,24 +40,6 @@ Post Retry operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Retry operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - Depends on test Check resource FAILED_TEMP - [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 rollback or fail. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another error handling action - log Retry an operation - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/retry - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Post Retry operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/RollbackOperationTask.robot b/SOL002/VNFLifecycleManagement-API/RollbackOperationTask.robot index 0e98a8fb7ae59bcaa5f1dae5ffcf0c728882beaa..afd5d3600dff4919b351c289beb262727675dab4 100644 --- a/SOL002/VNFLifecycleManagement-API/RollbackOperationTask.robot +++ b/SOL002/VNFLifecycleManagement-API/RollbackOperationTask.robot @@ -39,24 +39,6 @@ Post Rollback operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Rollback operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - Depends on test Check resource FAILED_TEMP - [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 fail. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another error handling action - log Rollback an operation - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/rollback - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Post Rollback operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/ScaleVNFTask.robot b/SOL002/VNFLifecycleManagement-API/ScaleVNFTask.robot index 879d55fd237c06887e07d137b656fe972bfe0660..4fbb92b216ba195faa67d5f66aa0b295367a0be3 100644 --- a/SOL002/VNFLifecycleManagement-API/ScaleVNFTask.robot +++ b/SOL002/VNFLifecycleManagement-API/ScaleVNFTask.robot @@ -40,25 +40,6 @@ Scale a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Scale a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to Scale a vnf Instance - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/scaleVnfRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} - Integer response status 409 - Log Status code validated - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Scale a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot b/SOL002/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot index b1f5b4646642a19ffa13e9727b92f7631e5283c7..775376c64aa4d02245545bcec6a7c614205859f0 100644 --- a/SOL002/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot +++ b/SOL002/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot @@ -40,24 +40,6 @@ Scale a vnfInstance to level Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Scale a vnfInstance to level Conflict (parallel LCM operation) - [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 in NOT-INSTANTIATED state, or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to Scale a vnf Instance - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/scaleVnfToLevelRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale_to_level ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Scale a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL002/VNFLifecycleManagement-API/Subscriptions.robot b/SOL002/VNFLifecycleManagement-API/Subscriptions.robot index c0a37afaf3193fd8159e570bf690a02317a2d14b..3c4e55907bbaf19b6f1d48e0c6d809b0d32e15ad 100644 --- a/SOL002/VNFLifecycleManagement-API/Subscriptions.robot +++ b/SOL002/VNFLifecycleManagement-API/Subscriptions.robot @@ -11,7 +11,7 @@ Create a new subscription Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/lccbSubscriptionRequest.json + ${body}= Get File jsons/lccnSubscriptionRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} Integer response status 201 Log Status code validated @@ -29,7 +29,7 @@ Create a new Subscription - DUPLICATION Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - ${body}= Get File jsons/lccbSubscriptionRequest.json + ${body}= Get File jsons/lccnSubscriptionRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} Integer response status 201 Log Status code validated @@ -45,7 +45,7 @@ Create a new Subscription - NO-DUPLICATION Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - ${body}= Get File jsons/lccbSubscriptionRequest.json + ${body}= Get File jsons/lccnSubscriptionRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} Integer response status 303 Log Status code validated diff --git a/SOL002/VNFLifecycleManagement-API/TerminateVNFTask.robot b/SOL002/VNFLifecycleManagement-API/TerminateVNFTask.robot index d7556a347139e4ff8c0f099e2aa4a0434ca7d5d9..3f652ede7828fb42489780cc7c78fe6973a64762 100644 --- a/SOL002/VNFLifecycleManagement-API/TerminateVNFTask.robot +++ b/SOL002/VNFLifecycleManagement-API/TerminateVNFTask.robot @@ -41,26 +41,6 @@ Terminate a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Terminate a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the deployment flavour of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/terminateVnFRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/terminate ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished GET Terminate VNFInstance - Method not implemented log Trying to perform a GET. This method should not be implemented diff --git a/SOL002/VNFLifecycleManagement-API/environment/variables.txt b/SOL002/VNFLifecycleManagement-API/environment/variables.txt index 4c78837e9a7dbbb1bac6110cb1d883a5f27f5aa4..b43c2b7545696bc70414631205768d85d8d10bc7 100644 --- a/SOL002/VNFLifecycleManagement-API/environment/variables.txt +++ b/SOL002/VNFLifecycleManagement-API/environment/variables.txt @@ -15,6 +15,8 @@ ${apiVersion} v1 ${AUTH_USAGE} 1 ${WRONG_AUTHORIZATION} Bearer XXXXXWRONGXXXXX ${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f +${instantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f #Change with an instantiated vnfInstanceID +${conflicVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f ${vnfInstanceName} Test-VnfInstance ${vnfInstanceDescription} description vnf ${vnfInstanceDescription_Update} Updated description vnf diff --git a/SOL002/VNFPerformanceManagement-API/PMJobs.robot b/SOL002/VNFPerformanceManagement-API/PMJobs.robot index 185cdceece438257b79cd9ce60f52d8ad1b4f48b..50a8c75573d2a6cb6822ffd6b1cd6af842ee0474 100644 --- a/SOL002/VNFPerformanceManagement-API/PMJobs.robot +++ b/SOL002/VNFPerformanceManagement-API/PMJobs.robot @@ -118,10 +118,7 @@ GET all Pm Jobs - exclude_fields ${reports}= Get Value From Json ${result} $..reports Should Be Empty ${reports} Log Reports element is empty as expected - Log Checking that criteria element is missing - ${criteria}= Get Value From Json ${result} $..criteria - Should Be Empty ${criteria} - Log Criteria element is empty as expected + GET all Pm Jobs - Negative (wronge filter name) Log Trying to get all PM Jobs present in the VNFM, using an erroneous filter param diff --git a/SOL003/VNFFaultManagement-API/IndividualAlarm.robot b/SOL003/VNFFaultManagement-API/IndividualAlarm.robot index c860aa35d07dbf0af0eced8d1fbf09b5d18d819b..95f75985ff16e763a8200052da3cb3d00b62b34a 100644 --- a/SOL003/VNFFaultManagement-API/IndividualAlarm.robot +++ b/SOL003/VNFFaultManagement-API/IndividualAlarm.robot @@ -8,6 +8,9 @@ Library JSONSchemaLibrary schemas/ Library DependencyLibrary +*** Variables *** +${original_etag} 1234 + *** Test Cases *** POST Alarm - Method not implemented log Trying to perform a POST. This method should not be implemented @@ -33,7 +36,8 @@ Get information about an alarm Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Log Execute Query and validate response Get ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} - #${Etag}= Output response headers Etag + ${etag} Output response header ETag + Set Suite Variable &{original_etag} ${etag} Log Validate Status code Integer response status 200 ${contentType}= Output response headers Content-Type @@ -61,12 +65,13 @@ PATCH Alarm ... Post-Conditions: log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/alarmModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} Log Validate Status code - ${Etag_modified}= Output response headers Etag + ${Etag_modified}= Output response headers ETag Integer response status 200 ${contentType}= Output response headers Content-Type Should Contain ${contentType} ${CONTENT_TYPE} @@ -74,50 +79,52 @@ PATCH Alarm Validate Json AlarmModification.schema.json ${result} Log Validation OK -PATCH Alarm - Conflict +PATCH Alarm - Precondition failed [Documentation] Test ID: 7.4.3.2-1 - ... Test title: Modify an individual alarm resource - Conflict + ... Test title: Modify an individual alarm resource - Precondition failed ... Test objective: The objective is to Modify an individual alarm resource ... Pre-conditions: The related alarm exists ... Reference: section 7.4.3 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: The alarm resource is not modified + Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/alarmModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} Log Validate Status code - Integer response status 409 + Integer response status 412 ${problemDetails}= Output response body Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -PATCH Alarm - Precondition failed + +PATCH Alarm - Conflict [Documentation] Test ID: 7.4.3.2-1 - ... Test title: Modify an individual alarm resource - Precondition failed + ... Test title: Modify an individual alarm resource - Conflict ... Test objective: The objective is to Modify an individual alarm resource ... Pre-conditions: The related alarm exists ... Reference: section 7.4.3 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: The alarm resource is not modified - Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} - Set Headers {"If-Match": "${Etag}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/alarmModifications.json Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} Log Validate Status code - Integer response status 412 + Integer response status 409 ${problemDetails}= Output response body Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK + DELETE Alarm - Method not implemented log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} diff --git a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot index c767d88be6ee65909be7510adbf3a2a02a95582d..374c52c85929f005fd362bab2a721ee0bfbb67cd 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot @@ -21,26 +21,6 @@ Change external VNF connectivity ${headers}= Output response headers Should Contain ${headers} Location Log Validation OK - -Change external VNF connectivity Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 another LCM operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the deployment flavour of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/changeExtVnfConnectivityRequest .json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_ext_conn ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished GET Change external VNF connectivity - Method not implemented diff --git a/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot b/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot index 6d08b6df77bcd9c7e25dd4ac14a08cae530395fe..fc2902c5d1c94e6c333c20edf153daa49b13353e 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot @@ -14,8 +14,7 @@ Change deployment flavour of a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body_file}= Get File jsons/changeVnfFlavourRequest.json - ${body}= evaluate json.loads('''${body_file}''') json + ${body}= Get File jsons/changeVnfFlavourRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} Integer response status 202 Log Status code validated @@ -44,28 +43,8 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Change deployment flavour of a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the deployment flavour of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body_file}= Get File jsons/changeVnfFlavourRequest.json - ${body}= evaluate json.loads('''${body_file}''') json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished - + + Change deployment flavour of a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent [Documentation] Not Found diff --git a/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot b/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot index 94dbab29018aca728e31aed04b5f8eab0f26ee59..d008d1d35e51abd075d489f831bec9a68e97b575 100644 --- a/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot @@ -40,23 +40,7 @@ Post Fail operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Fail operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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. - [Setup] Launch another error handling action - 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 - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished + Post Fail operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot b/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot index c0115d04e9f5ae32738645f8184d89dca627093e..92b4bd3db8cdf4609d76b0be1bfea54f29a45054 100644 --- a/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot @@ -42,26 +42,7 @@ Heal a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Heal a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to heal a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/healVnFRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/heal ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished + Heal a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot b/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot index d59a4fc0959589b607b5160bd932fa849c6d8337..0273b05b2b6f8c0f0e362a23369d7e4d94290b4f 100644 --- a/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot +++ b/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot @@ -51,7 +51,7 @@ 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}"} - Patch ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} + Delete ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} Log Validate Status code Integer response status 204 diff --git a/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot b/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot index 48c72009643885ec421a643a87dda9691158f8e6..69df8f636c461888638912d6a3e0de6d37d16dd0 100644 --- a/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot +++ b/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot @@ -12,8 +12,7 @@ Documentation This resource represents an individual VNF instance. The client Suite Setup Check resource existance *** Variables *** -${Etag}= an etag -${Etag_modified}= a modified etag +${original_etag} 1234 *** Test Cases *** Post Individual VNFInstance - Method not implemented @@ -38,6 +37,8 @@ Get Information about an individual VNF Instance ${result}= Output response body Validate Json vnfInstance.schema.json ${result} Log Validation OK + ${etag} Output response header ETag + Set Suite Variable &{original_etag} ${etag} PUT Individual VNFInstance - Method not implemented log Trying to perform a PUT. This method should not be implemented @@ -56,11 +57,12 @@ PATCH Individual VNFInstance log Trying to modify an individual VNF instance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} Log Validate Status code - ${Etag_modified}= Output response headers Etag + ${Etag_modified}= Output response headers ETag Integer response status 202 ${headers}= Output response headers Should Contain ${headers} Location @@ -75,7 +77,7 @@ PATCH Individual VNFInstance Precondition failed log Trying to modify an individual VNF instance Precondition failed Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} - Set Headers {"If-Match": "${Etag}"} + Set Headers {"If-Match": "${original_etag[0]}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/patchBodyRequest.json Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body} @@ -122,7 +124,7 @@ DELETE Individual VNFInstance Conflict [Setup] Check resource instantiated log Trying to delete an individual VNF instance Conflict Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} + Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instantiatedVnfInstanceId} Log Validate Status code Integer response status 409 ${problemDetails}= Output response body diff --git a/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot b/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot index 3859bdc9cdf6067bd802b29be6ad86f8678958cc..b728e71dd0904e14b0af10a05720f3d2a6c10ace 100644 --- a/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot @@ -36,7 +36,7 @@ Instantiate a vnfInstance Conflict Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/instantiateVnfRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/instantiate ${body} + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instantiatedVnfInstanceId}/instantiate ${body} Integer response status 409 Log Status code validated ${problemDetails}= Output response body diff --git a/SOL003/VNFLifecycleManagement-API/LCMParallelOperation.robot b/SOL003/VNFLifecycleManagement-API/LCMParallelOperation.robot new file mode 100644 index 0000000000000000000000000000000000000000..e4bb01b39e313cb50282efc97af0606d7f5e899f --- /dev/null +++ b/SOL003/VNFLifecycleManagement-API/LCMParallelOperation.robot @@ -0,0 +1,42 @@ +*** Settings *** +Resource environment/configuration.txt +Resource environment/variables.txt +Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} +Library OperatingSystem +Library JSONLibrary +Library JSONSchemaLibrary schemas/ + +*** Test Cases *** +Scale a vnfInstance + [Documentation] Instantiate VNF The POST method instantiates a VNF instance. + Log Trying to Instantiate a vnf Instance + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + ${body}= Get File jsons/scaleVnfRequest.json + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${conflicVnfInstanceId}/scale ${body} + Integer response status 202 + Log Status code validated + ${headers}= Output response headers + Should Contain ${headers} Location + Log Validation OK + + +Scale a vnfInstance Conflict (parallel LCM operation) + # TODO: Need to set the pre-condition of the test + [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 in NOT-INSTANTIATED state, or that another lifecycle management operation is ongoing. + ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. + log Trying to Scale a vnf Instance + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + ${body}= Get File jsons/scaleVnfRequest.json + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${conflicVnfInstanceId}/scale ${body} + Integer response status 409 + Log Status code validated + ${problemDetails}= Output response body + Validate Json ProblemDetails.schema.json ${problemDetails} + Log Validation OK + diff --git a/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot b/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot index 17f2a76a8f4cf348a8c19ab34a4cb00b9a9a812e..a4f5c940fbc2108e4136e43f8d49dc4043202bbd 100644 --- a/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot @@ -14,7 +14,7 @@ Operate a vnfInstance Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Integer response status 202 Log Status code validated @@ -34,7 +34,7 @@ Operate a vnfInstance Conflict (Not-Instantiated) Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Integer response status 409 Log Status code validated @@ -42,26 +42,7 @@ Operate a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Operate a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the operational state of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished + Operate a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent @@ -74,7 +55,7 @@ Operate a vnfInstance Not Found Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Integer response status 404 Log Status code validated diff --git a/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot index b66dcca2cacecdbafb328c1a2b542eb9147c9ede..0c6a474fa23698bdf130ec49b704ad2a9842a99c 100644 --- a/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot @@ -37,7 +37,7 @@ Operate a VNF Instance *** Keywords *** Initialize System Create Sessions - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json ${changeVnfOperateRequest}= evaluate json.loads('''${body}''') json ${requestedState}= Get Value From Json ${changeVnfOperateRequest} $..changeStateTo diff --git a/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot b/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot index 4be7f59f21962eee8563375fc7bb5c868925aac5..20ea983a0719756bdf25f5c559f21e2173ad84ca 100644 --- a/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot @@ -41,24 +41,6 @@ Post Retry operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Retry operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - Depends on test Check resource FAILED_TEMP - [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 rollback or fail. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another error handling action - log Retry an operation - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/retry - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Post Retry operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot b/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot index 2083c792a77dc5ef017c3938f3f2e5d44abf5907..bfd7e64d83e7fac966144970c3ec02fe9c505024 100644 --- a/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot @@ -40,24 +40,7 @@ Post Rollback operation task Conflict (Not-FAILED_TEMP) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Post Rollback operation task Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - Depends on test Check resource FAILED_TEMP - [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 fail. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another error handling action - log Rollback an operation - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/rollback - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished + Post Rollback operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot index d7dd5e748f898cee996b5488f24e02c3793aed19..28589121ad8b523611c69776e53a15112aaae01d 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot @@ -41,25 +41,6 @@ Scale a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Scale a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to Scale a vnf Instance - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/scaleVnfRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} - Integer response status 409 - Log Status code validated - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Scale a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot index eb1231d6faa8eae0594c47c87ca47aaf90546a39..4ba305f447156f354eef4f00af69386b5a1ebbc0 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot @@ -41,24 +41,6 @@ Scale a vnfInstance to level Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Scale a vnfInstance to level Conflict (parallel LCM operation) - [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 in NOT-INSTANTIATED state, or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to Scale a vnf Instance - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/scaleVnfToLevelRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale_to_level ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished Scale a vnfInstance Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent diff --git a/SOL003/VNFLifecycleManagement-API/Subscriptions.robot b/SOL003/VNFLifecycleManagement-API/Subscriptions.robot index ca7fd6af1d798243b26220bd5ec48e9a04c806cc..87caa20cc32b30bf4d31ae1bf86f42b4d690eb82 100644 --- a/SOL003/VNFLifecycleManagement-API/Subscriptions.robot +++ b/SOL003/VNFLifecycleManagement-API/Subscriptions.robot @@ -12,7 +12,7 @@ Create a new subscription Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/lccbSubscriptionRequest.json + ${body}= Get File jsons/lccnSubscriptionRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} Integer response status 201 Log Status code validated @@ -30,7 +30,7 @@ Create a new Subscription - DUPLICATION Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - ${body}= Get File jsons/lccbSubscriptionRequest.json + ${body}= Get File jsons/lccnSubscriptionRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} Integer response status 201 Log Status code validated @@ -46,7 +46,7 @@ Create a new Subscription - NO-DUPLICATION Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} - ${body}= Get File jsons/lccbSubscriptionRequest.json + ${body}= Get File jsons/lccnSubscriptionRequest.json Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} Integer response status 303 Log Status code validated diff --git a/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot b/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot index be6be40017eb123a4f8d5149f72f05b4ce5cdf64..783fb7ff0a6379056d1862bc35247f79a2d4edf2 100644 --- a/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot @@ -42,26 +42,6 @@ Terminate a vnfInstance Conflict (Not-Instantiated) Validate Json ProblemDetails.schema.json ${problemDetails} Log Validation OK -Terminate a vnfInstance Conflict (parallel LCM operation) - # TODO: Need to set the pre-condition of the test - [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 in NOT-INSTANTIATED state, - ... or that another lifecycle management operation is ongoing. - ... The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error. - [Setup] Launch another LCM operation - log Trying to change the deployment flavour of a VNF instance. - Set Headers {"Accept":"${ACCEPT}"} - Set Headers {"Content-Type": "${CONTENT_TYPE}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/terminateVnFRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/terminate ${body} - Log Validate Status code - Integer response status 409 - ${problemDetails}= Output response body - Validate Json ProblemDetails.schema.json ${problemDetails} - Log Validation OK - #[Teardown] #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished GET Terminate VNFInstance - Method not implemented log Trying to perform a GET. This method should not be implemented diff --git a/SOL003/VNFLifecycleManagement-API/VNFInstances.robot b/SOL003/VNFLifecycleManagement-API/VNFInstances.robot index cb6d825ca110ef3c717b276b5273ead611d6cca6..ec71cb3bec2e0be086afffa2111d88edc5562467 100644 --- a/SOL003/VNFLifecycleManagement-API/VNFInstances.robot +++ b/SOL003/VNFLifecycleManagement-API/VNFInstances.robot @@ -22,7 +22,7 @@ Create a new vnfInstance Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${body}= Get File jsons/createVnfRequest.json - Post ${apiRoot}${apiName}/${apiVersion}/vnf_instances ${body} + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances ${body} Integer response status 201 Log Status code validated ${headers}= Output response headers diff --git a/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot b/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot index dc544d355033d4aea5f3c5a59b1890cd7c02d28e..c36b188eec11c22c10e75192715524f3bc483411 100644 --- a/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +++ b/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot @@ -132,7 +132,7 @@ Send Change VNF Operational State Request Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - ${body}= Get File jsons/operateVnFRequest.json + ${body}= Get File jsons/operateVnfRequest.json ${response}= Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/operate ${body} Send Heal VNF Request diff --git a/SOL003/VNFLifecycleManagement-API/environment/variables.txt b/SOL003/VNFLifecycleManagement-API/environment/variables.txt index bf673fbf8a28e0388169c156c1b18663d931c4d1..b044c85627177f764808f8a8284ff792dfa9027c 100644 --- a/SOL003/VNFLifecycleManagement-API/environment/variables.txt +++ b/SOL003/VNFLifecycleManagement-API/environment/variables.txt @@ -1,12 +1,13 @@ *** Variables *** ${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f +${instantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f #Change with an instantiated vnfInstanceID ${subscriptionId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f ${vnfLcmOpOccId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d ${callback_endpoint} /notification ${callback_endpoint_fwd} /notification/check ${callback_port} 9091 ${callback_uri} http://localhost - +${conflicVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f ${VnfLcmOperationOccurrenceNotification} {} ${VnfIdentifierCreationNotification} {} diff --git a/SOL003/VNFLifecycleOperationGranting-API/Grants.robot b/SOL003/VNFLifecycleOperationGranting-API/Grants.robot index 10685baf6c6f4d2840cb956f2f314b66fb6b1906..414ca48554c3eec8060c744fd5ba2ef47f552aa5 100644 --- a/SOL003/VNFLifecycleOperationGranting-API/Grants.robot +++ b/SOL003/VNFLifecycleOperationGranting-API/Grants.robot @@ -108,7 +108,9 @@ Send Request Grant Request Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${body}= Get File jsons/grantRequest.json - ${response}= Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} + Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} + ${body}= Output response + Set Suite Variable &{response} ${body} Check HTTP Response Status Code Is [Arguments] ${expected_status} @@ -117,20 +119,19 @@ Check HTTP Response Status Code Is Check HTTP Response Header Contains [Arguments] ${CONTENT_TYPE} - Should Contain ${response.headers} ${CONTENT_TYPE} + Should Contain ${response[0]['headers']} ${CONTENT_TYPE} Log Header is present Check HTTP Response Body Json Schema Is [Arguments] ${schema} - ${json}= evaluate json.loads('''${response.body}''') json - Validate Json ${schema} ${json} + Validate Json ${schema} ${response[0]['body']} Log Json Schema Validation OK Get an individual grant - Successful log Trying to read an individual grant Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Get ${response.headers.Location} + Get ${response[0]['headers']['Location']} Log Validate Status code Integer response status 200 ${result}= Output response body diff --git a/SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot b/SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot index ed8e573e012924415e0d9a4fda51e8c5a43f2fbd..5cd8ddeb4af5c2ff7762bd9de3ddf9d986cec6e8 100644 --- a/SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot +++ b/SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot @@ -7,7 +7,6 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} Documentation This resource represents an individual grant. The client can use this resource to read the grant. ... It is determined by means outside the scope of the present document, such as configuration or policy, ... how long an individual grant is available. -Suite Setup Check resource existance *** Test Cases *** Post Individual Grant - Method not implemented @@ -97,7 +96,7 @@ DELETE an individual grant - Method not implemented Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Log Validate Status code - Integer response status 204 + Integer response status 405 *** Keywords *** Check resource existance diff --git a/SOL003/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot b/SOL003/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot index 9715e1815863a837032871ce48033b556a541caf..c67d6574f3aac4027e3f2c352f57d978e49b131a 100644 --- a/SOL003/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot +++ b/SOL003/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot @@ -9,7 +9,7 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} GET VNFD in Individual VNF Package (PLAIN) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgPlainVNFD}/vnfd Integer response status 200 ${contentType}= Output response headers Content-Type @@ -18,7 +18,7 @@ GET VNFD in Individual VNF Package (PLAIN) GET VNFD in Individual VNF Package (ZIP) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd Integer response status 200 ${contentType}= Output response headers Content-Type @@ -28,7 +28,7 @@ GET VNFD in Individual VNF Package (PLAIN-ZIP) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd Integer response status 200 ${contentType}= Output response headers Content-Type @@ -37,7 +37,7 @@ GET VNFD in Individual VNF Package (PLAIN-ZIP) GET VNFD in Individual VNF Package - Negative (PLAIN/ZIP) Log Trying to get a negative case performing a get on a VNFD from a given VNF Package present in the NFVO Catalogue. Accept will be text/plain but VNFD is composed my multiple files. Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd Integer response status 406 ${contentType}= Output response headers Content-Type @@ -51,7 +51,7 @@ GET VNFD in Individual VNF Package - Negative (Not Found) Log Trying to perform a negative get, using an erroneous package ID Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${erroneousVnfPkgId}/vnfd Integer response status 404 Log Received 404 Not Found as expected @@ -66,7 +66,7 @@ GET VNFD in Individual VNF Package - Negative (onboardingState issue) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${onboardingStateVnfPkgId}/vnfd Integer response status 409 Log Received 409 Conflict as expected @@ -80,7 +80,7 @@ GET VNFD in Individual VNF Package - Negative (onboardingState issue) POST VNFD in Individual VNF Package (Method not implemented) Log Trying to perform a POST (method should not be implemented) Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} POST ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/vnfd Integer response status 405 Log Received 405 Method not implemented as expected @@ -88,7 +88,7 @@ POST VNFD in Individual VNF Package (Method not implemented) PUT VNFD in Individual VNF Package (Method not implemented) Log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} PUT ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/vnfd Integer response status 405 Log Received 405 Method not implemented as expected @@ -96,7 +96,7 @@ PUT VNFD in Individual VNF Package (Method not implemented) PATCH VNFD in Individual VNF Package (Method not implemented) Log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} PATCH ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/vnfd Integer response status 405 Log Received 405 Method not implemented as expected @@ -104,7 +104,7 @@ PATCH VNFD in Individual VNF Package (Method not implemented) DELETE VNFD in Individual VNF Package (Method not implemented) Log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} DELETE ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId} Integer response status 405 Log Received 405 Method not implemented as expected diff --git a/SOL003/VNFPackageManagement-API/VNFPackages.robot b/SOL003/VNFPackageManagement-API/VNFPackages.robot index 4e65ec2ce01e844a7983344fee99059d7c94735e..2b37dbf993516a9c248c6461495a5618a0e0833c 100644 --- a/SOL003/VNFPackageManagement-API/VNFPackages.robot +++ b/SOL003/VNFPackageManagement-API/VNFPackages.robot @@ -26,10 +26,6 @@ GET all Packages ${additional_artifacts}= Get Value From Json ${result} $..additionalArtifacts Should Be Empty ${additional_artifacts} Log additionalArtifact element is missing as excepted - Log Checking missing information for _links element - ${links}= Get Value From Json ${result} $.._links - Should Be Empty ${links} - Log _links element is missing as excepted GET all Packages - Filter Log Trying to get all VNF Packages present in the NFVO Catalogue, using filter params @@ -131,10 +127,7 @@ GET all Packages - exclude_default ${additional_artifacts}= Get Value From Json ${vnfPkgInfos} $..additionalArtifacts Should Be Empty ${additional_artifacts} Log additionalArtifact element is missing as excepted - Log Checking missing information for _links element - ${links}= Get Value From Json ${vnfPkgInfos} $.._links - Should Be Empty ${links} - Log _links element is missing as excepted + GET all Packages - fields Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields diff --git a/SOL003/VNFPackageManagement-API/environment/individualVnfPackage.txt b/SOL003/VNFPackageManagement-API/environment/individualVnfPackage.txt index 6feffadbea9b9b71e678c0846cbb2f8ae4689075..cc0526b0226604c17dcd344182d6a9732ebf5d28 100644 --- a/SOL003/VNFPackageManagement-API/environment/individualVnfPackage.txt +++ b/SOL003/VNFPackageManagement-API/environment/individualVnfPackage.txt @@ -1,3 +1,2 @@ *** Variables *** -${vnfPackageId} 4bbca710-c00e-11e8-b568-0800200c9a66 ${erroneousVnfPackageId} erroneousVnfPackageId # Given ID for vnfPkg not present in database diff --git a/SOL003/VNFPerformanceManagement-API/PMJobs.robot b/SOL003/VNFPerformanceManagement-API/PMJobs.robot index 4bf83d6ffd4c1535e2832c84c8d4c3aa208af948..40c47dfaaf1e27d372384c124e3b9d4b184a7d24 100644 --- a/SOL003/VNFPerformanceManagement-API/PMJobs.robot +++ b/SOL003/VNFPerformanceManagement-API/PMJobs.robot @@ -119,10 +119,7 @@ GET all Pm Jobs - exclude_fields ${reports}= Get Value From Json ${result} $..reports Should Be Empty ${reports} Log Reports element is empty as expected - Log Checking that criteria element is missing - ${criteria}= Get Value From Json ${result} $..criteria - Should Be Empty ${criteria} - Log Criteria element is empty as expected + GET all Pm Jobs - Negative (wronge filter name) Log Trying to get all PM Jobs present in the VNFM, using an erroneous filter param diff --git a/SOL005/NSDManagement-API/IndividualNSDescriptor.robot b/SOL005/NSDManagement-API/IndividualNSDescriptor.robot index a5b5ce59145ab6f21a359d81b20e972a6ad4cf83..a0dada4eec36c4dcf5a709a77caf767dd50c626e 100644 --- a/SOL005/NSDManagement-API/IndividualNSDescriptor.robot +++ b/SOL005/NSDManagement-API/IndividualNSDescriptor.robot @@ -6,9 +6,11 @@ Resource environment/nsDescriptors.txt # Specific nsDescriptors Para Library OperatingSystem Library JSONLibrary Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} - Library JSONSchemaLibrary schemas/ + *** Variable *** +${original_etag} 1234 + *** Test Cases *** GET Single Network Service Descriptor [Documentation] The GET method reads information about an individual NS descriptor. @@ -26,6 +28,8 @@ GET Single Network Service Descriptor ${result}= Output response body Validate Json NsdInfo.schema.json ${result} Log Validation OK + ${etag} Output response header ETag + Set Suite Variable &{original_etag} ${etag} GET Single Network Service Descriptor (Negative: Not found) @@ -60,6 +64,7 @@ PATCH Single Network Service Descriptor - (Disabling a nsdInfo) Log Trying to perform a PATCH. As prerequisite the nsdInfo shall be in enabled operational state Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} + Set Headers {"If-Match": "${original_etag[0]}"} ${body}= Get File jsons/NsdInfoModificationDisable.json Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} PATCH ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoId} ${body} @@ -83,7 +88,7 @@ PATCH Single Network Service Descriptor - (Enabling an previously disabled nsdIn Log Validation of NsdInfoModifications OK -PATCH Single Network Service Descriptor - NEGATIVE (Trying to enable an previously enabled nsdInfo) +PATCH Single Network Service Descriptor - NEGATIVE (Trying to enable a previously enabled nsdInfo) Log Trying to perform a PATCH. As prerequisite the nsdInfo shall be in enabled operational state Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} @@ -104,13 +109,13 @@ PATCH Single Network Service Descriptor - NEGATIVE (Trying to enable an previous Log Trying to perform a PATCH. As prerequisite the nsdInfo shall be modified by another entity Set Headers {"Accept": "${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} - Set Headers {"If-Match": "${Etag}"} + Set Headers {"If-Match": "${original_etag[0]}"} ${body}= Get File jsons/NsdInfoModificationEnable.json Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} PATCH ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${modifiedNsdInfoId} ${body} Integer response status 412 Log Received 412 Precondition failed as expected - ${returned_etag}= Output response headers Etag + ${returned_etag}= Output response headers ETag Log Verify different etags Should Not Be Equal ${Etag} ${returned_etag} ${contentType}= Output response headers Content-Type diff --git a/SOL005/NSFaultManagement-API/IndividualAlarm.robot b/SOL005/NSFaultManagement-API/IndividualAlarm.robot index b7db7a345f8ab33a1abbc8ab855c939f03f3f98c..479d648c9446f5afbb1b82a10d2e6aa03b0ba300 100644 --- a/SOL005/NSFaultManagement-API/IndividualAlarm.robot +++ b/SOL005/NSFaultManagement-API/IndividualAlarm.robot @@ -51,7 +51,7 @@ GET information about Invalid Individual Alarm PUT Individual Alarm - Method not implemented [Documentation] Test ID: 8.4.3.3 ... Test title:PUT Individual Alarm - Method not implemented - ... Test objective: The objective is to post alarms + ... Test objective: The objective is to put an individual alarm ... Pre-conditions: ... Reference: section 8.4.3 - SOL005 v2.4.1 ... Config ID: @@ -106,7 +106,7 @@ PATCH Alarm - Precondition failed DELETE Individual Alarm - Method not implemented [Documentation] Test ID: 8.4.3.5 ... Test title:DELETE Individual Alarm - Method not implemented - ... Test objective: The objective is to post alarms + ... Test objective: The objective is to Delete an individual alarms ... Pre-conditions: ... Reference: section 8.4.3 - SOL005 v2.4.1 ... Config ID: diff --git a/SOL005/NSFaultManagement-API/IndividualSubscription.robot b/SOL005/NSFaultManagement-API/IndividualSubscription.robot new file mode 100644 index 0000000000000000000000000000000000000000..1f49c0ca443db0a4e56aac958d55cf9da0133e9d --- /dev/null +++ b/SOL005/NSFaultManagement-API/IndividualSubscription.robot @@ -0,0 +1,74 @@ +*** Settings *** +Resource environment/variables.txt +Resource NSFMOperationKeywords.robot +Library JSONLibrary +Library JSONSchemaLibrary schemas/ +Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} + +Documentation This resource represents an individual subscription for NFVO alarms. +... The client can use this resource to read and to terminate a subscription to notifications related to NFVO fault management. +Suite Setup Check Individual Subscription existance + +*** Test Cases *** +Post Individual Subscription - Method not implemented + [Documentation] Test ID: 8.4.5.1 + ... Test title:POST Individual subscription - Method not implemented + ... Test objective: The objective is to POST an individual subscription + ... Pre-conditions: + ... Reference: section 8.4.5 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do POST Individual Subscription + Check HTTP Response Status Code Is 405 + +Get Information about an individual subscription + [Documentation] Test ID: 8.4.5.2 + ... Test title: Retrieve the alarm subscription + ... Test objective: The objective is to read an individual subscription for NFVO alarms subscribed by the client + ... Pre-conditions: The subscription with the given id exists + ... Reference: section 8.4.5 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do GET Individual Subscription + Check HTTP Response Status Code Is 200 + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is FmSubscription.schema.json + +PUT an individual subscription - Method not implemented + [Documentation] Test ID: 8.4.5.3 + ... Test title:PUT Individual subscription - Method not implemented + ... Test objective: The objective is to PUT an individual subscription + ... Pre-conditions: + ... Reference: section 8.4.5 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do PUT Individual Subscription + Check HTTP Response Status Code Is 405 + +PATCH an individual subscription - Method not implemented + [Documentation] Test ID: 8.4.5.4 + ... Test title:PATCH Individual subscription - Method not implemented + ... Test objective: The objective is to PATCH an individual subscription + ... Pre-conditions: + ... Reference: section 8.4.5 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do PATCH Individual Subscription + Check HTTP Response Status Code Is 405 + +DELETE an individual subscription + [Documentation] Test ID: 8.4.5.5 + ... Test title:DELETE an individual subscription + ... Test objective: The objective is to DELETE an individual subscription + ... Pre-conditions: The Subsbcription already exists + ... Reference: section 8.4.5 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do DELETE Individual Subscription + Check HTTP Response Status Code Is 204 + \ No newline at end of file diff --git a/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot b/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot index 9acf153667496285181af65f0bf726cecb8c9fc3..27fe2485b2ec809631fa686fb2a443b1ed0b1fb2 100644 --- a/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot +++ b/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot @@ -4,9 +4,22 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} Library JSONLibrary Library JSONSchemaLibrary schemas/ Library OperatingSystem - +#Suite Teardown Terminate All Processes kill=true +Library MockServerLibrary +Library Process *** Keywords *** +Create Sessions + Start Process java -jar ../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar -serverPort ${callback_port} alias=mockInstance + Wait For Process handle=mockInstance timeout=5s on_timeout=continue + Create Mock Session ${callback_uri}:${callback_port} #The API producer is set to NFVO according to SOL002-7.3.4 + +Check Individual Subscription existance + Set Headers {"Accept":"${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + Get ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} + Integer response status 200 + Check HTTP Response Status Code Is [Arguments] ${expected_status} Log Validate Status code @@ -14,8 +27,8 @@ Check HTTP Response Status Code Is Log Status code validated Check HTTP Response Header Contains - [Arguments] ${CONTENT_TYPE} - Should Contain ${response[0]['headers']} ${CONTENT_TYPE} + [Arguments] ${HEADER_TOCHECK} + Should Contain ${response[0]['headers']} ${HEADER_TOCHECK} Log Header is present Check HTTP Response Body Json Schema Is @@ -29,6 +42,14 @@ Check HTTP Response Header ContentType is Should Be Equal ${response[0]['headers']['Content-Type']} ${expected_contentType} Log Content Type validated +Check Alarm notification Endpoint has been delivered + Log Verifying results + Wait Until Keyword Succeeds ${sleep_interval} Verify Mock Expectation ${req_mock} + +Clean Endpoint + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + Do POST Alarms log Trying to perform a POST. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -52,7 +73,6 @@ Do PUT Alarms Put ${apiRoot}/${apiName}/${apiVersion}/alarms ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - Do DELETE Alarms log Trying to perform a DELETE. This method should not be implemented @@ -143,7 +163,6 @@ Do PATCH Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - Do PATCH Individual Alarm Conflict log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} @@ -154,5 +173,170 @@ Do PATCH Individual Alarm Conflict Patch ${apiRoot}/${apiName}/${apiVersion}/alarms/${alarmId} ${body} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - - \ No newline at end of file + +Do POST Subscription + Log Create subscription instance by POST to ${apiRoot}/${apiName}/${apiVersion}/subscriptions + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + ${body}= Get File jsons/fmSubscriptionRequest.json + Post ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do GET Subscriptions + Log Get the list of active subscriptions + Set Headers {"Accept": "${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do GET Subscriptions with filter + Log Get the list of active subscriptions using a filter + Set Headers {"Accept": "${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do GET Subscriptions with Invalid filter + Log Get the list of active subscriptions using an invalid filter + Set Headers {"Accept": "${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do PUT Subscriptions + log Trying to perform a PUT Subscriptions. This method should not be implemented + Set Headers {"Accept":"${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + Put ${apiRoot}/${apiName}/${apiVersion}/subscriptions + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do PATCH Subscriptions + log Trying to perform a PATCH Subscriptions. This method should not be implemented + Set Headers {"Accept":"${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + Patch ${apiRoot}/${apiName}/${apiVersion}/subscriptions + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do DELETE Subscriptions + log Trying to perform a DELETE Subscriptions. This method should not be implemented + Set Headers {"Accept":"${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + Delete ${apiRoot}/${apiName}/${apiVersion}/subscriptions + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do POST Individual Subscription + 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}/subscriptions/${subscriptionId} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do GET 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} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do PUT Individual Subscription + 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}/subscriptions/${subscriptionId} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do PATCH Individual Subscription + 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}/subscriptions/${subscriptionId} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + +Do DELETE Individual Subscription + log Trying to perform a DELETE. + Set Headers {"Accept":"${ACCEPT}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + Delete ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + + +Do POST Alarm Notification Endpoint + log The POST method delivers a notification - Information of a NFVO alarm. + ${json}= Get File schemas/alarmNotification.schema.json + ${BODY}= evaluate json.loads('''${json}''') json + Log Creating mock request and response to handle alarmNotification + &{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} + Set Global Variable @{req_mock} ${req} + Set Global Variable @{resp_mock} ${rsp} + +Do POST Alarm Clearance Notification Endpoint + log The POST method delivers a notification - Information of a NFVO alarm. + ${json}= Get File schemas/alarmClearedNotification.schema.json + ${BODY}= evaluate json.loads('''${json}''') json + Log Creating mock request and response to handle alarmNotification + &{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} + Set Global Variable @{req_mock} ${req} + Set Global Variable @{resp_mock} ${rsp} + +Do POST Alarm List Rebuilt Notification Endpoint + log The POST method delivers a notification - Information of a NFVO alarm. + ${json}= Get File schemas/alarmListRebuiltNotification.schema.json + ${BODY}= evaluate json.loads('''${json}''') json + Log Creating mock request and response to handle alarmNotification + &{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} + Set Global Variable @{req_mock} ${req} + Set Global Variable @{resp_mock} ${rsp} + +Do GET Notification Endpoint + 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} + Set Global Variable @{req_mock} ${req} + Set Global Variable @{resp_mock} ${rsp} + +Do PUT Notification + Log PUT Method not implemented + &{req}= Create Mock Request Matcher PUT ${callback_endpoint} + &{rsp}= Create Mock Response status_code=405 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + +Do PATCH Notification + Log PATCH Method not implemented + &{req}= Create Mock Request Matcher PATCH ${callback_endpoint} + &{rsp}= Create Mock Response status_code=405 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + +Do DELETE Notification + Log DELETE Method not implemented + &{req}= Create Mock Request Matcher DELETE ${callback_endpoint} + &{rsp}= Create Mock Response status_code=405 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} \ No newline at end of file diff --git a/SOL005/NSFaultManagement-API/NotificationEndpoint.robot b/SOL005/NSFaultManagement-API/NotificationEndpoint.robot new file mode 100644 index 0000000000000000000000000000000000000000..c9b769fc0a3c8bee7bdffc8fa51637535895d14c --- /dev/null +++ b/SOL005/NSFaultManagement-API/NotificationEndpoint.robot @@ -0,0 +1,97 @@ +*** Settings *** +Resource environment/variables.txt +Resource NSFMOperationKeywords.robot +Suite Teardown Terminate All Processes kill=true +Library MockServerLibrary +Library Process +Library OperatingSystem +Suite Setup Create Sessions + +*** Test Cases *** +Deliver a notification - Alarm + [Documentation] Test ID: 8.4.6.2-1 + ... Test title: Deliver a notification - Alarm + ... Test objective: The objective is to notify a NFVO alarm or that the alarm list has been rebuilt. + ... Pre-conditions: The NFVO has subscribed to the NSFM alarm + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do POST Alarm Notification Endpoint + Check Alarm notification Endpoint has been delivered + Clean Endpoint + +Deliver a notification - Alarm Clearance + [Documentation] Test ID: 8.4.6.2-2 + ... Test title: Deliver a notification - Alarm Clearance + ... Test objective: The objective is to notify a NFVO alarm or that the alarm list has been rebuilt. + ... Pre-conditions: The NFVO has subscribed to the NSFM alarm + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do POST Alarm Clearance Notification Endpoint + Check Alarm notification Endpoint has been delivered + Clean Endpoint + +Deliver a notification - Alarm List Rebuilt + [Documentation] Test ID: 8.4.6.2-3 + ... Test title: Deliver a notification - Alarm List Rebuilt + ... Test objective: The objective is to notify a NFVO alarm or that the alarm list has been rebuilt. + ... Pre-conditions: The NFVO has subscribed to the NSFM alarm + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do POST Alarm List Rebuilt Notification Endpoint + Check Alarm notification Endpoint has been delivered + Clean Endpoint + +Test a notification end point + [Documentation] Test ID: 8.4.6.3 + ... Test title: Test a notification end point + ... Test objective: The objective is to allow the server to test the notification endpoint that is provided by the client, e.g. during subscription + ... Pre-conditions: + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do GET Notification Endpoint + Check Alarm notification Endpoint has been delivered + Clean Endpoint + +PUT notification - Method not implemented + [Documentation] Test ID: 8.4.6.4 + ... Test title: PUT notification - Method not implemented + ... Test objective: The objective is to PUT a notification endpoint. The method should not be implemented + ... Pre-conditions: + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do PUT Notification + Clean Endpoint + +PATCH notification - Method not implemented + [Documentation] Test ID: 8.4.6.5 + ... Test title: PATCH notification - Method not implemented + ... Test objective: The objective is to PATCH a notification endpoint. The method should not be implemented + ... Pre-conditions: + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do PATCH Notification + Clean Endpoint + +DELETE notification - Method not implemented + [Documentation] Test ID: 8.4.6.6 + ... Test title: DELETE notification - Method not implemented + ... Test objective: The objective is to DELETE a notification endpoint. The method should not be implemented + ... Pre-conditions: + ... Reference: section 8.4.6 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do DELETE Notification + Clean Endpoint \ No newline at end of file diff --git a/SOL005/NSFaultManagement-API/Subscriptions.robot b/SOL005/NSFaultManagement-API/Subscriptions.robot new file mode 100644 index 0000000000000000000000000000000000000000..bfb48bf8b32c22842a07621ebd7281e0ba1d61a4 --- /dev/null +++ b/SOL005/NSFaultManagement-API/Subscriptions.robot @@ -0,0 +1,134 @@ +*** Settings *** +Resource environment/variables.txt +Resource NSFMOperationKeywords.robot +Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} +Library OperatingSystem +Library JSONLibrary +Library JSONSchemaLibrary schemas/ + +*** Test Cases *** +Create a new subscription + [Documentation] Test ID: 8.4.4.1 + ... Test title: Create a new alarm subscription + ... Test objective: The objective is to create a new subscription. + ... Pre-conditions: no subscription with the same filter and callbackUri exists + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do POST Subscription + Check HTTP Response Status Code Is 201 + Check HTTP Response Header Contains Location + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is FmSubscription.schema.json + + +Create a new Subscription - DUPLICATION + [Documentation] Test ID: 8.4.4.1-2 + ... Test title: Create a new alarm subscription - DUPLICATION + ... Test objective: The objective is to create a new subscription. + ... Pre-conditions: subscription with the same filter and callbackUri exists + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists + ... Post-Conditions: + Depends On Test Create a new subscription + Pass Execution If ${NFVO_DUPLICATION} == 0 NVFO is not permitting duplication. Skipping the test + Do POST Subscription + Check HTTP Response Status Code Is 201 + Check HTTP Response Header Contains Location + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is FmSubscription.schema.json + +Create a new Subscription - NO-DUPLICATION + [Documentation] Test ID: 8.4.4.1-3 + ... Test title: Create a new alarm subscription - NO DUPLICATION + ... Test objective: The objective is to create a new subscription. + ... Pre-conditions: subscription with the same filter and callbackUri exists + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: the NFVO decides to not create a duplicate subscription resource + ... Post-Conditions: + Depends On Test Create a new subscription + Pass Execution If ${NFVO_DUPLICATION} == 1 NFVO permits duplication. Skipping the test + Do POST Subscription + Check HTTP Response Status Code Is 303 + Check HTTP Response Header Contains Location + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is FmSubscription.schema.json + +GET Subscriptions + [Documentation] Test ID: 8.4.4.2 + ... Test title: Retrieve a list of alarm subscriptions + ... Test objective: The objective is to retrieve the list of active subscriptions + ... Pre-conditions: + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do GET Subscriptions + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions.schema.json + +GET Subscription - Filter + [Documentation] Test ID: 8.4.4.2-1 + ... Test title: Retrieve a list of alarm subscriptions + ... Test objective: The objective is to retrieve the list of active subscriptions with filter + ... Pre-conditions: + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do GET Subscriptions with filter + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions.schema.json + +GET subscriptions - Bad Request Invalid attribute-based filtering parameters + [Documentation] Test ID: 8.4.4.2-2 + ... Test title: Retrieve a list of alarm subscriptions + ... Test objective: The objective is to retrieve the list of active subscriptions with Invalid attribute-based filtering parameters + ... Pre-conditions: + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do GET Subscriptions with Invalid filter + Check HTTP Response Status Code Is 400 + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is ProblemDetails.schema.json + +PUT subscriptions - Method not implemented + [Documentation] Test ID: 8.4.4.3 + ... Test title:PUT subscriptions - Method not implemented + ... Test objective: The objective is to PUT subscriptions + ... Pre-conditions: + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do Put Subscriptions + Check HTTP Response Status Code Is 405 + +PATCH subscriptions - Method not implemented + [Documentation] Test ID: 8.4.4.4 + ... Test title:PUT subscriptions - Method not implemented + ... Test objective: The objective is to PATCH subscriptions + ... Pre-conditions: + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do PATCH Subscriptions + Check HTTP Response Status Code Is 405 + +DELETE subscriptions - Method not implemented + [Documentation] Test ID: 8.4.4.5 + ... Test title:DELETE subscriptions - Method not implemented + ... Test objective: The objective is to DELETE subscriptions + ... Pre-conditions: + ... Reference: section 8.4.4 - SOL005 v2.4.1 + ... Config ID: + ... Applicability: + ... Post-Conditions: + Do DELETE Subscriptions + Check HTTP Response Status Code Is 405 \ No newline at end of file diff --git a/SOL005/NSFaultManagement-API/environment/variables.txt b/SOL005/NSFaultManagement-API/environment/variables.txt index 69b955eb9bc78570432c876d77aed5d1153c48bc..319dd27be62ed98454f7b5a16a6cb38ef81d1a3c 100644 --- a/SOL005/NSFaultManagement-API/environment/variables.txt +++ b/SOL005/NSFaultManagement-API/environment/variables.txt @@ -39,3 +39,8 @@ ${AlarmClearedNotification} {} ${AlarmListRebuiltNotification} {} ${response} {} + +${req_mock} {} +${resp_mock} {} + + diff --git a/SOL005/NSFaultManagement-API/jsons/fmSubscriptionRequest.json b/SOL005/NSFaultManagement-API/jsons/fmSubscriptionRequest.json new file mode 100644 index 0000000000000000000000000000000000000000..c4528b2a543239460e40a621dcedd383c4426499 --- /dev/null +++ b/SOL005/NSFaultManagement-API/jsons/fmSubscriptionRequest.json @@ -0,0 +1,10 @@ +{ + "filter": { + "nsInstanceSubscriptionFilter": { + "notificationTypes": [ + "AlarmNotification" + ] + } + }, + "callbackUri": "http://127.0.0.1/subscribe" +} \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/NSInstances.robot b/SOL005/NSLifecycleManagement-API/NSInstances.robot new file mode 100644 index 0000000000000000000000000000000000000000..9044e3227184475178458c01abadec401b2bb8d8 --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/NSInstances.robot @@ -0,0 +1,23 @@ +*** Settings *** +Resource environment/variables.txt +Resource NSLCMOperationKeywords.robot +Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} +Library OperatingSystem +Library JSONLibrary +Library JSONSchemaLibrary schemas/ + +*** Test Cases *** +Create a new NsInstance + Do POST New vnfInstance + Check HTTP Response Status Code Is 201 + Check HTTP Response Header Contains Location + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is NsInstance.schema.json + +Get information about multiple NS instances + Do GET NsInstances + Check HTTP Response Status Code Is 200 + Check HTTP Response Header ContentType is ${CONTENT_TYPE} + Check HTTP Response Body Json Schema Is vnfInstances.schema.json + Log Validation OK + diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot new file mode 100644 index 0000000000000000000000000000000000000000..1fa1c84df3558a9031493e703aba8eb2177b7328 --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot @@ -0,0 +1,53 @@ +*** Settings *** +Resource environment/variables.txt +Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} +Library JSONLibrary +Library JSONSchemaLibrary schemas/ +Library OperatingSystem + + +*** Keywords *** +Check HTTP Response Status Code Is + [Arguments] ${expected_status} + Log Validate Status code + Should Be Equal ${response[0]['status']} ${expected_status} + Log Status code validated + +Check HTTP Response Header Contains + [Arguments] ${HEADER_TOCHECK} + Should Contain ${response[0]['headers']} ${HEADER_TOCHECK} + Log Header is present + +Check HTTP Response Body Json Schema Is + [Arguments] ${schema} + Validate Json ${schema} ${response[0]['body']} + Log Json Schema Validation OK + +Check HTTP Response Header ContentType is + [Arguments] ${expected_contentType} + Log Validate content type + Should Be Equal ${response[0]['headers']['Content-Type']} ${expected_contentType} + Log Content Type validated + + +Do POST New vnfInstance + Log Create NS instance by POST to ${apiRoot}/${apiName}/${apiVersion}/ns_instances + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + ${body}= Get File jsons/CreateNsRequest.json + Post ${apiRoot}/${apiName}/${apiVersion}/ns_instances ${body} + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + + +Do GET NsInstances + Log Query NS The GET method queries information about multiple NS instances. + Set Headers {"Accept":"${ACCEPT}"} + Set Headers {"Content-Type": "${CONTENT_TYPE}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} + Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances + ${outputResponse}= Output response + Set Global Variable @{response} ${outputResponse} + + \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/environment/variables.txt b/SOL005/NSLifecycleManagement-API/environment/variables.txt new file mode 100644 index 0000000000000000000000000000000000000000..5d37e4f2ceea551f9236aa2debeaa88835ca8611 --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/environment/variables.txt @@ -0,0 +1,45 @@ +*** Variables *** +${VNFM_HOST} localhost # Hostname of the VNFM +${VNFM_PORT} 8080 # Listening port of the VNFM +${NFVO_HOST} localhost # Hostname of the NFVO +${NFVO_PORT} 8081 # Listening port of the NFVO +${VNFM_SCHEMA} https +${NFVO_SCHEMA} https + +${AUTHORIZATION} Bearer QWxhZGRpbjpvcGVuIHNlc2FtZQ== +${CONTENT_TYPE} application/json +${CONTENT_TYPE_PATCH} application/merge-patch+json +${ACCEPT} application/json +${apiRoot} / +${apiName} nslcm +${apiVersion} v1 +${AUTH_USAGE} 1 +${WRONG_AUTHORIZATION} Bearer XXXXXWRONGXXXXX +${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f +${vnfInstanceName} Test-VnfInstance +${vnfInstanceDescription} description vnf +${vnfInstanceDescription_Update} Updated description vnf +${SINGLE_FILE_VNFD} 1 # If VNFD is PLAIN TEXT +${ACCEPT_PLAIN} text/plain +${ACCEPT_ZIP} application/zip +${vnfPkgId_processing} 007c111c-38a1-42c0-a666-7475ecb1567c +${ARTIFACT_TYPE} application/octet-stream +${ARTIFACT_ID} artifactId +${WRONG_ACCEPT} application/json +${vnfLcmOpOccId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d +${CancelMode} GRACEFUL +${VNFM_DUPLICATION} 0 +${sub_filter} filter +${sub_filter_invalid} filter_invalid +${subscriptionId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f +${VnfLcmOperationOccurrenceNotification} {} +${VnfIdentifierCreationNotification} {} +${VnfIdentifierDeletionNotification} {} + +${callback_uri} http://localhost +${callback_port} 9091 +${callback_endpoint} /endpoint +${callback_endpoint_error} /endpoint_404 +${sleep_interval} 20s + +${response} {} diff --git a/SOL005/NSLifecycleManagement-API/jsons/CreateNsRequest.json b/SOL005/NSLifecycleManagement-API/jsons/CreateNsRequest.json new file mode 100644 index 0000000000000000000000000000000000000000..a2ae366e61dfc73f6588bd21ab7cebccccf559c2 --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/jsons/CreateNsRequest.json @@ -0,0 +1,24 @@ +{ +"CreateNsRequest": { + "type": "object", + "required": [ + "nsdId", + "nsName", + "nsDescription" + ], + "properties": { + "nsdId": { + "description": "Identifier of the NSD that defines the NS instance to be created.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsName": { + "description": "Human-readable name of the NS instance to be created.\n", + "type": "string" + }, + "nsDescription": { + "description": "Human-readable description of the NS instance to be created.\n", + "type": "string" + } + } + } +} \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/jsons/SOL005_DefReq.json b/SOL005/NSLifecycleManagement-API/jsons/SOL005_DefReq.json new file mode 100644 index 0000000000000000000000000000000000000000..1ba241bdb7ce89ec0971da59f724757bd2d2acb8 --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/jsons/SOL005_DefReq.json @@ -0,0 +1,2880 @@ + +{ + "definitions": { + "CreateNsRequest": { + "type": "object", + "required": [ + "nsdId", + "nsName", + "nsDescription" + ], + "properties": { + "nsdId": { + "description": "Identifier of the NSD that defines the NS instance to be created.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsName": { + "description": "Human-readable name of the NS instance to be created.\n", + "type": "string" + }, + "nsDescription": { + "description": "Human-readable description of the NS instance to be created.\n", + "type": "string" + } + } + }, + "NsInstance": { + "description": "This type represents a response for Query NS operation. It shall comply with the provisions defined in Table 6.5.2.10-1.\n", + "type": "object", + "required": [ + "id", + "nsInstanceName", + "nsInstanceDescription", + "nsdId", + "nsdInfoId", + "nsState" + ], + "properties": { + "id": { + "description": "Identifier of the NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsInstanceName": { + "description": "Human readable name of the NS instance.\n", + "type": "string" + }, + "nsInstanceDescription": { + "description": "Human readable description of the NS instance.\n", + "type": "string" + }, + "nsdId": { + "description": "Identifier of the NSD on which the NS instance is based.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsdInfoId": { + "description": "Identifier of the NSD information object on which the NS instance is based. This identifier was allocated by the NFVO.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "flavourId": { + "description": "Identifier of the NS deployment flavor applied to the NS instance. This attribute shall be present if the nsState attribute value is INSTANTIATED.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "vnfInstance": { + "description": "Information on constituent VNF(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfInstance" + } + }, + "pnfInfo": { + "description": "Information on the PNF(s) that are part of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/PnfInfo" + } + }, + "virtualLinkInfo": { + "description": "Information on the VL(s) of the NS instance. This attribute shall be present if the nsState attribute value is INSTANTIATED and if the NS instance has specified connectivity.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsVirtualLinkInfo" + } + }, + "vnffgInfo": { + "description": "Information on the VNFFG(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnffgInfo" + } + }, + "sapInfo": { + "description": "Information on the SAP(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/SapInfo" + } + }, + "nestedNsInstanceId": { + "description": "Identifier of the nested NS(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "nsState": { + "description": "The state of the NS instance. Permitted values: NOT_INSTANTIATED: The NS instance is terminated or not instantiated. INSTANTIATED: The NS instance is instantiated.\n", + "type": "string", + "enum": [ + "NOT_INSTANTIATED", + "INSTANTIATED" + ] + }, + "nsScaleStatus": { + "description": "Status of each NS scaling aspect declared in the applicable DF, how \"big\" the NS instance has been scaled w.r.t. that aspect. This attribute shall be present if the nsState attribute value is INSTANTIATED.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsScaleInfo" + } + }, + "additionalAffinityOrAntiAffinityRule": { + "description": "Information on the additional affinity or anti-affinity rule from NS instantiation operation. Shall not conflict with rules already specified in the NSD.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AffinityOrAntiAffinityRule" + } + }, + "_links": { + "type": "object", + "description": "Links to resources related to this resource.", + "required": [ + "self" + ], + "properties": { + "self": { + "description": "URI of this resource.\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "nestedNsInstances": { + "description": "Links to resources related to this notification.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Link" + } + }, + "instantiate": { + "description": "Link to the \"instantiate\" task resource, if the related operation is possible based on the current status of this NS instance resource (i.e. NS instance in NOT_INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "terminate": { + "description": "Link to the \"terminate\" task resource, if the related operation is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "update": { + "description": "Link to the \"update\" task resource, if the related operation is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "scale": { + "description": "Link to the \"scale\" task resource, if the related operation is supported for this NS instance, and is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "heal": { + "description": "Link to the \"heal\" task resource, if the related operation is supported for this NS instance, and is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + } + } + } + } + }, + "VnfInstance": { + "description": "This type represents a VNF instance.\n", + "type": "object", + "required": [ + "id", + "vnfdId", + "vnfProvider", + "vnfProductName", + "vnfSoftwareVersion", + "vnfdVersion", + "vnfPkgId", + "instantiationState" + ], + "properties": { + "id": { + "description": "Identifier of the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfInstanceName": { + "description": "Name of the VNF instance. This attribute can be modified with the PATCH method.\n", + "type": "string" + }, + "vnfInstanceDescription": { + "description": "Human-readable description of the VNF instance. This attribute can be modified with the PATCH method.\n", + "type": "string" + }, + "vnfdId": { + "description": "Identifier of the VNFD on which the VNF instance is based.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfProvider": { + "description": "Provider of the VNF and the VNFD. The value is copied from the VNFD.\n", + "type": "string" + }, + "vnfProductName": { + "description": "Name to identify the VNF Product. The value is copied from the VNFD.\n", + "type": "string" + }, + "vnfSoftwareVersion": { + "description": "Software version of the VNF. The value is copied from the VNFD.\n", + "$ref": "#/definitions/Version" + }, + "vnfdVersion": { + "description": "Identifies the version of the VNFD. The value is copied from the VNFD.\n", + "$ref": "#/definitions/Version" + }, + "vnfPkgId": { + "description": "Identifier of information held by the NFVO about the specific VNF package on which the VNF is based. This identifier was allocated by the NFVO. This attribute can be modified with the PATCH method.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfConfigurableProperties": { + "description": "Current values of the configurable properties of the VNF instance. Configurable properties referred in this attribute are declared in the VNFD. ETSI GS NFV-SOL 001 specifies the structure and format of the VNFD based on TOSCA specifications. VNF configurable properties are sometimes also referred to as configuration parameters applicable to a VNF. Some of these are set prior to instantiation and cannot be modified if the VNF is instantiated, some are set prior to instantiation (are part of initial configuration) and can be modified later, and others can be set only after instantiation. The applicability of certain configuration may depend on the VNF and the required operation of the VNF at a certain point in time. These configurable properties include the following standard attributes, which are declared in the VNFD if auto-scaling and/or auto-healing are supported by the VNF: * isAutoscaleEnabled: If present, the VNF supports auto-scaling. If set to true, auto-scaling is currently enabled. If set to false, auto-scaling is currently disabled. * isAutohealEnabled: If present, the VNF supports auto-healing. If set to true, auto-healing is currently enabled. If set to false, auto-healing is currently disabled. This attribute can be modified with the PATCH method.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + }, + "vimId": { + "description": "Identifier of a VIM that manages resources for the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "instantiationState": { + "description": "The instantiation state of the VNF.\n", + "type": "string", + "enum": [ + "NOT_INSTANTIATED", + "INSTANTIATED" + ] + }, + "instantiatedVnfInfo": { + "description": "Information specific to an instantiated VNF instance. This attribute shall be present if the instantiateState attribute value is INSTANTIATED.\n", + "type": "object", + "required": [ + "flavourId", + "vnfState" + ], + "properties": { + "flavourId": { + "description": "Identifier of the VNF deployment flavor applied to this VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "vnfState": { + "description": "The state of the VNF instance.\n", + "$ref": "#/definitions/VnfOperationalStateType" + }, + "scaleStatus": { + "description": "Scale status of the VNF, one entry per aspect. Represents for every scaling aspect how \"big\" the VNF has been scaled w.r.t. that aspect.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfScaleInfo" + } + }, + "extCpInfo": { + "description": "Information about the external CPs exposed by the VNF instance.\n", + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "required": [ + "id", + "cpdId" + ], + "properties": { + "id": { + "description": "Identifier of the external CP instance and the related information instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "cpdId": { + "description": "Identifier of the external CPD, VnfExtCpd, in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "cpProtocolInfo": { + "description": "Network protocol information for this CP.\n", + "type": "array", + "items": { + "$ref": "#/definitions/CpProtocolInfo" + } + }, + "extLinkPortId": { + "description": "Identifier of the \"extLinkPortInfo\" structure inside the the \"extVirtualLinkInfo\" structure. Shall be present if the CP is associated to a link port.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + } + } + }, + "extVirtualLinkInfo": { + "description": "Information about the external VLs the VNF instance is connected to.\n", + "type": "array", + "items": { + "$ref": "#/definitions/ExtVirtualLinkInfo" + } + }, + "extManagedVirtualLinkInfo": { + "description": "External virtual links the VNF instance is connected to.\n", + "type": "array", + "items": { + "$ref": "#/definitions/ExtManagedVirtualLinkInfo" + } + }, + "monitoringParameters": { + "description": "Active monitoring parameters.\n", + "type": "array", + "items": { + "$ref": "#/definitions/MonitoringParameter" + } + }, + "localizationLanguage": { + "description": "Information about localization language of the VNF (includes e.g. strings in the VNFD). The localization languages supported by a VNF can be declared in the VNFD, and localization language selection can take place at instantiation time. The value shall comply with the format defined in IETF RFC 5646.\n", + "type": "string" + }, + "vnfcResourceInfo": { + "description": "Information about the virtualised compute and storage resources used by the VNFCs of the VNF instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfcResourceInfo" + } + }, + "virtualLinkResourceInfo": { + "description": "Information about the virtualised network resources used by the VLs of the VNF instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfVirtualLinkResourceInfo" + } + }, + "virtualStorageResourceInfo": { + "description": "Information on the virtualised storage resource(s) used as storage for the VNF instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VirtualStorageResourceInfo" + } + } + } + }, + "metadata": { + "description": "Additional VNF-specific metadata describing the VNF instance. Metadata that are writeable are declared in the VNFD. This attribute can be modified with the PATCH method.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + }, + "extensions": { + "description": "VNF-specific attributes that affect the lifecycle management of this VNF instance by the VNFM, or the lifecycle management scripts. Extensions that are writeable are declared in the VNFD. This attribute can be modified with the PATCH method.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "LccnLinks": { + "description": "This type represents the links to resources that a notification can contain.\n", + "type": "object", + "required": [ + "nsInstance" + ], + "properties": { + "nsInstance": { + "description": "Link to the resource representing the NS instance to which the notified change applies..\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "subscription": { + "description": "Link to the subscription that triggered this notification.\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "lcOpOcc": { + "description": "Link to the lifecycle operation occurrence that this notification is related to. Shall be present if there is a related lifecycle operation occurrence\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + } + } + }, + "Version": { + "description": "A Version.\n", + "type": "string" + }, + "VnfOperationalStateType": { + "type": "string", + "enum": [ + "STARTED", + "STOPPED" + ] + }, + "VnfScaleInfo": { + "required": [ + "aspectId", + "scaleLevel" + ], + "type": "object", + "properties": { + "aspectId": { + "description": "Identifier of the scaling aspect.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "scaleLevel": { + "description": "Indicates the scale level. The minimum value shall be 0 and the maximum value shall be <= maxScaleLevel as described in the VNFD.\n", + "type": "integer" + } + } + }, + "PnfInfo": { + "description": "This type represents the information about a PNF that is part of an NS instance. It shall comply with the provisions defined in Table 6.5.3.13-1.\n", + "type": "object", + "required": [ + "pnfId", + "pnfdId", + "pnfdInfoId", + "pnfProfileId" + ], + "properties": { + "pnfId": { + "description": "Identifier of the PNF. This identifier is allocated by the OSS/BSS.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfName": { + "description": "Name of the PNF.\n", + "type": "string" + }, + "pnfdId": { + "description": "Identifier of the PNFD on which the PNF is based.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfdInfoId": { + "description": "Identifier of the PNFD information onject related to this PNF. This identifier is allocated by the NFVO\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfProfileId": { + "description": "Identifier of the related PnfProfile in the NSD on which the PNF is based.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "cpInfo": { + "description": "Information on the external CP of the PNF.\n", + "$ref": "#/definitions/PnfExtCpInfo" + } + } + }, + "PnfExtCpInfo": { + "description": "This type represents the information about the external CP of the PNF. It shall comply with the provisions defined in Table 6.5.3.17-1.\n", + "type": "object", + "required": [ + "cpInstanceId", + "cpdId" + ], + "properties": { + "cpInstanceId": { + "description": "Identifier of the CP in the scope of the PNF.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInPnf" + }, + "cpdId": { + "description": "Identifier of (reference to) the Connection Point Descriptor (CPD) for this CP.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "cpProtocolData": { + "description": "Parameters for configuring the network protocols on the CP.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/CpProtocolData" + } + } + } + }, + "NsVirtualLinkInfo": { + "description": "This type specifies the information about an NS VL instance. It shall comply with the provisions defined in Table 6.5.3.53-1\n", + "type": "object", + "required": [ + "id", + "nsVirtualLinkDescId" + ], + "properties": { + "id": { + "description": "Identifier of the VL instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + }, + "nsVirtualLinkDescId": { + "description": "Identifier of the VLD in the NSD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "resourceHandle": { + "description": "Identifier(s) of the virtualised network resource(s) realizing the VL instance. See note.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + } + }, + "linkPort": { + "description": "Link ports of the VL instance. Cardinality of zero indicates that no port has yet been created for the VL instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsLinkPortInfo" + } + } + } + }, + "VnffgInfo": { + "description": "Information on the VNFFG(s) of the NS instance.\n", + "type": "object", + "required": [ + "id", + "vnffgdId", + "vnfInstanceId", + "pnfInfoId" + ], + "properties": { + "id": { + "description": "Identifier of this VNFFG instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnffgdId": { + "description": "Identifier of the VNFFGD in the NSD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "vnfInstanceId": { + "description": "Identifier(s) of the constituent VNF instance(s) of this VNFFG instance.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "pnfdInfoId": { + "description": "Identifier(s) of the constituent PNF instance(s) of this VNFFG instance.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "nsVirtualLinkInfoId": { + "description": "Identifier(s) of the constituent VL instance(s) of this VNFFG instance.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + } + }, + "nsCpHandle": { + "description": "Identifiers of the CP instances attached to the constituent VNFs and PNFs or the SAP instances of the VNFFG. See note.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsCpHandle" + } + } + } + }, + "NsCpHandle": { + "description": "This type represents an identifier of the CP or SAP instance. It shall comply with the provisions defined in Table 6.5.3.56-1.\n", + "type": "object", + "properties": { + "vnfInstanceId": { + "description": "Identifier of the VNF instance associated to the CP instance. This attribute shall be present if the CP instance is VNF external CP.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfExtCpInstanceId": { + "description": "Identifier of the VNF external CP instance in the scope of the VNF instance. This attribute shall be present if the CP instance is VNF external CP. See notes 1 and 4.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "pnfInfoId": { + "description": "Identifier of the PNF instance associated to the CP instance. This attribute shall be present if the CP instance is PNF external CP. See notes 2 and 4.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfExtCpInstanceId": { + "description": "Identifier of the PNF external CP instance in the scope of the PNF. This attribute shall be present if the CP instance is PNF external CP. See notes 2 and 4.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInPnf" + }, + "nsInstanceId": { + "description": "Identifier of the NS instance associated to the SAP instance. This attribute shall be present if the CP instance is NS SAP. See notes 3 and 4.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsSapInstanceId": { + "description": "Identifier of the SAP instance in the scope of the NS instance. This attribute shall be present if the CP instance is NS SAP. See notes 3 and 4.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + } + } + }, + "SapInfo": { + "description": "This type represents an SAP instance. It shall comply with the provisions defined in Table 6.5.3.67-1.\n", + "type": "object", + "required": [ + "id", + "sapdId", + "sapName", + "sapProtocolInfo" + ], + "properties": { + "id": { + "description": "Identifier of the SAP instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + }, + "sapdId": { + "description": "Identifier of the SAPD in the NSD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "sapName": { + "description": "Human readable name for the SAP instance.\n", + "type": "string" + }, + "description": { + "description": "Human readable description for the SAP instance.\n", + "type": "string" + }, + "sapProtocolInfo": { + "description": "Network protocol information for this SAP.\n", + "type": "array", + "items": { + "$ref": "#/definitions/CpProtocolInfo" + } + } + } + }, + "CpProtocolInfo": { + "description": "This type describes the protocol layer(s) that a CP or SAP uses together with protocol-related information, like addresses. It shall comply with the provisions defined in Table 6.5.3.58-1.\n", + "type": "object", + "required": [ + "layerProtocol", + "ipOverEthernet" + ], + "properties": { + "layerProtocol": { + "description": "The identifier of layer(s) and protocol(s) associated to the network address information. Permitted values: IP_OVER_ETHERNET See note.\n", + "type": "string", + "enum": [ + "IP_OVER_ETHERNET" + ] + }, + "ipOverEthernet": { + "description": "IP addresses over Ethernet to assign to the CP or SAP instance. Shall be present if layerProtocol is equal to \" IP_OVER_ETHERNET\", and shall be absent otherwise.\n", + "$ref": "#/definitions/IpOverEthernetAddressInfo" + } + } + }, + "IpOverEthernetAddressInfo": { + "description": "This type represents information about a network address that has been assigned. It shall comply with the provisions defined in Table 6.5.3.18-1.\n", + "type": "object", + "required": [ + "macAddress", + "ipAddresses", + "subnetId", + "addresses", + "addressRange" + ], + "properties": { + "macAddress": { + "description": "Assigned MAC address.\n", + "$ref": "SOL005_def.yaml#/definitions/MacAddress" + }, + "ipAddresses": { + "description": "Addresses assigned to the CP instance. Each entry represents IP addresses assigned by fixed or dynamic IP address assignment per subnet.\n", + "type": "array", + "items": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "The type of the IP addresses. Permitted values: IPV4, IPV6.\n", + "type": "string", + "enum": [ + "IPV4", + "IPV6" + ] + }, + "addresses": { + "description": "Fixed addresses assigned (from the subnet defined by \"subnetId\" if provided).\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + } + }, + "isDynamic": { + "description": "Indicates whether this set of addresses was assigned dynamically (true) or based on address information provided as input from the API consumer (false). Shall be present if \"addresses\" is present and shall be absent otherwise.\n", + "type": "boolean" + }, + "addressRange": { + "description": "An IP address range used, e.g., in case of egress connections. Exactly one of \"addresses\" or \"addressRange\" shall be present.\n", + "type": "object", + "required": [ + "minAddress", + "maxAddress" + ], + "properties": { + "minAddress": { + "description": "Lowest IP address belonging to the range.\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + }, + "maxAddress": { + "description": "Highest IP address belonging to the range\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + } + } + }, + "subnetId": { + "description": "Subnet defined by the identifier of the subnet resource in the VIM. In case this attribute is present, IP addresses are bound to that subnet.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVim" + } + } + } + }, + "type": { + "description": "The type of the IP addresses\n", + "type": "string", + "enum": [ + "PV4", + "PV6" + ] + }, + "addresses": { + "description": "Fixed addresses assigned (from the subnet defined by \"subnetId\" if provided). See note.\n", + "type": "array", + "items": null, + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + }, + "isDynamic": { + "description": "Indicates whether this set of addresses was assigned dynamically (true) or based on address information provided as input from the API consumer (false). Shall be present if \"addresses\" is present and shall be absent otherwise.\n", + "type": "boolean" + }, + "addressRange": { + "description": "An IP address range used, e.g. in case of egress connections. See note.\n", + "type": "object", + "required": [ + "minAddress", + "maxAddress" + ], + "properties": { + "minAddress": { + "description": "Lowest IP address belonging to the range.\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + }, + "maxAddress": { + "description": "Highest IP address belonging to the range\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + } + } + }, + "minAddress": { + "description": "Lowest IP address belonging to the range\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + }, + "maxAddress": { + "description": "Highest IP address belonging to the range.\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddress" + }, + "subnetId": { + "description": "Subnet defined by the identifier of the subnet resource in the VIM. In case this attribute is present, IP addresses are bound to that subnet.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVim" + } + } + }, + "ExtVirtualLinkInfo": { + "type": "object", + "required": [ + "id", + "resourceHandle" + ], + "properties": { + "id": { + "description": "Identifier of the external VL and the related external VL information instance. The identifier is assigned by the NFV-MANO entity that manages this VL instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "resourceHandle": { + "description": "Reference to the resource realizing this VL.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "extLinkPorts": { + "description": "Link ports of this VL.\n", + "type": "array", + "items": { + "$ref": "#/definitions/ExtLinkPortInfo" + } + } + } + }, + "ExtLinkPortInfo": { + "description": "This type represents information about a link port of an external VL, i.e. a port providing connectivity for the VNF to an NS VL.\n", + "type": "object", + "required": [ + "id", + "resourceHandle" + ], + "properties": { + "id": { + "description": "Identifier of this link port as provided by the entity that has created the link port.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "resourceHandle": { + "description": "Reference to the virtualised resource realizing this link port.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "cpInstanceId": { + "description": "Identifier of the external CP of the VNF connected to this link port. There shall be at most one link port associated with any external connection point instance. The value refers to an \"extCpInfo\" item in the VnfInstance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + } + } + }, + "ExtManagedVirtualLinkInfo": { + "type": "object", + "required": [ + "id", + "vnfVirtualLinkDescId" + ], + "properties": { + "id": { + "description": "Identifier of the externally-managed internal VL and the related externally-managed VL information instance. The identifier is assigned by the NFV-MANO entity that manages this VL instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfVirtualLinkDescId": { + "description": "Identifier of the VNF Virtual Link Descriptor (VLD) in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "networkResource": { + "description": "Reference to the VirtualNetwork resource.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "vnfLinkPorts": { + "description": "Link ports of this VL.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfLinkPortInfo" + } + } + } + }, + "VnfLinkPortInfo": { + "type": "object", + "required": [ + "id", + "resourceHandle" + ], + "properties": { + "id": { + "description": "Identifier of this link port as provided by the entity that has created the link port.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "resourceHandle": { + "description": "Reference to the virtualised network resource realizing this link port.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "cpInstanceId": { + "description": "When the link port is used for external connectivity by the VNF, this attribute represents the identifier of the external CP of the VNF to be connected to this link port. When the link port is used for internal connectivity in the VNF, this attribute represents the VNFC CP to be connected to this link port. Shall be present when the link port is used for external connectivity by the VNF. may be present if used to reference a VNFC CP instance. There shall be at most one link port associated with any external connection point instance or internal connection point (i.e. VNFC CP) instance. The value refers to an \"extCpInfo\" item in the VnfInstance or a \"vnfcCpInfo\" item of a \"vnfcResouceInfo\" item in the VnfInstance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + } + } + }, + "MonitoringParameter": { + "type": "object", + "required": [ + "id", + "value", + "timeStamp" + ], + "properties": { + "id": { + "description": "Identifier of the monitoring parameter defined in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "name": { + "description": "Human readable name of the monitoring parameter, as defined in the VNFD.\n", + "type": "string" + }, + "value": { + "description": "Value of the monitoring parameter known to the VNFM (e.g. obtained for auto-scaling purposes). The type of the \"value\" attribute (i.e. scalar, structure (Object in JSON), or array (of scalars, arrays or structures/Objects)) is assumed to be defined in an external measurement specification.\n", + "type": "object" + }, + "timeStamp": { + "description": "Represents the point in time when the measurement has been performed, as known to the VNFM. Should be formatted according to ETF RFC 3339.\n", + "type": "string" + } + } + }, + "VnfcResourceInfo": { + "description": "This type represents the information on virtualised compute and storage resources used by a VNFC in a VNF instance.\n", + "type": "object", + "required": [ + "id", + "vduId", + "computeResource" + ], + "properties": { + "id": { + "description": "Identifier of this VnfcResourceInfo instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "vduId": { + "description": "Reference to the applicable VDU in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "computeResource": { + "description": "Reference to the VirtualCompute resource.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "storageResourceIds": { + "description": "References to the VirtualStorage resources. The value refers to a VirtualStorageResourceInfo item in the VnfInstance.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "reservationId": { + "description": "The reservation identifier applicable to the resource. It shall be present when an applicable reservation exists.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfcCpInfo": { + "description": "CPs of the VNFC instance. Shall be present when that particular CP of the VNFC instance is associated to an external CP of the VNF instance. May be present otherwise.\n", + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "cpdId" + ], + "properties": { + "id": { + "description": "Identifier of this VNFC CP instance and the associated array entry.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "cpdId": { + "description": "Identifier of the VDU CPD, cpdId, in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "vnfExtCpId": { + "description": "When the VNFC CP is exposed as external CP of the VNF, the identifier of this external VNF CP.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "cpProtocolInfo": { + "description": "Network protocol information for this CP.\n", + "type": "array", + "items": { + "$ref": "#/definitions/CpProtocolInfo" + } + }, + "vnfLinkPortId": { + "description": "Identifier of the \"vnfLinkPorts\" structure in the \"vnfVirtualLinkResourceInfo\" structure. Shall be present if the CP is associated to a link port.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + } + } + } + }, + "metadata": { + "description": "Metadata about this resource.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "VnfVirtualLinkResourceInfo": { + "description": "This type represents the information that allows addressing a virtualised resource that is used by an internal VL instance in a VNF instance.\n", + "type": "object", + "required": [ + "id", + "vnfVirtualLinkDescId", + "networkResource" + ], + "properties": { + "id": { + "description": "Identifier of this VnfVirtualLinkResourceInfo instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "vnfVirtualLinkDescId": { + "description": "Identifier of the VNF Virtual Link Descriptor (VLD) in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "networkResource": { + "description": "Reference to the VirtualNetwork resource.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "reservationId": { + "description": "The reservation identifier applicable to the resource. It shall be present when an applicable reservation exists.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfLinkPorts": { + "description": "Links ports of this VL. Shall be present when the linkPort is used for external connectivity by the VNF (refer to VnfLinkPortInfo). May be present otherwise.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfLinkPortInfo" + } + }, + "metadata": { + "description": "Metadata about this resource.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "VirtualStorageResourceInfo": { + "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance.\n", + "type": "object", + "required": [ + "id", + "virtualStorageDescId", + "storageResource" + ], + "properties": { + "id": { + "description": "Identifier of this VirtualStorageResourceInfo instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "virtualStorageDescId": { + "description": "Identifier of the VirtualStorageDesc in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "storageResource": { + "description": "Reference to the VirtualStorage resource.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "reservationId": { + "description": "The reservation identifier applicable to the resource. It shall be present when an applicable reservation exists.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "metadata": { + "description": "Metadata about this resource.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "NsLinkPortInfo": { + "description": "This type represents information about a link port of a VL instance. It shall comply with the provisions defined in Table 6.5.3.55-1.\n", + "type": "object", + "required": [ + "id", + "resourceHandle" + ], + "properties": { + "id": { + "description": "Identifier of this link port as provided by the entity that has created the link port.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "resourceHandle": { + "description": "Identifier of the virtualised network resource realizing this link port.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "nsCpHandle": { + "description": "Identifier of the CP/SAP instance to be connected to this link port. The value refers to a vnfExtCpInfo item in the VnfInstance, or a pnfExtCpInfo item in the PnfInfo, or a sapInfo item in the NS instance. There shall be at most one link port associated with any connection point instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsCpHandle" + } + } + } + }, + "AffinityOrAntiAffinityRule": { + "description": "This type describes the additional affinity or anti-affinity rule applicable between the VNF instances to be instantiated in the NS instantiation operation request or between the VNF instances to be instantiated in the NS instantiation operation request and the existing VNF instances..\n", + "type": "object", + "required": [ + "affinityOrAntiAffiinty", + "scope" + ], + "properties": { + "vnfdId": { + "description": "Reference to a VNFD. When the VNFD which is not used to instantiate VNF, it presents all VNF instances of this type as the subjects of the affinity or anti-affinity rule. The VNF instance which the VNFD presents is not necessary as a part of the NS to be instantiated.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "vnfProfileId": { + "description": "Reference to a vnfProfile defined in the NSD. At least one VnfProfile which is used to instantiate VNF for the NS to be instantiated as the subject of the affinity or anti-affinity rule shall be present. When the VnfProfile which is not used to instantiate VNF, it presents all VNF instances of this type as the subjects of the affinity or anti-affinity rule. The VNF instance which the VnfProfile presents is not necessary as a part of the NS to be instantiated.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + } + }, + "vnfInstanceId": { + "description": "Reference to the existing VNF instance as the subject of the affinity or anti-affinity rule. The existing VNF instance is not necessary as a part of the NS to be instantiated.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "affinityOrAntiAffiinty": { + "description": "The type of the constraint. Permitted values: AFFINITY ANTI_AFFINITY.\n", + "type": "string", + "enum": [ + "AFFINITY", + "ANTI_AFFINITY" + ] + }, + "scope": { + "description": "Specifies the scope of the rule where the placement constraint applies. Permitted values: NFVI_POP ZONE ZONE_GROUP NFVI_NODE.\n", + "type": "string", + "enum": [ + "NFVI_POP", + "ZONE", + "ZONE_GROUP", + "NFVI_NODE" + ] + } + } + }, + "InstantiateNsRequest": { + "type": "object", + "required": [ + "nsFlavourId" + ], + "properties": { + "nsFlavourId": { + "description": "Identifier of the NS deployment flavor to be instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "sapData": { + "description": "Create data concerning the SAPs of this NS.\n", + "type": "array", + "items": { + "$ref": "#/definitions/SapData" + } + }, + "addpnfData": { + "description": "Information on the PNF(s) that are part of this NS.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AddPnfData" + } + }, + "vnfInstanceData": { + "description": "Specify an existing VNF instance to be used in the NS. If needed, the VNF Profile to be used for this VNF instance is also provided.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfInstanceData" + } + }, + "nestedNsInstanceId": { + "description": "Specify an existing NS instance to be used as a nested NS within the NS.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "localizationLanguage": { + "description": "Defines the location constraints for the VNF to be instantiated as part of the NS instantiation. An example can be a constraint for the VNF to be in a specific geographic location..\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfLocationConstraint" + } + }, + "additionalParamsForNs": { + "description": "Allows the OSS/BSS to provide additional parameter(s) at the NS level (as opposed to the VNF level, which is covered in additionalParamsForVnf)..\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + }, + "additionalParamsForVnf": { + "description": "Allows the OSS/BSS to provide additional parameter(s) per VNF instance (as opposed to the NS level, which is covered in additionalParamsForNs). This is for VNFs that are to be created by the NFVO as part of the NS instantiation and not for existing VNF that are referenced for reuse..\n", + "type": "array", + "items": { + "$ref": "#/definitions/ParamsForVnf" + } + }, + "startTime": { + "description": "Timestamp indicating the earliest time to instantiate the NS. Cardinality \"0\" indicates the NS instantiation takes place immediately.\n", + "$ref": "SOL005_def.yaml#/definitions/DateTime" + }, + "nsInstantiationLevelId": { + "description": "Identifies one of the NS instantiation levels declared in the DF applicable to this NS instance. If not present, the default NS instantiation level as declared in the NSD shall be used.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "additionalAffinityOrAntiAffiniityRule": { + "description": "Specifies additional affinity or anti-affinity constraint for the VNF instances to be instantiated as part of the NS instantiation. Shall not conflict with rules already specified in the NSD.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AffinityOrAntiAffinityRule" + } + } + } + }, + "ParamsForVnf": { + "description": "This type defines the additional parameters for the VNF instance to be created associated with an NS instance. It shall comply with the provisions defined in Table 6.5.3.22-1.\n", + "type": "object", + "required": [ + "vnfProfileId" + ], + "properties": { + "vnfProfileId": { + "description": "Identifier of (reference to) a vnfProfile to which the additional parameters apply.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "additionalParams": { + "description": "Additional parameters that are applied for the VNF instance to be created.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "LocationConstraints": { + "description": "This type represents location constraints for a VNF to be instantiated. The location constraints shall be presented as a country code, optionally followed by a civic address based on the format defined by IETF RFC 4776 [13].\n", + "type": "object", + "required": [ + "countryCode" + ], + "properties": { + "countryCode": { + "description": "The two-letter ISO 3166 [29] country code in capital letters.\n", + "type": "string" + }, + "civicAddressElement": { + "description": "Zero or more elements comprising the civic address.\n", + "type": "array", + "items": { + "type": "object", + "required": [ + "caType", + "caValue" + ], + "properties": { + "caType": { + "description": "Describe the content type of caValue. The value of caType shall comply with Section 3.4 of IETF RFC 4776 [13].\n", + "type": "integer" + }, + "caValue": { + "description": "Content of civic address element corresponding to the caType. The format caValue shall comply with Section 3.4 of IETF RFC 4776 [13].\n", + "type": "string" + } + } + } + } + } + }, + "VnfLocationConstraint": { + "description": "This type represents the association of location constraints to a VNF instance to be created according to a specific VNF profile. It shall comply with the provisions defined in Table 6.5.3.20-1.\n", + "type": "object", + "required": [ + "vnfProfileId" + ], + "properties": { + "vnfProfileId": { + "description": "Identifier of (reference to) a vnfProfile to which the additional parameters apply.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "locationConstraints": { + "description": "Defines the location constraints for the VNF instance to be created based on the VNF profile.\n", + "$ref": "#/definitions/LocationConstraints" + } + } + }, + "VnfInstanceData": { + "description": "This type specifies an existing VNF instance to be used in the NS instance and if needed, the VNF Profile to use for this VNF instance. It shall comply with the provisions defined in Table 6.5.3.19-1.\n", + "type": "object", + "required": [ + "vnfInstanceId", + "vnfProfileId" + ], + "properties": { + "vnfInstanceId": { + "description": "Identifier of the existing VNF instance to be used in the NS.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfProfileId": { + "description": "Identifier of (Reference to) a vnfProfile defined in the NSD which the existing VNF instance shall be matched with. If not present, the NFVO will select the VnfProfile matching the information in the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + } + } + }, + "SapData": { + "description": "This type represents the information related to a SAP of a NS. It shall comply with the provisions defined in Table 6.5.3.10-1.\n", + "type": "object", + "required": [ + "sapdId", + "sapName", + "description" + ], + "properties": { + "sapdId": { + "description": "Reference to the SAPD for this SAP.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "sapName": { + "description": "Human readable name for the SAP.\n", + "type": "string" + }, + "description": { + "description": "Human readable description for the SAP.\n", + "type": "string" + }, + "sapProtocolData": { + "description": "Parameters for configuring the network protocols on the SAP.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/CpProtocolData" + } + } + } + }, + "ScaleNsRequest": { + "description": "This type represents a request for the scale NS operation.\n", + "type": "object", + "required": [ + "scaleType" + ], + "properties": { + "scaleType": { + "description": "Indicates the type of scaling to be performed. Possible values: - SCALE_NS - SCALE_VNF\n", + "type": "string", + "enum": [ + "SCALE_NS", + "SCALE_VNF" + ] + }, + "scaleNsData": { + "description": "The necessary information to scale the referenced NS instance. It shall be present when scaleType = SCALE_NS.\n", + "$ref": "#/definitions/ScaleNsData" + }, + "scaleVnfData": { + "description": "The necessary information to scale the referenced NS instance. It shall be present when scaleType = SCALE_VNF.\n", + "type": "array", + "items": { + "$ref": "#/definitions/ScaleVnfData" + } + }, + "scaleTime": { + "description": "Timestamp indicating the scale time of the NS, i.e. the NS will be scaled at this timestamp. Cardinality \"0\" indicates the NS scaling takes place immediately\".\n", + "$ref": "SOL005_def.yaml#/definitions/DateTime" + } + } + }, + "UpdateNsRequest": { + "description": "This operation supports the update of a NS instance, It shall comply with the provisions defined in Table 6.5.2.12-1.\n", + "type": "object", + "required": [ + "updateType" + ], + "properties": { + "updateType": { + "description": "The type of update. It determines also which one of the following parameters is present in the operation. Possible values include: * ADD_VNF: Adding existing VNF instance(s) * REMOVE_VNF: Removing VNF instance(s) * INSTANTIATE_VNF: Instantiating new VNF(s) * CHANGE_VNF_DF: Changing VNF DF * OPERATE_VNF: Changing VNF state, * MODIFY_VNF_INFORMATION: Modifying VNF information and/or the configurable properties of VNF instance(s) * CHANGE_EXTERNAL_VNF_CONNECTIVITY: Changing the external connectivity of VNF instance(s)ADD_SAP: Adding SAP(s) * REMOVE_SAP: Removing SAP(s) * ADD_NESTED_NS: Adding existing NS instance(s) as nested NS(s) * REMOVE_NESTED_NS: Removing existing nested NS instance(s) * ASSOC_NEW_NSD_VERSION: Associating a new NSD version to the NS instance * MOVE_VNF: Moving VNF instance(s) from one origin NS instance to another target NS instance * ADD_VNFFG: Adding VNFFG(s) * REMOVE_VNFFG: Removing VNFFG(s) * UPDATE_VNFFG: Updating VNFFG(s) * CHANGE_NS_DF: Changing NS DF * ADD_PNF: Adding PNF * MODIFY_PNF: Modifying PNF * REMOVE_PNF: Removing PNF\n", + "type": "string", + "enum": [ + "ADD_VNF", + "REMOVE_VNF", + "INSTANTIATE_VNF", + "CHANGE_VNF_DF", + "OPERATE_VNF", + "MODIFY_VNF_INFORMATION", + "CHANGE_EXTERNAL_VNF_CONNECTIVITY", + "REMOVE_SAP", + "ADD_NESTED_NS", + "REMOVE_NESTED_NS", + "ASSOC_NEW_NSD_VERSION", + "MOVE_VNF", + "ADD_VNFFG", + "REMOVE_VNFFG", + "UPDATE_VNFFG", + "CHANGE_NS_DF", + "ADD_PNF", + "MODIFY_PNF", + "REMOVE_PNF" + ] + }, + "addVnfIstance": { + "description": "Identifies an existing VNF instance to be added to the NS instance. It shall be present only if updateType = \"ADD_VNF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfInstanceData" + } + }, + "removeVnfInstanceId": { + "description": "Identifies an existing VNF instance to be removed from the NS instance. It contains the identifier(s) of the VNF instances to be removed. It shall be present only if updateType = \"REMOVE_VNF.\" Note: If a VNF instance is removed from a NS and this NS was the last one for which this VNF instance was a part, the VNF instance is terminated by the NFVO.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "instantiateVnfData": { + "description": "Identifies the new VNF to be instantiated. It can be used e.g. for the bottom-up NS creation. It shall be present only if updateType = \"INSTANTIATE_VNF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/InstantiateVnfData" + } + }, + "changeVnfFlavourData": { + "description": "Identifies the new DF of the VNF instance to be changed to. It shall be present only if updateType = \"CHANGE_VNF_DF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/ChangeVnfFlavourData" + } + }, + "operateVnfData": { + "description": "Identifies the state of the VNF instance to be changed. It shall be present only if updateType = \"OPERATE_VNF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/OperateVnfData" + } + }, + "modifyVnfInfoData": { + "description": "Identifies the VNF information parameters and/or the configurable properties of VNF instance to be modified. It shall be present only if updateType = \"MODIFY_VNF_INFORMATION\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/ModifyVnfInfoData" + } + }, + "changeExtVnfConnectivityData": { + "description": "Specifies the new external connectivity data of the VNF instance to be changed. It shall be present only if updateType = \"CHANGE_EXTERNAL_VNF_CONNECTIVITY\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/ChangeExtVnfConnectivityData" + } + }, + "addSap": { + "description": "Identifies a new SAP to be added to the NS instance. It shall be present only if updateType = \"ADD_SAP.\"\n", + "type": "array", + "items": { + "$ref": "#/definitions/SapData" + } + }, + "removeSapId": { + "description": "The identifier an existing SAP to be removed from the NS instance. It shall be present only if updateType = \"REMOVE_SAP.\"\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "addNestedNsId": { + "description": "The identifier of an existing nested NS instance to be added to (nested within) the NS instance. It shall be present only if updateType = \"ADD_NESTED_NS\".\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "removeNestedNsId": { + "description": "The identifier of an existing nested NS instance to be removed from the NS instance. It shall be present only if updateType = \"REMOVE_NESTED_NS\".\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + } + }, + "assocNewNsdVersionData": { + "description": "Specify the new NSD to be used for the NS instance. It shall be present only if updateType = ASSOC_NEW_NSD_VERSION\".\n", + "$ref": "#/definitions/AssocNewNsdVersionData" + }, + "moveVnfInstanceData": { + "description": "Specify existing VNF instance to be moved from one NS instance to another NS instance. It shall be present only if updateType = MOVE_VNF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/MoveVnfInstanceData" + } + }, + "addVnffg": { + "description": "Specify the new VNFFG to be created to the NS Instance. It shall be present only if updateType = \"ADD_VNFFG\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/AddVnffgData" + } + }, + "removeVnffgId": { + "description": "Identifier of an existing VNFFG to be removed from the NS Instance. It shall be present only if updateType = \"REMOVE_VNFFG\".\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "updateVnffg": { + "description": "Specify the new VNFFG Information data to be updated for a VNFFG of the NS Instance. It shall be present only if updateType = \"UPDATE_VNFFG\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/UpdateVnffgData" + } + }, + "changeNsFlavourData": { + "description": "Specifies the new DF to be applied to the NS instance. It shall be present only if updateType = \"CHANGE_NS_DF\".\n", + "$ref": "#/definitions/ChangeNsFlavourData" + }, + "addPnfData": { + "description": "specifies the PNF to be added into the NS instance. It shall be present only if updateType = \"ADD_PNF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/AddPnfData" + } + }, + "modifyPnfData": { + "description": "Specifies the PNF to be modified in the NS instance. It shall be present only if updateType = \"MODIFY_PNF\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/ModifyPnfData" + } + }, + "removePnfId": { + "description": "Identifier of the PNF to be deleted from the NS instance. It shall be present only if updateType = \"REMOVE_PNF\".\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "updateTime": { + "description": "Timestamp indicating the update time of the NS, i.e. the NS will be updated at this timestamp. Cardinality \"0\" indicates the NS update takes place immediately.\n", + "$ref": "SOL005_def.yaml#/definitions/DateTime" + } + } + }, + "InstantiateVnfData": { + "description": "This type represents the information related to a SAP of a NS. The InstantiateVnfData data type specifies the parameters that are needed for VNF instantiation. This information element is used for the bottom-up NS creation when the OSS/BSS explicitly requests VNF instantiation for a given NS. When the NFVO invokes the Instantiate VNF update operation, a set of these parameters are then passed by the NFVO to the VNFM. It shall comply with the provisions defined in Table 6.5.3.24-1.\n", + "type": "object", + "required": [ + "vnfdId", + "vnfFlavourId" + ], + "properties": { + "vnfdId": { + "description": "Information sufficient to identify the VNFD which defines the VNF to be instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfFlavourId": { + "description": "Identifier of the VNF deployment flavor to be instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "vnfInstantiationLevelId": { + "description": "Identifier of the instantiation level of the deployment flavor to be instantiated. If not present, the default instantiation level as declared in the VNFD is instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "vnfInstanceName": { + "description": "Human-readable name of the VNF instance to be created.\n", + "type": "string" + }, + "vnfInstanceDescription": { + "description": "Human-readable description of the VNF instance to be created.\n", + "type": "string" + }, + "extVirtualLinks": { + "description": "Information about external VLs to connect the VNF to.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/ExtVirtualLinkData" + } + }, + "extManagedVirtualLinks": { + "description": "Information about internal VLs that are managed by other entities than the VNFM.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/ExtManagedVirtualLinkData" + } + }, + "localizationLanguage": { + "description": "Localization language of the VNF to be instantiated. The value shall comply with the format defined in IETF RFC 5646 [16].\n", + "type": "string" + }, + "additionalParams": { + "description": "Additional input parameters for the instantiation process, specific to the VNF being instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "ChangeVnfFlavourData": { + "description": "The type represents the information that is requested to be changed deployment flavor for an existing VNF instance. It shall comply with the provisions defined in Table 6.5.3.25-1.\n", + "type": "object", + "required": [ + "vnfInstanceId", + "newFlavourId" + ], + "properties": { + "vnfInstanceId": { + "description": "Identifier of the VNF instance to be modified.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "newFlavourId": { + "description": "Identifier of the VNF deployment flavor to be instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "instantiationLevelId": { + "description": "Identifier of the instantiation level of the deployment flavor to be instantiated. If not present, the default instantiation level as declared in the VNFD is instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "extVirtualLinks": { + "description": "Information about external VLs to connect the VNF to.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/ExtVirtualLinkData" + } + }, + "extManagedVirtualLinks": { + "description": "information about internal VLs that are managed by NFVO.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/ExtManagedVirtualLinkData" + } + }, + "additionalParams": { + "description": "Additional input parameters for the flavor change process, specific to the VNF being modified, as declared in the VNFD as part of \"ChangeVnfFlavourOpConfig\".\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "OperateVnfData": { + "description": "This type represents a VNF instance for which the operational state needs to be changed and the requested new state. It shall comply with the provisions defined in Table 6.5.3.31-1.\n", + "type": "object", + "required": [ + "vnfInstanceId", + "changeStateTo" + ], + "properties": { + "vnfInstanceId": { + "description": "Identifier of the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "changeStateTo": { + "description": "The desired operational state (i.e. started or stopped) to change the VNF to.\n", + "$ref": "#/definitions/OperationalStates" + }, + "stopType": { + "description": "It signals whether forceful or graceful stop is requested.\n", + "$ref": "#/definitions/StopType" + }, + "gracefulStopTimeout": { + "description": "The time interval (in seconds) to wait for the VNF to be taken out of service during graceful stop, before stopping the VNF.\n", + "type": "integer" + } + } + }, + "OperationalStates": { + "description": "STARTED - The VNF instance is up and running. STOPPED - The VNF instance has been shut down.\n", + "type": "string", + "enum": [ + "STARTED", + "STOPPED" + ] + }, + "StopType": { + "description": "* FORCEFUL: The VNFM will stop the VNF immediately after accepting the request.\n* GRACEFUL: The VNFM will first arrange to take the VNF out of service after accepting the request. Once that operation is successful or once\n the timer value specified in the \"gracefulStopTimeout\" attribute\n expires, the VNFM will stop the VNF.\n", + "type": "string", + "enum": [ + "FORCEFUL", + "GRACEFUL" + ] + }, + "ModifyVnfInfoData": { + "description": "This type represents the information that is requested to be modified for a VNF instance. The information to be modified shall comply with the associated NSD. EXAMPLE. The vnfPkgId attribute value for a particular VNF instance can only be updated with a value that matches the identifier value of a VNF package whose vnfdId is present in the associated profile of the NSD.\n", + "type": "object", + "required": [ + "vnfInstanceId" + ], + "properties": { + "vnfInstanceId": { + "description": "Identifier of the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfInstanceName": { + "description": "New value of the \"vnfInstanceName\" attribute in \"VnfInstance\", or \"null\" to remove the attribute.\n", + "type": "string" + }, + "vnfInstanceDescription": { + "description": "New value of the \"vnfInstanceDescription\" attribute in \"VnfInstance\", or \"null\" to remove the attribute.\n", + "type": "string" + }, + "vnfPkgId": { + "description": "New value of the \"vnfPkgId\" attribute in \"VnfInstance\". The value \"null\" is not permitted\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfConfigurableProperties": { + "description": "Modifications to entries in the \"vnfConfigurableProperties\" list, as defined below this Table.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + }, + "Metadata": { + "description": "Modifications to entries in the \"metadata\" list, as defined below this Table.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + }, + "Extensions": { + "description": "Modifications to entries in the \"extensions\" list, as defined below this Table.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "ChangeExtVnfConnectivityData": { + "description": "This type describes the information invoked by the NFVO to change the external VNF connectivity information maintained by the VNFM. The types of changes that this operation supports are: 1) Disconnect the external CPs that are connected to a particular external VL, and connect them to a different external VL. 2) Change the connectivity parameters of the existing external CPs, including changing addresses. NOTE: Depending on the capabilities of the underlying VIM resources, certain changes (e.g. modifying the IP address assignment) might not be supported without deleting the resource and creating another one with the modified configuration. This type shall comply with the provisions defined in Table 6.5.3.33-1.\n", + "type": "object", + "required": [ + "vnfInstanceId", + "extVirtualLink" + ], + "properties": { + "vnfInstanceId": { + "description": "Identifier of the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "extVirtualLink": { + "description": "Information about external VLs to change (e.g. connect the VNF to).\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/ExtVirtualLinkData" + } + }, + "additionalParams": { + "description": "Additional parameters passed by the OSS as input to the external connectivity change process, specific to the VNF instance being changed.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "AssocNewNsdVersionData": { + "description": "This type specifies a new NSD version that is associated to the NS instance. After issuing the Update NS operation with updateType = \"AssocNewNsdVersion\", the NFVO shall use the referred NSD as a basis for the given NS instance. Different versions of the same NSD have same nsdInvariantId, but different nsdId attributes, therefore if the nsdInvariantId of the NSD version that is to be associated to this NS instance is different from the one used before, the NFVO shall reject the request. Only new versions of the same NSD can be associated to an existing NS instance. This data type shall comply with the provisions defined in Table 6.5.3.34-1.\n", + "type": "object", + "required": [ + "newNsdId" + ], + "properties": { + "newNsdId": { + "description": "Identifier of the new NSD version that is to be associated to the NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "sync": { + "description": "Specify whether the NS instance shall be automatically synchronized to the new NSD by the NFVO (in case of true value) or the NFVO shall not do any action (in case of a false value) and wait for further guidance from OSS/BSS (i.e. waiting for OSS/BSS to issue NS lifecycle management operation to explicitly add/remove VNFs and modify information of VNF instances according to the new NSD). The synchronization to the new NSD means e.g. instantiating/adding those VNFs whose VNFD is referenced by the new NSD version but not referenced by the old one, terminating/removing those VNFs whose VNFD is referenced by the old NSD version but not referenced by the new NSD version, modifying information of VNF instances to the new applicable VNFD provided in the new NSD version. A cardinality of 0 indicates that synchronization shall not be done.\n", + "type": "boolean" + } + } + }, + "MoveVnfInstanceData": { + "description": "This type specifies existing VNF instances to be moved from one NS instance (source) to another NS instance (destination). The NS instance defined in the Update NS operation indicates the source NS instance and the destination NS instance is specified in this data type (referred to targetNsInstanceId). It shall comply with the provisions defined in Table 6.5.3.35-1.\n", + "type": "object", + "required": [ + "targetNsInstanceId" + ], + "properties": { + "targetNsInstanceId": { + "description": "Specify the target NS instance where the VNF instances are moved to.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfInstanceId": { + "description": "Specify the VNF instance that is moved.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + } + } + }, + "AddVnffgData": { + "description": "This type specifies the parameters used for the creation of a new VNFFG instance. It shall comply with the provisions defined in Table 6.5.3.36-1.\n", + "type": "object", + "required": [ + "vnffgdId", + "vnffgName", + "description" + ], + "properties": { + "targetNsInstanceId": { + "description": "Identifier of the VNFFGD used to create this VNFFG instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "vnffgName": { + "description": "Human readable name for the VNFFG.\n", + "type": "string" + }, + "description": { + "description": "Human readable description for the VNFFG.\n", + "type": "string" + } + } + }, + "UpdateVnffgData": { + "description": "This type specifies the parameters used for the update of an existing VNFFG instance. It shall comply with the provisions defined in Table 6.5.3.37-1.\n", + "type": "object", + "required": [ + "vnffgInfoId" + ], + "properties": { + "vnffgInfoId": { + "description": "Identifier of an existing VNFFG to be updated for the NS Instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + }, + "nfp": { + "description": "Indicate the desired new NFP(s) for a given VNFFG after the operations of addition/removal of NS components (e.g. VNFs, VLs, etc.) have been completed, or indicate the updated or newly created NFP classification and selection rule which applied to an existing NFP.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NfpData" + } + }, + "nfpInfoId": { + "description": "Identifier(s) of the NFP to be deleted from a given VNFFG.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + } + } + } + }, + "NfpData": { + "description": "This type contains information used to create or modify NFP instance parameters for the update of an existing VNFFG instance. It shall comply with the provisions defined in Table 6.5.3.38-1.\n", + "type": "object", + "properties": { + "nfpInfoId": { + "description": "Identifier of the NFP to be modified. It shall be present for modified NFPs and shall be absent for the new NFP.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + }, + "nfpName": { + "description": "Human readable name for the NFP. It shall be present for the new NFP, and it may be present otherwise.\n", + "type": "string" + }, + "description": { + "description": "Human readable description for the NFP. It shall be present for the new NFP, and it may be present otherwise.\n", + "type": "string" + }, + "nsCpHandle": { + "description": "Identifier(s) of the CPs and SAPs which the NFP passes by. Cardinality can be 0 if only updated or newly created NFP classification and selection rule which applied to an existing NFP is provided.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsCpHandle" + } + }, + "nfpRule": { + "description": "NFP classification and selection rule. See note 1.\n", + "$ref": "#/definitions/NfpRule" + } + } + }, + "NfpRule": { + "description": "The NfpRule data type is an expression of the conditions that shall be met in order for the NFP to be applicable to the packet. The condition acts as a flow classifier and it is met only if all the values expressed in the condition are matched by those in the packet. It shall comply with the provisions defined in Table 6.5.3.40-1.\n", + "type": "object", + "properties": { + "etherDestinationAddress": { + "description": "Indicates a destination Mac address.\n", + "$ref": "SOL005_def.yaml#/definitions/MacAddress" + }, + "etherSourceAddress": { + "description": "Indicates a source Mac address.\n", + "$ref": "SOL005_def.yaml#/definitions/MacAddress" + }, + "etherType": { + "description": "Human readable description for the VNFFG.\n", + "type": "string", + "enum": [ + "IPV4", + "IPV6" + ] + }, + "vlanTag": { + "description": "Indicates a VLAN identifier in an IEEE 802.1Q-2014 tag [6] Multiple tags can be included for QinQ stacking. See note.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/String" + } + }, + "protocol": { + "description": "Indicates the L4 protocol, For IPv4 [7] this corresponds to the field called \"Protocol\" to identify the next level protocol. For IPv6 [28] this corresponds to the field is called the \"Next Header\" field. Permitted values: Any keyword defined in the IANA protocol registry [1], e.g.: TCP UDP ICMP\n", + "type": "string", + "enum": [ + "TCP", + "UDP", + "ICMP" + ] + }, + "dscp": { + "description": "For IPv4 [7] a string of \"0\" and \"1\" digits that corresponds to the 6-bit Differentiated Services Code Point (DSCP) field of the IP header. For IPv6 [28] a string of \"0\" and \"1\" digits that corresponds to the 6 differentiated services bits of the traffic class header field\n", + "type": "string" + }, + "sourcePortRange": { + "description": "Indicates a range of source ports\n", + "$ref": "SOL005_def.yaml#/definitions/PortRange" + }, + "destinationPortRange": { + "description": "Indicates a range of destination ports.\n", + "$ref": "SOL005_def.yaml#/definitions/PortRange" + }, + "sourceIpAddressPrefix": { + "description": "Indicates the source IP address range in CIDR format.\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddressPrefix" + }, + "destinationIpAddressPrefix": { + "description": "Indicates the destination IP address range in CIDR format.\n", + "$ref": "SOL005_def.yaml#/definitions/IpAddressPrefix" + }, + "extendedCriteria": { + "description": "Indicates values of specific bits in a frame.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Mask" + } + } + } + }, + "ChangeNsFlavourData": { + "description": "This type specifies an existing NS instance for which the DF needs to be changed. This specifies the new DF, the instantiationLevel of the new DF that may be used and the additional parameters as input for the flavour change. It shall comply with the provisions defined in Table 6.5.3.39-1.\n", + "type": "object", + "required": [ + "newNsFlavourId" + ], + "properties": { + "newNsFlavourId": { + "description": "Identifier of an existing VNFFG to be updated for the NS Instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "instantiationLevelId": { + "description": "Identifier of the instantiation level of the deployment flavour to be instantiated. If not present, the default instantiation level as declared in the NSD is instantiated.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + } + } + }, + "AddPnfData": { + "description": "This type specifies an PNF to be added to the NS instance and the PNF Profile to use for this PNF. It shall comply with the provisions defined in Table 6.5.3.14-1.\n", + "type": "object", + "required": [ + "pnfId", + "pnfName", + "pnfdId", + "pnfProfileId" + ], + "properties": { + "pnfId": { + "description": "Identifier of the PNF. This identifier is allocated by the OSS/BSS.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfName": { + "description": "Name of the PNF\n", + "type": "string" + }, + "pnfdId": { + "description": "Identifier of the PNFD on which the PNF is based.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfProfileId": { + "description": "Identifier of related PnfProfile in the NSD on which the PNF is based.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "cpData": { + "description": "Address assigned for the PNF external CP(s).\n", + "type": "array", + "items": { + "$ref": "#/definitions/PnfExtCpData" + } + } + } + }, + "PnfExtCpData": { + "description": "This type represents the configuration data on the external CP of the PNF. It shall comply with the provisions defined in Table 6.5.3.16-1.\n", + "type": "object", + "required": [ + "cpProtocolData" + ], + "properties": { + "cpInstanceI16": { + "description": "Identifier of the CP. Shall be present for existing CP.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInPnf" + }, + "cpdId": { + "description": "Identifier of the Connection Point Descriptor (CPD) for this CP. Shall be present for new CP.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "cpProtocolData": { + "description": "Address assigned for this CP.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/CpProtocolData" + } + } + } + }, + "ModifyPnfData": { + "description": "This type specifies an PNF to be modified in the NS instance. It shall comply with the provisions defined in Table 6.5.3.15-1.\n", + "type": "object", + "required": [ + "pnfId" + ], + "properties": { + "pnfId": { + "description": "Identifier of the PNF. This identifier is allocated by the OSS/BSS.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfName": { + "description": "Name of the PNF.\n", + "type": "string" + }, + "cpData": { + "description": "Address assigned for the PNF external CP(s).\n", + "type": "array", + "items": { + "$ref": "#/definitions/PnfExtCpData" + } + } + } + }, + "AffectedVirtualLink": { + "description": "This type provides information about added, deleted, modified and temporary VLs.\n", + "type": "object", + "required": [ + "id", + "virtualLinkDescId", + "changeType", + "networkResource" + ], + "properties": { + "id": { + "description": "Identifier of the virtual link instance, identifying the applicable \"vnfVirtualLinkResourceInfo\" entry in the \"VnfInstance\" data type.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "virtualLinkDescId": { + "description": "Identifier of the related VLD in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "changeType": { + "description": "Signals the type of change. Permitted values: * ADDED * REMOVED * MODIFIED * TEMPORARY * LINK_PORT_ADDED * LINK_PORT_REMOVED For a temporary resource, an AffectedVirtualLink structure exists as long as the temporary resource exists.\n", + "type": "string", + "enum": [ + "ADDED", + "REMOVED", + "MODIFIED", + "TEMPORARY", + "LINK_PORT_ADDED", + "LINK_PORT_REMOVED" + ] + }, + "networkResource": { + "description": "Reference to the VirtualNetwork resource. Detailed information is (for new and modified resources) or has been (for removed resources) available from the VIM.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "metadata": { + "description": "Metadata about this resource. The content of this attribute shall be a copy of the content of the \"metadata\" attribute of the VnfVirtualLinkResourceInfo structure.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "AffectedVirtualStorage": { + "description": "This type provides information about added, deleted, modified and temporary virtual storage resources.\n", + "type": "object", + "required": [ + "id", + "virtualStorageDescId", + "changeType", + "storageResource" + ], + "properties": { + "id": { + "description": "Identifier of the storage instance, identifying the applicable \"virtualStorageResourceInfo\" entry in the \"VnfInstance\" data type.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnf" + }, + "virtualStorageDescId": { + "description": "Identifier of the related VirtualStorage descriptor in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "changeType": { + "description": "Signals the type of change. Permitted values: * ADDED * REMOVED * MODIFIED * TEMPORARY For a temporary resource, an AffectedVirtualStorage structure exists as long as the temporary resource exists.\n", + "type": "string", + "enum": [ + "ADDED", + "REMOVED", + "MODIFIED", + "TEMPORARY" + ] + }, + "storageResource": { + "description": "Reference to the VirtualStorage resource. Detailed information is (for new and modified resources) or has been (for removed resources) available from the VIM.\n", + "$ref": "SOL005_def.yaml#/definitions/ResourceHandle" + }, + "metadata": { + "description": "Metadata about this resource. The content of this attribute shall be a copy of the content of the \"metadata\" attribute of the VirtualStorageResourceInfo structure.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "AffectedVnf": { + "description": "This type provides information about added, deleted and modified VNFs. It shall comply with the provisions in Table 6.5.3.2-1.\n", + "type": "object", + "required": [ + "vnfInstanceId", + "vnfdId", + "vnfProfileId" + ], + "properties": { + "vnfInstanceId": { + "description": "Identifier of the VNF instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfdId": { + "description": "Identifier of the VNFD of the VNF Instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "vnfProfileId": { + "description": "Identifier of the VNF profile of the NSD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "vnfName": { + "description": "Name of the VNF Instance.\n", + "type": "string" + }, + "changeType": { + "description": "Signals the type of change Permitted values: - ADD - REMOVE - INSTANTIATE - TERMINATE - SCALE - CHANGE_FLAVOUR - HEAL - OPERATE - MODIFY_INFORMATION - CHANGE_EXTERNAL_VNF_CONNECTIVITY\n", + "type": "string", + "enum": [ + "ADD", + "REMOVE", + "INSTANTIATE", + "TERMINATE", + "SCALE", + "CHANGE_FLAVOUR", + "HEAL", + "OPERATE", + "MODIFY_INFORMATION", + "CHANGE_EXTERNAL_VNF_CONNECTIVITY" + ] + }, + "changeResult": { + "description": "Signals the result of change identified by the \"changeType\" attribute. Permitted values: - COMPLETED - ROLLED_BACK - FAILED\n", + "type": "string", + "enum": [ + "COMPLETED", + "ROLLED_BACK", + "FAILED" + ] + }, + "changedInfo": { + "description": "Information about the changed VNF instance information, including VNF configurable properties,if applicable. When the \"changedInfo\" attribute is present, either the \"changedVnfInfo\" attribute or the \"changedExtConnectivity\" attribute or both shall be present.\n", + "type": "object", + "required": [ + "self" + ], + "properties": { + "changedVnfInfo": { + "description": "Information about the changed VNF instance information, including configurable properties, if applicable.\n", + "$ref": "#/definitions/ModifyVnfInfoData" + }, + "changedExtConnectivity": { + "description": "Information about changed external connectivity, if applicable.\n", + "$ref": "#/definitions/ExtVirtualLinkInfo" + } + } + } + } + }, + "AffectedPnf": { + "description": "This type provides information about added, deleted and modified PNFs. It shall comply with the provisions in Table 6.5.3.3-1.\n", + "type": "object", + "required": [ + "pnfId", + "pnfdId", + "pnfProfileId", + "cpInstanceId" + ], + "properties": { + "pnfId": { + "description": "Identifier of the affected PNF. This identifier is allocated by the OSS/BSS.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "pnfdId": { + "description": "Identifier of the PNFD on which the PNF is based.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "pnfProfileId": { + "description": "Identifier of the VNF profile of the NSD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "pnfName": { + "description": "Name of the PNF.\n", + "type": "string" + }, + "cpInstanceId": { + "description": "Identifier of the CP in the scope of the PNF.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/IdentifierInPnf" + } + }, + "changeType": { + "description": "Signals the type of change. Permitted values: - ADD - REMOVE - MODIFY\n", + "type": "string", + "enum": [ + "ADD", + "REMOVE", + "MODIFY" + ] + }, + "changeResult": { + "description": "Signals the result of change identified by the \"changeType\" attribute. Permitted values: - COMPLETED - ROLLED_BACK - FAILED\n", + "type": "string", + "enum": [ + "COMPLETED", + "ROLLED_BACK", + "FAILED" + ] + } + } + }, + "AffectedVl": { + "description": "This type provides information about added, deleted and modified VLs. It shall comply with the provisions in Table 6.5.3.4-1.\n", + "type": "object", + "required": [ + "nsVirtualLinkInstanceId", + "nsVirtualLinkDescId", + "vlProfileId" + ], + "properties": { + "nsVirtualLinkInstanceId": { + "description": "Identifier of the VL Instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + }, + "nsVirtualLinkDescId": { + "description": "Identifier of the VLD in the NSD for this VL.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "vlProfileId": { + "description": "Identifier of the VLD in the NSD for this VL.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "changeType": { + "description": "Signals the type of change. Permitted values: - ADD - DELETE - MODIFY - ADD_LINK_PORT - REMOVE_LINK_PORT\n", + "type": "string", + "enum": [ + "ADD", + "DELETE", + "MODIFY", + "ADD_LINK_PORT", + "REMOVE_LINK_PORT" + ] + }, + "changeResult": { + "description": "Signals the result of change identified by the \"changeType\" attribute. Permitted values: - COMPLETED - ROLLED_BACK - FAILED\n", + "type": "string", + "enum": [ + "COMPLETED", + "ROLLED_BACK", + "FAILED" + ] + } + } + }, + "AffectedVnffg": { + "description": "This type provides information about added, deleted and modified VNFFG instances. It shall comply with the provisions in Table 6.5.3.5-1.\n", + "type": "object", + "required": [ + "vnffgInstanceId", + "vnffgdId" + ], + "properties": { + "vnffgInstanceId": { + "description": "Identifier of the VNFFG instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNs" + }, + "vnffgdId": { + "description": "Identifier of the VNFFGD of the VNFFG instance.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "changeType": { + "description": "Signals the type of change. Permitted values: - ADD - DELETE - MODIFY\n", + "type": "string", + "enum": [ + "ADD", + "DELETE", + "MODIFY" + ] + }, + "changeResult": { + "description": "Signals the result of change identified by the \"changeType\" attribute. Permitted values: - COMPLETED - ROLLED_BACK - FAILED\n", + "type": "string", + "enum": [ + "COMPLETED", + "ROLLED_BACK", + "FAILED" + ] + } + } + }, + "AffectedNs": { + "description": "This type provides information about added, deleted and modified nested NSs. It shall comply with the provisions in Table 6.5.3.6-1.\n", + "type": "object", + "required": [ + "nsInstanceId", + "nsdId" + ], + "properties": { + "nsInstanceId": { + "description": "Identifier of the nested NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsdId": { + "description": "Identifier of the NSD of the nested NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "changeType": { + "description": "Signals the type of lifecycle change. Permitted values: - ADD - REMOVE - INSTANTIATE - SCALE - UPDATE - HEAL - TERMINATE\n", + "type": "string", + "enum": [ + "ADD", + "REMOVE", + "INSTANTIATE", + "SCALE", + "UPDATE", + "HEAL", + "TERMINATE" + ] + }, + "changeResult": { + "description": "Signals the result of change identified by the \"changeType\" attribute. Permitted values: - COMPLETED - ROLLED_BACK - FAILED - PARTIALLY_COMPLETED\n", + "type": "string", + "enum": [ + "COMPLETED", + "ROLLED_BACK", + "FAILED", + "PARTIALLY_COMPLETED" + ] + } + } + }, + "AffectedSap": { + "description": "This type provides information about added, deleted and modified SAP of a NS. It shall comply with the provisions in Table 6.5.3.7-1.\n", + "type": "object", + "required": [ + "sapInstanceId", + "sapdId" + ], + "properties": { + "sapInstanceId": { + "description": "Identifier of the nested NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "sapdId": { + "description": "Identifier of the NSD of the nested NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "sapName": { + "description": "Human readable name for the SAP.\n", + "type": "string" + }, + "changeType": { + "description": "Signals the type of lifecycle change. Permitted values: - ADD - REMOVE - MODIFY\n", + "type": "string", + "enum": [ + "ADD", + "REMOVE", + "MODIFY" + ] + }, + "changeResult": { + "description": "Signals the result of change identified by the \"changeType\" attribute. Permitted values: - COMPLETED - ROLLED_BACK - FAILED\n", + "type": "string", + "enum": [ + "COMPLETED", + "ROLLED_BACK", + "FAILED" + ] + } + } + }, + "NsLcmOperationStateType": { + "description": "The enumeration NsLcmOperationStateType shall comply with the provisions defined in Table 6.5.4.4-1. Value | Description ------|------------ PROCESSING | The LCM operation is currently in execution. COMPLETED | The LCM operation has been completed successfully. PARTIALLY_COMPLETED | The LCM operation has been partially completed with accepTable errors. FAILED_TEMP | The LCM operation has failed and execution has stopped, but the execution of the operation is not considered to be closed. FAILED | The LCM operation has failed and it cannot be retried or rolled back, as it is determined that such action won't succeed. OLLING_BACK | The LCM operation is currently being rolled back. ROLLED_BACK | The LCM operation has been successfully rolled back, i.e. The state of the VNF prior to the original operation invocation has been restored as closely as possible.\n", + "type": "string", + "enum": [ + "PROCESSING", + "COMPLETED", + "FAILED_TEMP", + "FAILED", + "ROLLING_BACK", + "ROLLED_BACK" + ] + }, + "NsLcmOpType": { + "description": "The enumeration NsLcmOpType represents those lifecycle operations that trigger a NS lifecycle management operation occurrence notification. Value | Description ------|------------ INSTANTIATE | Represents the \"Instantiate NS\" LCM operation. SCALE | Represents the \"Scale NS\" LCM operation. UPDATE | Represents the \"Update NS\" LCM operation. TERMINATE | Represents the \"Terminate NS\" LCM operation. HEAL | Represents the \"Heal NS\" LCM operation.\n", + "type": "string", + "enum": [ + "INSTANTIATE", + "SCALE", + "UPDATE", + "TERMINATE", + "HEAL" + ] + }, + "LccnSubscriptionRequest": { + "description": "This type represents a subscription request related to notifications about NS lifecycle changes. It shall comply with the provisions defined in Table 6.5.2.2-1..\n", + "type": "object", + "required": [ + "callbackUri" + ], + "properties": { + "filter": { + "description": "Filter settings for this subscription, to define the subset of all notifications this subscription relates to. A particular notification is sent to the subscriber if the filter matches, or if there is no filter.\n", + "$ref": "#/definitions/LifecycleChangeNotificationsFilter" + }, + "callbackUri": { + "description": "The URI of the endpoint to send the notification to.\n", + "$ref": "SOL005_def.yaml#/definitions/Uri" + }, + "authentication": { + "description": "Authentication parameters to configure the use of Authorization when sending notifications corresponding to this subscription, as defined in clause 4.5.3.4. This attribute shall only be present if the subscriber requires authorization of notifications.\n", + "$ref": "SOL005_def.yaml#/definitions/SubscriptionAuthentication" + } + } + }, + "LccnSubscription": { + "description": "This type represents a subscription related to notifications about NS lifecycle changes. It shall comply with the provisions defined in Table 6.5.2.4-1.\n", + "type": "object", + "required": [ + "id", + "callbackUri", + "_links" + ], + "properties": { + "id": { + "description": "Identifier of this subscription resource.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "filter": { + "description": "Filter settings for this subscription, to define the subset of all notifications this subscription relates to. A particular notification is sent to the subscriber if the filter matches, or if there is no filter.\n", + "$ref": "#/definitions/LifecycleChangeNotificationsFilter" + }, + "callbackUri": { + "description": "The URI of the endpoint to send the notification to.\n", + "$ref": "SOL005_def.yaml#/definitions/Uri" + }, + "_links": { + "description": "Links to resources related to this resource.\n", + "type": "object", + "required": [ + "self" + ], + "properties": { + "self": { + "description": "URI of this resource.\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + } + } + } + } + }, + "LifecycleChangeNotificationsFilter": { + "description": "This type represents a subscription filter related to notifications about NS lifecycle changes. It shall comply with the provisions defined in Table 6.5.3.8-1. At a particular nesting level in the filter structure, the following applies: All attributes shall match in order for the filter to match (logical \"and\" between different filter attributes). If an attribute is an array, the attribute shall match if at least one of the values in the array matches (logical \"or\" between the values of one filter attribute).\n", + "type": "object", + "properties": { + "nsInstanceSubscriptionFilter": { + "description": "Filter criteria to select NS instances about which to notify.\n", + "$ref": "#/definitions/NsInstanceSubscriptionFilter" + }, + "notificationTypes": { + "description": "Match particular notification types. Permitted values: - NsLcmOperationOccurenceNotification - NsIdentifierCreationNotification - NsIdentifierDeletionNotification - NsChangeNotification\n", + "type": "array", + "items": { + "type": "string", + "enum": [ + "NsLcmOperationOccurenceNotification", + "NsIdentifierCreationNotification", + "NsIdentifierDeletionNotification", + "NsChangeNotification" + ] + } + }, + "operationTypes": { + "description": "Match particular NS lifecycle operation types for the notification of type NsLcmOperationOccurrenceNotification. May be present if the \"notificationTypes\" attribute contains the value \"NsLcmOperationOccurrenceNotification\", and shall be absent otherwise.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsLcmOpType" + } + }, + "operationStates": { + "description": "Match particular LCM operation state values as reported in notifications of type NsLcmOperationOccurrenceNotification. May be present if the \"notificationTypes\" attribute contains the value \"NsLcmOperationOccurrenceNotification\", and shall be absent otherwise.\n", + "type": "array", + "items": { + "$ref": "#/definitions/LcmOperationStateType" + } + }, + "nsComponentTypes": { + "description": "Match particular NS component types for the notification of type NsChangeNotification. May be present if the \"notificationTypes\" attribute contains the value \"NsChang.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsComponentType" + } + }, + "lcmOpNameImpactingNsComponent": { + "description": "Match particular LCM operation names for the notification of type NsChangeNotification. May be present if the \"notificationTypes\" attribute contains the value \"NsChangeNotification\", and shall be absent otherwise.\n", + "type": "array", + "items": { + "$ref": "#/definitions/LcmOpNameForChangeNotificationType" + } + }, + "lcmOpOccStatusImpactingNsComponent": { + "description": "Match particular LCM operation status values as reported in notifications of type NsChangeNotification. May be present if the \"notificationTypes\" attribute contains the value \"NsChangeNotification\", and shall be absent otherwise.\n", + "type": "array", + "items": { + "$ref": "#/definitions/LcmOpOccStatusForChangeNotificationType" + } + } + } + }, + "NsLcmOperationOccurrenceNotification": { + "type": "object", + "required": [ + "id", + "nsInstanceId", + "nsLcmOpOccId", + "subscriptionId" + ], + "properties": { + "id": { + "description": "Identifier of this notification. If a notification is sent multiple times due to multiple subscriptions, the \"id\" attribute of all these notifications shall have the same value.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsInstanceId": { + "description": "The identifier of the NS instance affected.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsLcmOpOccId": { + "description": "The identifier of the NS lifecycle operation occurrence associated to the notification.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "operation": { + "description": "The lifecycle operation.\n", + "$ref": "#/definitions/NsLcmOpType" + }, + "notificationType": { + "description": "Discriminator for the different notification types. Shall be set to \"NsLcmOperationOccurrenceNotification\" for this notification type.\n", + "type": "string" + }, + "subscriptionId": { + "description": "Identifier of the subscription that this notification relates to.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "timestamp": { + "description": "Date-time of the generation of the notification.\n", + "$ref": "SOL005_def.yaml#/definitions/DateTime" + }, + "notificationStatus": { + "description": "Indicates whether this notification reports about the start of a NS lifecycle operation or the result of a NS lifecycle operation. Permitted values: - START: Informs about the start of the NS LCM operation occurrence. - RESULT: Informs about the final or intermediate result of the NS LCM operation occurrence.\n", + "type": "string", + "enum": [ + "START", + "RESULT" + ] + }, + "operationState": { + "description": "The state of the NS lifecycle operation occurrence.\n", + "$ref": "#/definitions/NsLcmOperationStateType" + }, + "isAutomaticInvocation": { + "description": "Set to true if this NS LCM operation occurrence has been automatically triggered by the NFVO. This occurs in case of auto-scaling, auto-healing and when a nested NS is modified as a result of an operation on its composite NS. Set to false otherwise.\n", + "type": "boolean" + }, + "affectedVnf": { + "description": "Information about the VNF instances that were affected during the lifecycle operation.\n", + "$ref": "#/definitions/AffectedVnf" + }, + "affectedPnf": { + "description": "Information about the PNF instances that were affected during the lifecycle operation.\n", + "$ref": "#/definitions/AffectedPnf" + }, + "affectedVl": { + "description": "Information about the VL instances that were affected during the lifecycle operation.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AffectedVirtualLink" + } + }, + "affectedVnffg": { + "description": "Information about the VNFFG instances that were affected during the lifecycle operation.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AffectedVnffg" + } + }, + "affectedNs": { + "description": "Information about the SAP instances that were affected during the lifecycle operation. See note.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AffectedSap" + } + }, + "affectedSap": { + "description": "The lifecycle operation.\n", + "$ref": "#/definitions/NsLcmOpType" + }, + "error": { + "description": "Details of the latest error, if one has occurred during executing the LCM operation (see clause 4.3.5). Shall be present if operationState is \"FAILED_TEMP\" or \"FAILED\", and shall be absent otherwise.\n", + "$ref": "SOL005_def.yaml#/definitions/ProblemDetails" + }, + "_links": { + "description": "Links to resources related to this notification.\n", + "$ref": "#/definitions/LccnLinks" + } + } + }, + "NsIdentifierCreationNotification": { + "type": "object", + "required": [ + "subscriptionId", + "nsInstanceId" + ], + "properties": { + "notificationType": { + "description": "Discriminator for the different notification types. Shall be set to \"NsIdentifierDeletionNotification\" for this notification type.\n", + "type": "string" + }, + "subscriptionId": { + "description": "Identifier of the subscription that this notification relates to.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "timestamp": { + "description": "Date-time of the generation of the notification.\n", + "$ref": "SOL005_def.yaml#/definitions/DateTime" + }, + "nsInstanceId": { + "description": "The created NS instance identifier\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "_links": { + "description": "Links to resources related to this notification.\n", + "$ref": "#/definitions/LccnLinks" + } + } + }, + "NsIdentifierDeletionNotification": { + "type": "object", + "required": [ + "subscriptionId", + "nsInstanceId" + ], + "properties": { + "notificationType": { + "description": "Discriminator for the different notification types. Shall be set to \"NsIdentifierDeletionNotification\" for this notification type.\n", + "type": "string" + }, + "subscriptionId": { + "description": "Identifier of the subscription that this notification relates to.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "timestamp": { + "description": "Date-time of the generation of the notification.\n", + "$ref": "SOL005_def.yaml#/definitions/DateTime" + }, + "nsInstanceId": { + "description": "The created NS instance identifier\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "_links": { + "description": "Links to resources related to this notification.\n", + "$ref": "#/definitions/LccnLinks" + } + } + }, + "NsScaleInfo": { + "description": "This type represents the target NS Scale level for each NS scaling aspect of the current deployment flavor.\n", + "type": "object", + "required": [ + "nsScalingAspectId", + "nsScaleLevelId" + ], + "properties": { + "nsScalingAspectId": { + "description": "Identifier of the NS scaling aspect.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "nsScaleLevelId": { + "description": "Identifier of the NS scale level.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + } + } + }, + "ScaleNsData": { + "description": "This type represents the information to scale a NS.\n", + "type": "object", + "properties": { + "vnfInstanceToBeAdded": { + "description": "An existing VNF instance to be added to the NS instance as part of the scaling operation. If needed, the VNF Profile to be used for this VNF instance may also be provided.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfInstanceData" + } + }, + "vnfInstanceToBeRemoved": { + "description": "The VNF instance to be removed from the NS instance as part of the scaling operation.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "scaleNsByStepsData": { + "description": "The information used to scale an NS instance by one or more scaling steps.\n", + "$ref": "#/definitions/ScaleNsByStepsData" + }, + "scaleNsToLevelData": { + "description": "The information used to scale an NS instance to a target size.\n", + "$ref": "#/definitions/ScaleNsToLevelData" + }, + "additionalParamsForNs": { + "description": "Allows the OSS/BSS to provide additional parameter(s) at the NS level necessary for the NS scaling (as opposed to the VNF level, which is covered in additionalParamForVnf).\n", + "$ref": "#/definitions/ParamsForVnf" + }, + "additionalParamsForVnf": { + "description": "Allows the OSS/BSS to provide additional parameter(s) per VNF instance (as opposed to the NS level, which is covered in additionalParamforNs). This is for VNFs that are to be created by the NFVO as part of the NS scaling and not for existing VNF that are covered by the scaleVnfData.\n", + "type": "array", + "items": { + "$ref": "#/definitions/ParamsForVnf" + } + }, + "locationConstraints": { + "description": "The location constraints for the VNF to be instantiated as part of the NS scaling. An example can be a constraint for the VNF to be in a specific geographic location.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfLocationConstraint" + } + } + } + }, + "ScaleVnfData": { + "description": "This type represents defines the information to scale a VNF instance to a given level, or to scale a VNF instance by steps.\n", + "type": "object", + "required": [ + "vnfInstanceid", + "scaleVnfType" + ], + "properties": { + "vnfInstanceid": { + "description": "Identifier of the VNF instance being scaled.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "scaleVnfType": { + "description": "Type of the scale VNF operation requested. Allowed values are: - SCALE_OUT - SCALE_IN - SCALE_TO_INSTANTIATION_LEVEL - SCALE_TO_SCALE_LEVEL(S) The set of types actually supported depends on the capabilities of the VNF being managed.\n", + "type": "string", + "enum": [ + "SCALE_OUT", + "SCALE_IN", + "SCALE_TO_INSTANTIATION_LEVEL", + "SCALE_TO_SCALE_LEVEL(S)" + ] + }, + "scaleToLevelData": { + "description": "The information used for scaling to a given level.\n", + "$ref": "#/definitions/ScaleToLevelData" + }, + "scaleByStepData": { + "description": "The information used for scaling by steps.\n", + "$ref": "#/definitions/ScaleByStepData" + } + } + }, + "ScaleNsByStepsData": { + "description": "This type represents the information used to scale an NS instance by one or more scaling steps, with respect to a particular NS scaling aspect. Performing a scaling step means increasing/decreasing the capacity of an NS instance in a discrete manner, i.e. moving from one NS scale level to another. The NS scaling aspects and their corresponding NS scale levels applicable to the NS instance are declared in the NSD.\n", + "type": "object", + "required": [ + "scalingDirection", + "aspectId" + ], + "properties": { + "scalingDirection": { + "description": "The scaling direction. Possible values are: - SCALE_IN - SCALE_OUT.\n", + "type": "string", + "enum": [ + "SCALE_IN", + "SCALE_OUT" + ] + }, + "aspectId": { + "description": "The aspect of the NS that is requested to be scaled, as declared in the NSD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "numberOfSteps": { + "description": "The number of scaling steps to be performed. Defaults to 1.\n", + "type": "integer", + "default": 1 + } + } + }, + "ScaleNsToLevelData": { + "description": "This type represents the information used to scale an NS instance to a target size. The target size is either expressed as an NS instantiation level or as a list of NS scale levels, one per NS scaling aspect, of the current DF. The NS instantiation levels, the NS scaling aspects and their corresponding NS scale levels applicable to the NS instance are declared in the NSD.\n", + "type": "object", + "properties": { + "nsInstantiationLevel": { + "description": "Identifier of the target NS instantiation level of the current DF to which the NS instance is requested to be scaled.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "nsScaleInfo": { + "description": "For each NS scaling aspect of the current DF, defines the target NS scale level to which the NS instance is to be scaled.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsScaleInfo" + } + } + } + }, + "ScaleToLevelData": { + "description": "This type describes the information used to scale a VNF instance to a target size. The target size is either expressed as an instantiation level of that DF as defined in the VNFD, or given as a list of scale levels, one per scaling aspect of that DF. Instantiation levels and scaling aspects are declared in the VNFD. The NFVO shall then invoke the ScaleVnfToLevel operation towards the appropriate VNFM..\n", + "type": "object", + "properties": { + "vnfInstantiationLevelId": { + "description": "Identifier of the target instantiation level of the current deployment flavor to which the VNF is requested to be scaled.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "vnfScaleInfo": { + "description": "For each scaling aspect of the current deployment flavor, indicates the target scale level to which the VNF is to be scaled.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfScaleInfo" + } + }, + "additionalParams": { + "description": "Additional parameters passed by the NFVO as input to the scaling process, specific to the VNF being scaled.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "ScaleByStepData": { + "description": "This type describes the information to scale a VNF instance by steps. The NFVO shall then invoke the Scale VNF operation towards the appropriate VNFM.\n", + "type": "object", + "required": [ + "aspectId" + ], + "properties": { + "aspectId": { + "description": "Identifier of (reference to) the aspect of the VNF that is requested to be scaled, as declared in the VNFD.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInVnfd" + }, + "numberOfSteps": { + "description": "Number of scaling steps. It shall be a positive number. Defaults to 1. The VNF provider defines in the VNFD whether or not a particular VNF supports performing more than one step at a time. Such a property in the VNFD applies for all instances of a particular VNF.\n", + "type": "integer", + "default": 1 + }, + "additionalParams": { + "description": "Additional parameters passed by the NFVO as input to the scaling process, specific to the VNF instance being scaled.\n", + "$ref": "SOL005_def.yaml#/definitions/KeyValuePairs" + } + } + }, + "NsInstanceSubscriptionFilter": { + "description": "This type represents subscription filter criteria to match NS instances. It shall comply with the provisions defined in Table 4.4.1.5-1.\n", + "type": "object", + "properties": { + "nsdIds": { + "description": "If present, match NS instances that were created based on a NSD identified by one of the nsdId values listed in this attribute.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "vnfdIds": { + "description": "If present, match NS instances that contain VNF instances that were created based on a VNFD identified by one of the vnfdId values listed in this attribute.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "pnfdIds": { + "description": "If present, match NS instances that contain PNFs that are represented by a PNFD identified by one of the pnfdId values listed in this attribute.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "nsInstanceIds": { + "description": "If present, match NS instances with an instance identifier listed in this attribute.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "nsInstanceNames": { + "description": "If present, match NS instances with a NS Instance Name listed in this attribute.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/String" + } + } + } + }, + "LcmOperationStateType": { + "description": "Value | Description ------|------------ PROCESSING | The LCM operation is currently in execution. COMPLETED | The LCM operation has been completed successfully. PARTIALLY_COMPLETED | The LCM operation has been partially completed with accepTable errors. FAILED_TEMP | The LCM operation has failed and execution has stopped, but the execution of the operation is not considered to be closed. FAILED | The LCM operation has failed and it cannot be retried or rolled back, as it is determined that such action will not succeed. OLLING_BACK | The LCM operation is currently being rolled back. ROLLED_BACK | The LCM operation has been successfully rolled back, i.e. The state of the NS prior to the original operation invocation has been restored as closely as possible.\n", + "type": "string", + "enum": [ + "PROCESSING", + "COMPLETED", + "PARTIALLY_COMPLETED", + "FAILED_TEMP", + "FAILED", + "ROLLING_BACK", + "ROLLED_BACK" + ] + }, + "NsComponentType": { + "description": "The enumeration NsComponentType represents the NS component type. It shall comply with the provisions defined in Table 6.5.4.5-1. Value | Description ------|------------ VNF | Represents the impacted NS component is a VNF. PNF | Represents the impacted NS component is a PNF. NS | Represents the impacted NS component is a nested NS.\n", + "type": "string", + "enum": [ + "VNF", + "PNF", + "NS" + ] + }, + "LcmOpNameForChangeNotificationType": { + "description": "The enumeration LcmOpNameForChangeNotificationType represents the name of the lifecycle operation that impacts the NS component and trigger an NS change notification. It shall comply with the provisions defined in Table 6.5.4.6-1. Value | Description ------|------------ VNF_INSTANTIATE | Represents the \"Instantiate VNF\" LCM operation. VNF_SCALE | Represents the \"Scale VNF\" LCM operation. VNF_SCALE_TO_LEVEL | Represents the \"Scale VNF to Level\" LCM operation. VNF_CHANGE_FLAVOUR | Represents the \"Change VNF Flavor\" LCM operation. VNF_TERMINATE | Represents the \"Terminate VNF\" LCM operation. VNF_HEAL | Represents the \"Heal VNF\" LCM operation. VNF_OPERATE | Represents the \"Operate VNF\" LCM operation. VNF_CHANGE_EXT_CONN | Represents the \"Change external VNF connectivity\" LCM operation. VNF_MODIFY_INFO | Represents the \"Modify VNF Information\" LCM operation. NS_INSTANTIATE | Represents the \"Instantiate NS\" LCM operation NS_SCALE | Represents the \"Scale NS\" LCM operation. NS_UPDATE | Represents the \"Update NS\" LCM operation. NS_TERMINATE | Represents the \"Terminate NS\" LCM operation. NS_HEAL | Represents the \"Heal NS\" LCM operation.\n", + "type": "string", + "enum": [ + "VNF_INSTANTIATE", + "VNF_SCALE", + "VNF_SCALE_TO_LEVEL", + "VNF_CHANGE_FLAVOUR", + "VNF_TERMINATE", + "VNF_HEAL", + "VNF_OPERATE", + "VNF_CHANGE_EXT_CONN", + "VNF_MODIFY_INFO", + "NS_INSTANTIATE", + "NS_SCALE", + "NS_UPDATE", + "NS_TERMINATE", + "NS_HEAL" + ] + }, + "LcmOpOccStatusForChangeNotificationType": { + "description": "The enumeration LcmOpOccStatusForChangeNotificationType represents the status of the lifecycle management operation occurrence that impacts the NS component and triggers an NS change notification. It shall comply with the provisions defined in Table 6.5.4.7-1. Value | Description ------|------------ START | The impact on the NS component is identified. COMPLETED | The impact on the NS component stops and related lifecycle operation completes successfully. PARTIALLY_COMPLETED | The impact on the NS component stops and related lifecycle operation partially completes. Inconsistency state may exist on the NS component. FAILED | The impact on the NS component stops and related lifecycle operation fails. Inconsistency state may exist for the NS component. ROLLED_BACK | The impact on the NS component stops and related lifecycle operation is rolled back.\n", + "type": "string", + "enum": [ + "START", + "COMPLETED", + "PARTIALLY_COMPLETED", + "FAILED", + "ROLLED_BACK" + ] + } + } +} \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/schemas/NsInstance.schema.json b/SOL005/NSLifecycleManagement-API/schemas/NsInstance.schema.json new file mode 100644 index 0000000000000000000000000000000000000000..68aa863252771b353611ced5d982007531af95f3 --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/schemas/NsInstance.schema.json @@ -0,0 +1,144 @@ +{ + "NsInstance": { + "description": "This type represents a response for Query NS operation. It shall comply with the provisions defined in Table 6.5.2.10-1.\n", + "type": "object", + "required": [ + "id", + "nsInstanceName", + "nsInstanceDescription", + "nsdId", + "nsdInfoId", + "nsState" + ], + "properties": { + "id": { + "description": "Identifier of the NS instance.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsInstanceName": { + "description": "Human readable name of the NS instance.\n", + "type": "string" + }, + "nsInstanceDescription": { + "description": "Human readable description of the NS instance.\n", + "type": "string" + }, + "nsdId": { + "description": "Identifier of the NSD on which the NS instance is based.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "nsdInfoId": { + "description": "Identifier of the NSD information object on which the NS instance is based. This identifier was allocated by the NFVO.\n", + "$ref": "SOL005_def.yaml#/definitions/Identifier" + }, + "flavourId": { + "description": "Identifier of the NS deployment flavor applied to the NS instance. This attribute shall be present if the nsState attribute value is INSTANTIATED.\n", + "$ref": "SOL005_def.yaml#/definitions/IdentifierInNsd" + }, + "vnfInstance": { + "description": "Information on constituent VNF(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfInstance" + } + }, + "pnfInfo": { + "description": "Information on the PNF(s) that are part of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/PnfInfo" + } + }, + "virtualLinkInfo": { + "description": "Information on the VL(s) of the NS instance. This attribute shall be present if the nsState attribute value is INSTANTIATED and if the NS instance has specified connectivity.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsVirtualLinkInfo" + } + }, + "vnffgInfo": { + "description": "Information on the VNFFG(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnffgInfo" + } + }, + "sapInfo": { + "description": "Information on the SAP(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "#/definitions/SapInfo" + } + }, + "nestedNsInstanceId": { + "description": "Identifier of the nested NS(s) of the NS instance.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Identifier" + } + }, + "nsState": { + "description": "The state of the NS instance. Permitted values: NOT_INSTANTIATED: The NS instance is terminated or not instantiated. INSTANTIATED: The NS instance is instantiated.\n", + "type": "string", + "enum": [ + "NOT_INSTANTIATED", + "INSTANTIATED" + ] + }, + "nsScaleStatus": { + "description": "Status of each NS scaling aspect declared in the applicable DF, how \"big\" the NS instance has been scaled w.r.t. that aspect. This attribute shall be present if the nsState attribute value is INSTANTIATED.\n", + "type": "array", + "items": { + "$ref": "#/definitions/NsScaleInfo" + } + }, + "additionalAffinityOrAntiAffinityRule": { + "description": "Information on the additional affinity or anti-affinity rule from NS instantiation operation. Shall not conflict with rules already specified in the NSD.\n", + "type": "array", + "items": { + "$ref": "#/definitions/AffinityOrAntiAffinityRule" + } + }, + "_links": { + "type": "object", + "description": "Links to resources related to this resource.", + "required": [ + "self" + ], + "properties": { + "self": { + "description": "URI of this resource.\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "nestedNsInstances": { + "description": "Links to resources related to this notification.\n", + "type": "array", + "items": { + "$ref": "SOL005_def.yaml#/definitions/Link" + } + }, + "instantiate": { + "description": "Link to the \"instantiate\" task resource, if the related operation is possible based on the current status of this NS instance resource (i.e. NS instance in NOT_INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "terminate": { + "description": "Link to the \"terminate\" task resource, if the related operation is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "update": { + "description": "Link to the \"update\" task resource, if the related operation is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "scale": { + "description": "Link to the \"scale\" task resource, if the related operation is supported for this NS instance, and is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + }, + "heal": { + "description": "Link to the \"heal\" task resource, if the related operation is supported for this NS instance, and is possible based on the current status of this NS instance resource (i.e. NS instance is in INSTANTIATED state).\n", + "$ref": "SOL005_def.yaml#/definitions/Link" + } + } + } + } + } +} \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/schemas/SOL005_def.yaml.json b/SOL005/NSLifecycleManagement-API/schemas/SOL005_def.yaml.json new file mode 100644 index 0000000000000000000000000000000000000000..5be998e8c804a3793d36a493b36ab23b77283c4f --- /dev/null +++ b/SOL005/NSLifecycleManagement-API/schemas/SOL005_def.yaml.json @@ -0,0 +1,449 @@ +{ + "definitions": { + "Identifier": { + "description": "An identifier with the intention of being globally unique.\n", + "type": "string" + }, + "subscriptionId": { + "description": "Identifier of the subscription that this notification relates to.\n", + "type": "string" + }, + "nsInstanceId": { + "description": "The deleted NS instance identifier.\n", + "type": "string" + }, + "Link": { + "description": "This type represents a link to a resource.\n", + "type": "object", + "required": [ + "href" + ], + "properties": { + "href": { + "description": "URI of the referenced resource.\n", + "type": "string", + "format": "url" + } + } + }, + "DateTime": { + "description": "Date-time stamp. Representation: String formatted according to IETF RFC 3339.\n", + "type": "string", + "format": "date-time" + }, + "String": { + "description": "This type represents stack of string values\n", + "type": "string" + }, + "KeyValuePairs": { + "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions defined in clause 4 of IETF RFC 7159.\n", + "type": "object" + }, + "IdentifierInVnfd": { + "description": "Identifier of the VNF Virtual Link Descriptor (VLD) in the VNFD.\n", + "type": "string" + }, + "IdentifierInVnf": { + "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n", + "type": "string" + }, + "IdentifierInNsd": { + "description": "An identifier that is unique within a NS descriptor. Representation: string of variable length.\n", + "type": "string" + }, + "IdentifierInPnf": { + "description": "Identifier of the CP in the scope of the PNF.\n", + "type": "string" + }, + "IdentifierInNs": { + "description": "An identifier that is unique with respect to a NS. Representation: string of variable length.\n", + "type": "string" + }, + "MacAddress": { + "description": "A MAC address. Representation: string that consists of groups of two hexadecimal digits, separated by hyphens or colons.\n", + "type": "string", + "format": "MAC" + }, + "IpAddress": { + "description": "An IPV4 or IPV6 address. Representation: In case of an IPV4 address, string that consists of four decimal integers separated by dots, each integer ranging from 0 to 255. In case of an IPV6 address, string that consists of groups of zero to four hexadecimal digits, separated by colons.\n", + "type": "string", + "format": "IP" + }, + "IpAddressPrefix": { + "description": "An IPV4 or IPV6 address range in CIDR format. For IPV4 address range, refer to IETF RFC 4632 [12]. For IPV6 address range, refer to IETF RFC 4291 [11].\n", + "type": "string", + "format": "CIDR" + }, + "IdentifierInVim": { + "description": "An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n", + "type": "string" + }, + "ProblemDetails": { + "description": "The definition of the general \"ProblemDetails\" data structure from IETF RFC 7807 [19] is reproduced inthis structure. Compared to the general framework defined in IETF RFC 7807 [19], the \"status\" and \"detail\" attributes are mandated to be included by the present document, to ensure that the response contains additional textual information about an error. IETF RFC 7807 [19] foresees extensibility of the \"ProblemDetails\" type. It is possible that particular APIs in the present document, or particular implementations, define extensions to define additional attributes that provide more information about the error. The description column only provides some explanation of the meaning to Facilitate understanding of the design. For a full description, see IETF RFC 7807 [19].\n", + "type": "object", + "required": [ + "status", + "detail" + ], + "properties": { + "type": { + "description": "A URI reference according to IETF RFC 3986 [5] that identifies the problem type. It is encouraged that the URI provides human-readable documentation for the problem (e.g. using HTML) when dereferenced. When this member is not present, its value is assumed to be \"about:blank\".\n", + "type": "string", + "format": "URI" + }, + "title": { + "description": "A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. If type is given and other than \"about:blank\", this attribute shall also be provided. A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).\n", + "type": "string" + }, + "status": { + "description": "The HTTP status code for this occurrence of the problem. The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.\n", + "type": "integer" + }, + "detail": { + "description": "A human-readable explanation specific to this occurrence of the problem.\n", + "type": "string" + }, + "instance": { + "description": "A URI reference that identifies the specific occurrence of the problem. It may yield further information if dereferenced.\n", + "type": "string", + "format": "URI" + } + } + }, + "ResourceHandle": { + "required": [ + "vimConnectionId", + "resourceId" + ], + "type": "object", + "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance. Information about the resource is available from the VIM.\n", + "properties": { + "vimConnectionId": { + "description": "Identifier of the VIM connection to manage the resource. This attribute shall only be supported and present if VNF-related resource management in direct mode is applicable. The applicable \"VimConnectionInfo\" structure, which is referenced by vimConnectionId, can be obtained from the \"vimConnectionInfo\" attribute of the \"VnfInstance\" structure.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceProviderId": { + "description": "Identifier of the entity responsible for the management of the resource. This attribute shall only be supported and present when VNF-related resource management in indirect mode is applicable. The identification scheme is outside the scope of the present document.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceId": { + "description": "Identifier of the resource in the scope of the VIM or the resource provider.\n", + "$ref": "#/definitions/IdentifierInVim" + }, + "vimLevelResourceType": { + "description": "Type of the resource in the scope of the VIM or the resource provider.\n", + "type": "string" + } + } + }, + "CpProtocolData": { + "description": "This type represents network protocol data.\n", + "type": "object", + "required": [ + "layerProtocol" + ], + "properties": { + "layerProtocol": { + "description": "Identifier of layer(s) and protocol(s). Permitted values: IP_OVER_ETHERNET.\n", + "type": "string", + "enum": [ + "IP_OVER_ETHERNET" + ] + }, + "ipOverEthernet": { + "description": "Network address data for IP over Ethernet to assign to the extCP instance. Shall be present if layerProtocol is equal to \"IP_OVER_ETHERNET\", and shall be absent otherwise.\n", + "$ref": "#/definitions/IpOverEthernetAddressData" + } + } + }, + "IpOverEthernetAddressData": { + "description": "This type represents network address data for IP over Ethernet.\n", + "type": "object", + "properties": { + "macAddress": { + "description": "MAC address. If this attribute is not present, it shall be chosen by the NFV MANO.\n", + "$ref": "#/definitions/MacAddress" + }, + "ipAddresses": { + "description": "List of IP addresses to assign to the CP instance. Each entry represents IP address data for fixed or dynamic IP address assignment per subnet. If this attribute is not present, no IP address shall be assigned.\n", + "type": "array", + "items": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "The type of the IP addresses. Permitted values: IPV4, IPV6.\n", + "type": "string", + "enum": [ + "IPV4", + "IPV6" + ] + }, + "fixedAddresses": { + "description": "Fixed addresses to assign (from the subnet defined by \"subnetId\" if provided). Exactly one of \"fixedAddresses\", \"numDynamicAddresses\" or \"ipAddressRange\" shall be present.\n", + "type": "array", + "items": { + "$ref": "#/definitions/IpAddress" + } + }, + "numDynamicAddresses": { + "description": "Number of dynamic addresses to assign (from the subnet defined by \"subnetId\" if provided). Exactly one of \"fixedAddresses\", \"numDynamicAddresses\" or \"ipAddressRange\" shall be present.\n", + "type": "integer" + }, + "addressRange": { + "description": "An IP address range to be used, e.g. in case of egress connections. In case this attribute is present, IP addresses from the range will be used.\n", + "type": "object", + "required": [ + "minAddress", + "maxAddress" + ], + "properties": { + "minAddress": { + "description": "Lowest IP address belonging to the range.\n", + "$ref": "#/definitions/IpAddress" + }, + "maxAddress": { + "description": "Highest IP address belonging to the range.\n", + "$ref": "#/definitions/IpAddress" + } + } + }, + "subnetId": { + "description": "Subnet defined by the identifier of the subnet resource in the VIM. In case this attribute is present, IP addresses from that subnet will be assigned; otherwise, IP addresses not bound to a subnet will be assigned.\n", + "$ref": "#/definitions/IdentifierInVim" + } + } + } + } + } + }, + "ExtVirtualLinkData": { + "description": "This type represents an external VL. It shall comply with the provisions defined in Table 6.5.3.26-1.\n", + "type": "object", + "required": [ + "resourceId", + "extCps" + ], + "properties": { + "extVirtualLinkId": { + "description": "The identifier of the external VL instance, if provided.\n", + "$ref": "#/definitions/Identifier" + }, + "vimId": { + "description": "Identifier of the VIM that manages this resource. This attribute shall only be supported and present if VNFrelated resource management in direct mode is applicable.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceProviderId": { + "description": "Identifies the entity responsible for the management of this resource. This attribute shall only be supported and present if VNF-related resource management in indirect mode is applicable. The identification scheme is outside the scope of the present document.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceId": { + "description": "The identifier of the resource in the scope of the VIM or the resource provider.\n", + "$ref": "#/definitions/IdentifierInVim" + }, + "extCps": { + "description": "External CPs of the VNF to be connected to this external VL.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfExtCpData" + } + }, + "extLinkPorts": { + "description": "Externally provided link ports to be used to connect external connection points to this external VL.\n", + "type": "array", + "items": { + "$ref": "#/definitions/ExtLinkPortData" + } + } + } + }, + "ExtManagedVirtualLinkData": { + "description": "This type represents an externally-managed internal VL. It shall comply with the provisions defined in Table 6.5.3.27-1.\n", + "type": "object", + "required": [ + "virtualLinkDescId", + "resourceId" + ], + "properties": { + "extManagedVirtualLinkId": { + "description": "The identifier of the externally-managed internal VL instance, if provided.\n", + "$ref": "#/definitions/Identifier" + }, + "virtualLinkDescId": { + "description": "The identifier of the VLD in the VNFD for this VL.\n", + "$ref": "#/definitions/IdentifierInVnfd" + }, + "vimId": { + "description": "Identifier of the VIMthat manage this resource. This attribute shall only be supported and present if VNFrelated resource management in direct mode is applicable.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceProviderId": { + "description": "Identifies the entity responsible for the management of this resource. This attribute shall only be supported and present if VNF-related resource management in indirect mode is applicable. The identification scheme is outside the scope of the present document.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceId": { + "description": "The identifier of the resource in the scope of the VIM or the resource provider.\n", + "$ref": "#/definitions/IdentifierInVim" + } + } + }, + "VnfExtCpData": { + "description": "This type represents configuration information for external CPs created from a CPD.\n", + "type": "object", + "required": [ + "cpdId" + ], + "properties": { + "cpdId": { + "description": "The identifier of the CPD in the VNFD.\n", + "$ref": "#/definitions/IdentifierInVnfd" + }, + "cpConfig": { + "description": "List of instance data that need to be configured on the CP instances created from the respective CPD.\n", + "type": "array", + "items": { + "$ref": "#/definitions/VnfExtCpConfig" + } + } + } + }, + "ExtLinkPortData": { + "description": "This type represents an externally provided link port to be used to connect an external connection point to an external VL.\n", + "type": "object", + "required": [ + "id", + "resourceHandle" + ], + "properties": { + "id": { + "description": "Identifier of this link port as provided by the entity that has created the link port.\n", + "$ref": "#/definitions/Identifier" + }, + "resourceHandle": { + "description": "Reference to the virtualised resource realizing this link port.\n", + "$ref": "#/definitions/ResourceHandle" + } + } + }, + "VnfExtCpConfig": { + "description": "This type represents an externally provided link port or network address information per instance of an external connection point. In case a link port is provided, the VNFM shall use that link port when connecting the external CP to the external VL. In a link port is not provided, the VNFM shall create a link port on the external VL, and use that link port to connect the external CP to the external VL.\n", + "type": "object", + "properties": { + "cpInstanceId": { + "description": "Identifier of the external CP instance to which this set of configuration parameters is requested to be applied. Shall be present if this instance has already been created.\n", + "$ref": "#/definitions/IdentifierInVnf" + }, + "linkPortId": { + "description": "Identifier of a pre-configured link port to which the external CP will be associated. The following conditions apply to the attributes \"linkPortId\" and \"cpProtocolData\": * The \"linkPortId\" and \"cpProtocolData\" attributes shall both be absent for the deletion of an existing external CP instance\n addressed by cpInstanceId. \n* At least one of these attributes shall be present for a to-be-created external CP instance or an existing external\n CP instance.\n* If the \"linkPortId\" attribute is absent, the VNFM shall create a link port.\n* If the \"cpProtocolData\" attribute is absent, the \"linkPortId\" attribute shall be provided referencing a pre-created link port,\n and the VNFM can use means outside the scope of the present\n document to obtain the pre-configured address information for the\n connection point from the resource representing the link port.\n* If both \"cpProtocolData\" and \"linkportId\" are provided, the API consumer shall ensure that the cpProtocolData can be used with the\n pre-created link port referenced by \"linkPortId\".\n", + "$ref": "#/definitions/Identifier" + }, + "cpProtocolData": { + "description": "Parameters for configuring the network protocols on the link port that connects the CP to a VL. The following conditions apply to the attributes \"linkPortId\" and \"cpProtocolData\": * The \"linkPortId\" and \"cpProtocolData\" attributes shall both be absent for the deletion of an existing external CP instance\n addressed by cpInstanceId. \n* At least one of these attributes shall be present for a to-be-created external CP instance or an existing external\n CP instance.\n* If the \"linkPortId\" attribute is absent, the VNFM shall create a link port.\n* If the \"cpProtocolData\" attribute is absent, the \"linkPortId\" attribute shall be provided referencing a pre-created link port,\n and the VNFM can use means outside the scope of the present\n document to obtain the pre-configured address information for the\n connection point from the resource representing the link port.\n* If both \"cpProtocolData\" and \"linkportId\" are provided, the API consumer shall ensure that the cpProtocolData can be used with the\n pre-created link port referenced by \"linkPortId\".\n", + "type": "array", + "items": { + "$ref": "#/definitions/CpProtocolData" + } + } + } + }, + "PortRange": { + "description": "The PortRange data type provides the lower and upper bounds of a range of Internet ports. It shall comply with the provisions defined in Table 6.5.3.42-1.\n", + "type": "object", + "required": [ + "lowerPort", + "upperPort" + ], + "properties": { + "lowerPort": { + "description": "Identifies the lower bound of the port range. upperPort Integer\n", + "type": "integer" + }, + "upperPort": { + "description": "Identifies the upper bound of the port range.\n", + "type": "integer" + } + } + }, + "Mask": { + "description": "The Mask data type identifies the value to be matched for a sequence of bits at a particular location in a frame. It shall comply with the provisions defined in Table 6.5.3.41-1.\n", + "type": "object", + "required": [ + "startingPoint", + "length", + "value" + ], + "properties": { + "startingPoint": { + "description": "Indicates the offset between the last bit of the source mac address and the first bit of the sequence of bits to be matched.\n", + "type": "integer" + }, + "length": { + "description": "Indicates the number of bits to be matched.\n", + "type": "integer" + }, + "value": { + "description": "Provide the sequence of bit values to be matched.\n", + "type": "string" + } + } + }, + "Uri": { + "description": "String formatted according to IETF RFC 3986.\n", + "type": "string" + }, + "SubscriptionAuthentication": { + "type": "object", + "required": [ + "authType" + ], + "properties": { + "authType": { + "description": "Defines the types of Authentication / Authorization which the API consumer is willing to accept when receiving a notification. Permitted values: * BASIC: In every HTTP request to the notification endpoint, use HTTP Basic authentication with the client credentials. \n* OAUTH2_CLIENT_CREDENTIALS: In every HTTP request to the notification endpoint, use an OAuth 2.0 Bearer token, obtained\n using the client credentials grant type.\n* TLS_CERT: Every HTTP request to the notification endpoint is sent over a mutually authenticated TLS session, i.e. not only the\n server is authenticated, but also the client is authenticated\n during the TLS tunnel setup.\n", + "type": "array", + "items": { + "type": "string", + "enum": [ + "BASIC", + "OAUTH2_CLIENT_CREDENTIALS", + "TLS_CERT" + ] + } + }, + "paramsBasic": { + "description": "Parameters for authentication/authorization using BASIC. Shall be present if authType is \"BASIC\" and the contained information has not been provisioned out of band. Shall be absent otherwise.\n", + "type": "object", + "properties": { + "userName": { + "description": "Username to be used in HTTP Basic authentication. Shall be present if it has not been provisioned out of band.\n", + "type": "string" + }, + "password": { + "description": "Password to be used in HTTP Basic authentication. Shall be present if it has not been provisioned out of band.\n", + "type": "string" + } + } + }, + "paramsOauth2ClientCredentials": { + "description": "Parameters for authentication/authorization using OAUTH2_CLIENT_CREDENTIALS. Shall be present if authType is \"OAUTH2_CLIENT_CREDENTIALS\" and the contained information has not been provisioned out of band. Shall be absent otherwise.\n", + "type": "object", + "properties": { + "clientId": { + "description": "Client identifier to be used in the access token request of the OAuth 2.0 client credentials grant type. Shall be present if it has not been provisioned out of band. The clientId and clientPassword passed in a subscription shall not be the same as the clientId and clientPassword that are used to obtain authorization for API requests. Client credentials may differ between subscriptions. The value of clientPassword should be generated by a random process.\n", + "type": "string" + }, + "clientPassword": { + "description": "Client password to be used in the access token request of the OAuth 2.0 client credentials grant type. Shall be present if it has not been provisioned out of band. The clientId and clientPassword passed in a subscription shall not be the same as the clientId and clientPassword that are used to obtain authorization for API requests. Client credentials may differ between subscriptions. The value of clientPassword should be generated by a random process.\n", + "type": "string" + }, + "tokenEndpoint": { + "description": "The token endpoint from which the access token can be obtained. Shall be present if it has not been provisioned out of band.\n", + "$ref": "#/definitions/Uri" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/SOL005/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot b/SOL005/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot index 44096e7505649c164557e831b382ae199be5f35b..12c63b5a3842cd0a1b39955f90e95adea905fbe7 100644 --- a/SOL005/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot +++ b/SOL005/VNFPackageManagement-API/VNFDInIndividualVNFPackage.robot @@ -9,7 +9,7 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} GET VNFD in Individual VNF Package (PLAIN) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgPlainVNFD}/vnfd Integer response status 200 ${contentType}= Output response headers Content-Type @@ -18,7 +18,7 @@ GET VNFD in Individual VNF Package (PLAIN) GET VNFD in Individual VNF Package (ZIP) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd Integer response status 200 ${contentType}= Output response headers Content-Type @@ -28,7 +28,7 @@ GET VNFD in Individual VNF Package (PLAIN-ZIP) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd Integer response status 200 ${contentType}= Output response headers Content-Type @@ -38,7 +38,7 @@ GET VNFD in Individual VNF Package (PLAIN-ZIP) GET VNFD in Individual VNF Package - Negative (PLAIN/ZIP) Log Trying to get a negative case performing a get on a VNFD from a given VNF Package present in the NFVO Catalogue. Accept will be text/plain but VNFD is composed my multiple files. Set Headers {"Accept": "${ACCEPT_PLAIN}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPkgZipVNFD}/vnfd Integer response status 406 ${contentType}= Output response headers Content-Type @@ -52,7 +52,7 @@ GET VNFD in Individual VNF Package - Negative (Not Found) Log Trying to perform a negative get, using an erroneous package ID Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${erroneousVnfPkgId}/vnfd Integer response status 404 Log Received 404 Not Found as expected @@ -67,7 +67,7 @@ GET VNFD in Individual VNF Package - Negative (onboardingState issue) Log Trying to get a VNFD from a given VNF Package present in the NFVO Catalogue Set Headers {"Accept": "${ACCEPT_PLAIN}"} Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${onboardingStateVnfPkgId}/vnfd Integer response status 409 Log Received 409 Conflict as expected @@ -82,7 +82,7 @@ POST VNFD in Individual VNF Package (Method not implemented) Pass Execution If ${testOptionalMethods} == 0 optional methods are not implemented on the FUT. Skipping test. Log Trying to perform a POST (method should not be implemented) Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} POST ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/vnfd Integer response status 405 Log Received 405 Method not implemented as expected @@ -91,7 +91,7 @@ PUT VNFD in Individual VNF Package (Method not implemented) Pass Execution If ${testOptionalMethods} == 0 optional methods are not implemented on the FUT. Skipping test. Log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} PUT ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/vnfd Integer response status 405 Log Received 405 Method not implemented as expected @@ -100,7 +100,7 @@ PATCH VNFD in Individual VNF Package (Method not implemented) Pass Execution If ${testOptionalMethods} == 0 optional methods are not implemented on the FUT. Skipping test. Log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} PATCH ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/vnfd Integer response status 405 Log Received 405 Method not implemented as expected @@ -109,7 +109,7 @@ DELETE VNFD in Individual VNF Package (Method not implemented) Pass Execution If ${testOptionalMethods} == 0 optional methods are not implemented on the FUT. Skipping test. Log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept": "${ACCEPT_ZIP}"} - Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization: "${AUTHORIZATION}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} DELETE ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId} Integer response status 405 Log Received 405 Method not implemented as expected diff --git a/SOL005/VNFPackageManagement-API/environment/individualVnfPackage.txt b/SOL005/VNFPackageManagement-API/environment/individualVnfPackage.txt index a2655eac1e0b5d1340243d317c20076177b8de27..a3edf10677ba23f74f15db40c12bf04c9dedb26c 100644 --- a/SOL005/VNFPackageManagement-API/environment/individualVnfPackage.txt +++ b/SOL005/VNFPackageManagement-API/environment/individualVnfPackage.txt @@ -1,4 +1,3 @@ *** Variables *** -${vnfPackageId} 4bbca710-c00e-11e8-b568-0800200c9a66 ${erroneousVnfPackageId} erroneousVnfPackageId # Given ID for vnfPkg not present in database ${disabledVnfPackageId} 87a2c9d3-00ea-4032-8c67-a5106d001868