Skip to content
Snippets Groups Projects
Commit 38b7f343 authored by aureliano sinatra's avatar aureliano sinatra
Browse files

removed setup from SOL5

parent 90004c2b
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 73 deletions
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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 ***
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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 ***
......
......@@ -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
......
......@@ -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
......
*** 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment