From 38b7f343a7012d9ea125d3d6b29c306c3363485b Mon Sep 17 00:00:00 2001 From: aureliano sinatra Date: Fri, 19 Jul 2019 11:33:49 +0200 Subject: [PATCH] removed setup from SOL5 --- .../CancelOperationTask.robot | 10 ++++------ .../ChangeExternalVNFConnectivityTask.robot | 1 - .../ChangeVNFFlavourTask.robot | 9 +++------ .../FailOperationTask.robot | 8 -------- .../VNFLifecycleManagement-API/HealVNFTask.robot | 3 --- .../IndividualSubscription.robot | 3 --- .../IndividualVNFInstance.robot | 8 -------- .../InstantiateVNFTask.robot | 1 - .../NotificationEndpoint.robot | 3 +-- .../OperateVNFTask.robot | 2 -- .../RetryOperationTask.robot | 3 --- .../RetryOperationWorkflow.robot | 2 -- .../RollbackOperationTask.robot | 3 --- .../VNFLifecycleManagement-API/ScaleVNFTask.robot | 8 +++----- .../ScaleVNFToLevelTask.robot | 9 +++------ .../ScaleVNFWorkflow.robot | 2 -- .../TerminateVNFTask.robot | 1 - .../VnfLcmMntOperationKeywords.robot | 14 ++++++-------- .../environment/variables.txt | 3 --- 19 files changed, 20 insertions(+), 73 deletions(-) diff --git a/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot b/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot index f35468e6..2cea9e87 100644 --- a/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot @@ -6,21 +6,20 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} Library DependencyLibrary Library JSONLibrary Library JSONSchemaLibrary schemas/ -Documentation This task resource represents the "Cancel operation" operation. The client can use this resource to cancel an ongoing VNF lifecycle operation. -Suite Setup Check resource existance *** Test Cases *** Post Cancel operation task [Documentation] Test ID: 7.3.1.16.1 ... Test title: POST Cancel operation task ... Test objective: The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed or rolled back, i.e. the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state. - ... Pre-conditions: none + ... Pre-conditions: the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state. ... Reference: section 5.4.17.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: in response header Location should not be null POST Cancel operation task Check HTTP Response Status Code Is 202 + Check resource FAILED_TEMP Post Cancel operation task Conflict [Documentation] Test ID: 7.3.1.16.2 @@ -31,7 +30,6 @@ Post Cancel operation task Conflict ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: in response header Location should not be null - Depends on test Check resource FAILED_TEMP POST Cancel operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -40,15 +38,15 @@ Post Cancel operation task Not Found # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent [Documentation] Test ID: 7.3.1.16.2 ... Test title: POST Cancel operation task - ... Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the operation is not supported + ... Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the resource is not found ... Pre-conditions: ... Reference: section 5.4.17.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: in response header Location should not be null - [Setup] Check Fail not supported POST Cancel operation task Check HTTP Response Status Code Is 404 + GET Cancel operation task - Method not implemented [Documentation] Test ID: 7.3.1.16.3 ... Test title: GET Cancel operation task - Method not implemented diff --git a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot index 1bd859ea..d57054da 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot @@ -6,7 +6,6 @@ Resource VnfLcmMntOperationKeywords.robot Library OperatingSystem Library JSONLibrary Library JSONSchemaLibrary schemas/ -Suite Setup Check resource existance *** Test Cases *** POST Change external VNF connectivity diff --git a/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot b/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot index 5d4605c6..6cedd724 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot @@ -6,7 +6,6 @@ Resource VnfLcmMntOperationKeywords.robot Library OperatingSystem Library JSONLibrary Library JSONSchemaLibrary schemas/ -Suite Setup Check resource existance *** Test Cases *** POST Change deployment flavour of a vnfInstance @@ -18,7 +17,7 @@ POST Change deployment flavour of a vnfInstance ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: in response header Location should not be null - POST Change VNF deployment flavour ${vnfInstanceId} + POST Change VNF deployment flavour Check HTTP Response Status Code Is 202 Check Operation Occurrence Id @@ -31,8 +30,7 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - [Setup] Check resource not instantiated - POST Change VNF deployment flavour ${instantiatedVnfInstanceId} + POST Change VNF deployment flavour Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -47,8 +45,7 @@ Change deployment flavour of a vnfInstance Not Found ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - [Setup] Check change flavour not supported - POST Change VNF deployment flavour ${notFoundVnfInstanceId} + POST Change VNF deployment flavour Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot b/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot index 3c32ba2b..a46944df 100644 --- a/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/FailOperationTask.robot @@ -6,11 +6,6 @@ Library DependencyLibrary Library JSONLibrary Library JSONSchemaLibrary schemas/ Resource VnfLcmMntOperationKeywords.robot -Documentation This task resource represents the "Fail operation" operation. -... The client can use this resource to mark a VNF lifecycle management operation occurrence as "finally failed", -... i.e. change the state of the related VNF LCM operation occurrence resource to "FAILED", if it is not assumed that a subsequent retry or rollback will succeed. -... Once the operation is marked as "finally failed", it cannot be retried or rolled back anymore. -Suite Setup Check resource existance *** Test Cases *** Post Fail operation task @@ -22,7 +17,6 @@ Post Fail operation task ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - Depends on test Check resource FAILED_TEMP Post Fail operation Check HTTP Response Status Code Is 202 Check Operation Occurrence Id @@ -37,7 +31,6 @@ Post Fail operation task Conflict (Not-FAILED_TEMP) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - Depends on test failure Check resource FAILED_TEMP Post Fail operation Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -52,7 +45,6 @@ Post Fail operation task Not Found ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - [Setup] Check Fail not supported Post Fail operation Check HTTP Response Status Code Is 404 diff --git a/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot b/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot index 9e3a82db..3ac5c806 100644 --- a/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot @@ -6,7 +6,6 @@ Library OperatingSystem Library JSONLibrary Library JSONSchemaLibrary schemas/ Resource VnfLcmMntOperationKeywords.robot -Suite Setup Check resource existance *** Test Cases *** POST Heal a vnfInstance @@ -32,7 +31,6 @@ Heal a vnfInstance Conflict (Not-Instantiated) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: - [Setup] Check resource not instantiated POST Terminate VNF Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -49,7 +47,6 @@ Heal a vnfInstance Not Found ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: - [Setup] Check heal not supported POST Terminate VNF Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot b/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot index d38ba6d7..2bb605ab 100644 --- a/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot +++ b/SOL003/VNFLifecycleManagement-API/IndividualSubscription.robot @@ -5,9 +5,6 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} Library JSONLibrary Library JSONSchemaLibrary schemas/ Resource VnfLcmMntOperationKeywords.robot -Documentation This resource represents an individual subscription. The client can use this resource to read and to terminate a -... subscription to notifications related to VNF lifecycle management -Suite Setup Check resource existance *** Test Cases *** Post Individual Subscription - Method not implemented diff --git a/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot b/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot index 888c086b..12961688 100644 --- a/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot +++ b/SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot @@ -8,9 +8,6 @@ Library OperatingSystem Library DependencyLibrary Library JSONLibrary Library JSONSchemaLibrary schemas/ -Documentation This resource represents an individual VNF instance. The client can use this resource to modify and delete the -... underlying VNF instance, and to read information about the VNF instance. -Suite Setup Check resource existance *** Variables *** ${original_etag} 1234 @@ -76,7 +73,6 @@ PATCH Individual VNFInstance Precondition failed ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - Depends On Test PATCH Individual VNFInstance # If the previous test scceeded, it means that Etag has been modified PATCH individual vnfInstance Check HTTP Response Status Code Is 412 Check HTTP Response Body Json Schema Is ProblemDetails @@ -90,8 +86,6 @@ PATCH Individual VNFInstance Conflict ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - # TODO: Need to set the pre-condition of the test - [Setup] Launch another LCM operation PATCH individual vnfInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -118,8 +112,6 @@ DELETE Individual VNFInstance Conflict ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - # TODO: Need to set the pre-condition of the test. The VnfInstance shall in INSTANTIATED state - [Setup] Check resource instantiated DELETE individual vnfInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot b/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot index 37a570c5..d1f7d1af 100644 --- a/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/InstantiateVNFTask.robot @@ -34,7 +34,6 @@ Instantiate a vnfInstance Conflict ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - [Setup] Check resource instantiated POST instantiate individual vnfInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/NotificationEndpoint.robot b/SOL003/VNFLifecycleManagement-API/NotificationEndpoint.robot index 94a9f753..06c8c486 100644 --- a/SOL003/VNFLifecycleManagement-API/NotificationEndpoint.robot +++ b/SOL003/VNFLifecycleManagement-API/NotificationEndpoint.robot @@ -16,8 +16,7 @@ ${sleep_interval} 20s Deliver a notification - Operation Occurence [Documentation] Test ID: 7.3.1.19.1 ... Test title: POST Deliver a notification - Operation Occurence - ... Test objective: The objective is to test that POST method trigger a notification about lifecycle changes triggered by a VNF LCM -operation occurrence + ... Test objective: The objective is to test that POST method trigger a notification about lifecycle changes triggered by a VNF LCM operation occurrence ... Pre-conditions: none ... Reference: section 5.4.20.3.1 - SOL005 v2.4.1 ... Config ID: Config_prod_NFVO diff --git a/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot b/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot index c457baba..88cda66d 100644 --- a/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/OperateVNFTask.robot @@ -33,7 +33,6 @@ POST Operate a vnfInstance Conflict (Not-Instantiated) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: - [Setup] Check resource not instantiated POST Operate VNF Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -49,7 +48,6 @@ POST Operate a vnfInstance Not Found ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: - [Setup] Check operate not supported POST Operate VNF Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot b/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot index 78db6617..a4aa7a8d 100644 --- a/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/RetryOperationTask.robot @@ -20,7 +20,6 @@ Post Retry operation task ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - Depends on test Check resource FAILED_TEMP Post Retry operation Check HTTP Response Status Code Is 202 Check Operation Occurrence Id @@ -35,7 +34,6 @@ Post Retry operation task Conflict (Not-FAILED_TEMP) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - Depends on test failure Check resource FAILED_TEMP Post Retry operation Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -51,7 +49,6 @@ Post Retry operation task Not Found ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - [Setup] Check retry not supported Post Retry operation Check HTTP Response Status Code Is 404 diff --git a/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot b/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot index 4905e192..ddcda353 100644 --- a/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot @@ -10,8 +10,6 @@ Library BuiltIn Library Collections Library JSONLibrary Library Process -Suite Setup Initialize System -Suite Teardown Terminate All Processes kill=true *** Test Cases *** diff --git a/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot b/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot index 1340d482..86605dc8 100644 --- a/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/RollbackOperationTask.robot @@ -19,7 +19,6 @@ Post Rollback operation task ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - Depends on test Check resource FAILED_TEMP Post Rollback operation Check HTTP Response Status Code Is 202 Check Operation Occurrence Id @@ -34,7 +33,6 @@ Post Rollback operation task Conflict (Not-FAILED_TEMP) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - Depends on test failure Check resource FAILED_TEMP Post Rollback operation Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -50,7 +48,6 @@ Post Rollback operation task Not Found ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none - [Setup] Check Rollback not supported Post Rollback operation Check HTTP Response Status Code Is 404 diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot index 85c93ddb..0d57c9fc 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot @@ -18,7 +18,7 @@ POST Scale a vnfInstance ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - POST Scale vnfInstance ${instantiatedVnfInstanceId} + POST Scale vnfInstance Check HTTP Response Status Code Is 202 Check Operation Occurrence Id @@ -32,8 +32,7 @@ POST Scale a vnfInstance Conflict (Not-Instantiated) ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - [Setup] Check resource not instantiated - POST Scale vnfInstance ${notInstantiatedVnfInstanceId} + POST Scale vnfInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -47,8 +46,7 @@ POST Scale a vnfInstance Not Found ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - [Setup] Check scale not supported - POST Scale vnfInstance ${notFoundVnfInstanceId} + POST Scale vnfInstance Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot index b31f58f4..fd63e708 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelTask.robot @@ -6,7 +6,6 @@ Library OperatingSystem Library JSONLibrary Library JSONSchemaLibrary schemas/ Resource VnfLcmMntOperationKeywords.robot -Suite Setup Check resource existance *** Test Cases *** POST Scale a vnfInstance to level @@ -18,7 +17,7 @@ POST Scale a vnfInstance to level ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - POST Scale vnfInstance to level ${instantiatedVnfInstanceId} + POST Scale vnfInstance to level Check HTTP Response Status Code Is 202 Check Operation Occurrence Id @@ -32,8 +31,7 @@ POST Scale a vnfInstance to level Conflict (Not-Instantiated) ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - [Setup] Check resource not instantiated - POST Scale vnfInstance to level ${notInstantiatedInstanceId} + POST Scale vnfInstance to level Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -48,8 +46,7 @@ Scale a vnfInstance Not Found ... Config ID: Config_prod_VNFM ... Applicability: ... Post-Conditions: - [Setup] Check scale to level not supported - POST Scale vnfInstance to level ${notFoundInstanceId} + POST Scale vnfInstance to level Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot index 7344f7f8..0198e5aa 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot @@ -10,8 +10,6 @@ Library BuiltIn Library Collections Library JSONLibrary Library Process -Suite Setup Initialize System -Suite Teardown Terminate All Processes kill=true *** Test Cases *** diff --git a/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot b/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot index 5573682b..3b698915 100644 --- a/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/TerminateVNFTask.robot @@ -32,7 +32,6 @@ Terminate a vnfInstance Conflict (Not-Instantiated) ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: - [Setup] Check resource not instantiated POST Terminate VNF Check HTTP Response Status Code Is 202 Check HTTP Response Body Json Schema Is ProblemDetails diff --git a/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot b/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot index 290bf517..5c39cc48 100644 --- a/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +++ b/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot @@ -306,40 +306,39 @@ DELETE Change External VNF Connectivity Set Global Variable @{response} ${outputResponse} POST Change VNF deployment flavour - [Arguments] ${instanceId} 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/changeVnfFlavourRequest.json - Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}/change_flavour ${body} + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${body} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} GET Change External VNF Connectivity log Trying to perform a GET. This method should not be implemented Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}/change_flavour + Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} PUT Change External VNF Connectivity log Trying to perform a PUT. This method should not be implemented Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Put ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}/change_flavour + Put ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} PATCH Change External VNF Connectivity Log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} - Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}/change_flavour + Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} DELETE Change External VNF Connectivity Log Trying to perform a DELETE. This method should not be implemented Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}/change_flavour + Delete ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/change_flavour ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} @@ -538,13 +537,12 @@ DELETE Scale vnfInstance ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} POST Scale vnfInstance to level - [Arguments] ${instanceId} Log Trying to scale a vnf Instance to level 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/${instanceId}/scale_to_level ${body} + Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale_to_level ${body} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} GET Scale vnfInstance to level diff --git a/SOL003/VNFLifecycleManagement-API/environment/variables.txt b/SOL003/VNFLifecycleManagement-API/environment/variables.txt index fe5c9214..82e8f8ad 100644 --- a/SOL003/VNFLifecycleManagement-API/environment/variables.txt +++ b/SOL003/VNFLifecycleManagement-API/environment/variables.txt @@ -1,8 +1,5 @@ *** Variables *** ${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f -${instantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f #Change with an instantiated vnfInstanceID -${notInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f #Change with an instantiated vnfInstanceID -${notFoundVnfInstanceId} xxxxxxx-yyyyyyy-tttt-az98-uuuuuu #Change with an instantiated vnfInstanceID ${subscriptionId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f ${vnfLcmOpOccId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d ${callback_endpoint} /notification -- GitLab