diff --git a/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot b/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot index 0b2e1c1fd3cc6ba263cddb7ddeed3c45b18b05ef..864b8f8a242ccef840addf38b7f6375982df8d55 100644 --- a/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot +++ b/SOL002/VNFLifecycleManagement-API/CancelOperationTask.robot @@ -17,7 +17,7 @@ Post Cancel operation task ... Reference: section 5.4.17.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: none POST Cancel operation task Check HTTP Response Status Code Is 202 Check resource has a temporary failure @@ -30,7 +30,7 @@ Post Cancel operation task Conflict ... Reference: section 5.4.17.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: none POST Cancel operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -44,7 +44,7 @@ Post Cancel operation task Not Found ... Reference: section 5.4.17.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: none POST Cancel operation task Check HTTP Response Status Code Is 404 diff --git a/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot b/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot index 407f5a1841047bd82b7c02f71f9a18f3de4c29dc..a61b56959f55e8ec153e868eba60f59382716ee5 100644 --- a/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot +++ b/SOL002/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot @@ -16,7 +16,7 @@ POST Change external VNF connectivity ... Reference: section 5.4.11.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null POST Change External VNF Connectivity Check HTTP Response Status Code Is 202 Check Operation Occurrence Id diff --git a/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot b/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot index b730df485b4c6c164bd48cb0debe9fda6fba9dfc..8ccb0e8e7bda1f08329dbe3fad55bb67e94ea93f 100644 --- a/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot +++ b/SOL002/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot @@ -16,7 +16,7 @@ Change deployment flavour of a vnfInstance ... Reference: section 5.4.7.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null POST Change VNF deployment flavour Check HTTP Response Status Code Is 202 Check Operation Occurrence Id diff --git a/SOL002/VNFLifecycleManagement-API/LCMParallelOperation.robot b/SOL002/VNFLifecycleManagement-API/LCMParallelOperation.robot deleted file mode 100644 index e01a43ac8dbdceb49ce19eca5677cc7e8f595f60..0000000000000000000000000000000000000000 --- a/SOL002/VNFLifecycleManagement-API/LCMParallelOperation.robot +++ /dev/null @@ -1,41 +0,0 @@ -*** Settings *** -Resource environment/variables.txt -Resource VnfLcmOperationKeywords.robot -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/Subscriptions.robot b/SOL002/VNFLifecycleManagement-API/Subscriptions.robot index d345f528fbb92ab0e7e715063875b4a93d67f584..ee93b686b384f06656683398385c6eae33789d57 100644 --- a/SOL002/VNFLifecycleManagement-API/Subscriptions.robot +++ b/SOL002/VNFLifecycleManagement-API/Subscriptions.robot @@ -15,7 +15,7 @@ POST Create a new subscription ... Reference: section 5.4.18.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null ... POST Cancel operation task Post Create subscription Check HTTP Response Status Code Is 201 @@ -28,7 +28,7 @@ Create a new Subscription - DUPLICATION ... Reference: section 5.4.18.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null ... POST Cancel operation task Post Create subscription - DUPLICATION Check HTTP Response Status Code Is 201 @@ -42,7 +42,7 @@ Create a new Subscription - NO-DUPLICATION ... Reference: section 5.4.18.3.1 - SOL002 v2.4.1 ... Config ID: Config_prod_VE ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null ... POST Cancel operation task Post Create subscription - NO-DUPLICATION Check HTTP Response Status Code Is 303 diff --git a/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot b/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot index 37615b496826ea5fa06592ade88dcd73c24658ff..0550cfa854d561d5d2e7ac6f198f8b66c28c850a 100644 --- a/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot +++ b/SOL003/VNFLifecycleManagement-API/CancelOperationTask.robot @@ -16,7 +16,7 @@ Post Cancel operation task ... 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-Conditions: VNF instance status equal to FAILED_TEMP POST Cancel operation task Check HTTP Response Status Code Is 202 Check resource has a temporary failure @@ -29,7 +29,7 @@ Post Cancel operation task Conflict ... 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-Conditions: none POST Cancel operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails @@ -43,7 +43,7 @@ Post Cancel operation task Not Found ... 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-Conditions: none POST Cancel operation task Check HTTP Response Status Code Is 404 diff --git a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot index d57054da5acfe657a2435c574ea842ee58bb67a8..450858a3b039efd9c5a42286066a630703cf3aa4 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityTask.robot @@ -16,7 +16,7 @@ POST Change external VNF connectivity ... Reference: section 5.4.11.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null POST Change External VNF Connectivity Check HTTP Response Status Code Is 202 Check Operation Occurrence Id diff --git a/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot b/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot index 6cedd724dd4ff3551af673216ddaa00a84b76a45..4770d21dca90e2f8357f6ee004a804810432d1d1 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeVNFFlavourTask.robot @@ -16,7 +16,7 @@ POST Change deployment flavour of a vnfInstance ... Reference: section 5.4.7.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null POST Change VNF deployment flavour Check HTTP Response Status Code Is 202 Check Operation Occurrence Id diff --git a/SOL003/VNFLifecycleManagement-API/LCMParallelOperation.robot b/SOL003/VNFLifecycleManagement-API/LCMParallelOperation.robot deleted file mode 100644 index e4bb01b39e313cb50282efc97af0606d7f5e899f..0000000000000000000000000000000000000000 --- a/SOL003/VNFLifecycleManagement-API/LCMParallelOperation.robot +++ /dev/null @@ -1,42 +0,0 @@ -*** 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/Subscriptions.robot b/SOL003/VNFLifecycleManagement-API/Subscriptions.robot index ded88b62e5d1d637e9f07d2f17e5f9d219c12960..15063cc8ed4ff5c819ca0e8d4ac457a859d71ae0 100644 --- a/SOL003/VNFLifecycleManagement-API/Subscriptions.robot +++ b/SOL003/VNFLifecycleManagement-API/Subscriptions.robot @@ -17,7 +17,7 @@ POST Create a new subscription ... Reference: section 5.4.18.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null ... POST Cancel operation task Post Create subscription Check HTTP Response Status Code Is 201 @@ -30,7 +30,7 @@ Create a new Subscription - DUPLICATION ... Reference: section 5.4.18.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null ... POST Cancel operation task Post Create subscription - DUPLICATION Check HTTP Response Status Code Is 201 @@ -44,7 +44,7 @@ Create a new Subscription - NO-DUPLICATION ... Reference: section 5.4.18.3.1 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM ... Applicability: none - ... Post-Conditions: in response header Location should not be null + ... Post-Conditions: in response header Location shall not be null ... POST Cancel operation task Post Create subscription - NO-DUPLICATION Check HTTP Response Status Code Is 303