Newer
Older
*** Settings ***
Resource environment/variables.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
*** Test Cases ***
[Documentation] Test ID: 6.3.5.7.1
... Test title: POST Terminate a vnfInstance
... Test objective: The objective is to test that POST method terminate a VNF instance
... Pre-conditions: none
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
POST Terminate VNF
Check HTTP Response Status Code Is 202
Check Operation Occurrence Id
POST Terminate a vnfInstance Conflict (Not-Instantiated)
... Test title: POST Terminate a vnfInstance Conflict (Not-Instantiated)
... Test objective: The objective is to test that the operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
... Pre-conditions: VNF instance resource is in NOT-INSTANTIATED state
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
POST Terminate VNF
Check HTTP Response Status Code Is 202
Check HTTP Response Body Json Schema Is ProblemDetails
GET Terminate VNFInstance - Method not implemented
[Documentation] Test ID: 6.3.5.7.3
... Test title: GET Terminate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions: none
GET Scale vnfInstance to level
Check HTTP Response Status Code Is 405
PUT Terminate VNFInstance - Method not implemented
... Test title: PUT Terminate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions: none
PUT Scale vnfInstance to level
Check HTTP Response Status Code Is 405
PATCH Terminate VNFInstance - Method not implemented
... Test title: PATCH Terminate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions: none
PATCH Scale vnfInstance to level
Check HTTP Response Status Code Is 405
DELETE Terminate VNFInstance - Method not implemented
... Test title: DELETE Terminate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions: none
DELETE Scale vnfInstance to level
Check HTTP Response Status Code Is 405
Check resource existance
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}
Integer response status 200
Check resource not instantiated
![Elian Kraja Elian Kraja's avatar](/rep/uploads/-/system/user/avatar/13/avatar.png?width=36)
Elian Kraja
committed
[Arguments] ${instanceId}
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
![Elian Kraja Elian Kraja's avatar](/rep/uploads/-/system/user/avatar/13/avatar.png?width=36)
Elian Kraja
committed
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}
String response body instantiationState NOT_INSTANTIATED
Check change flavour not supported
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}
# how to check if change floavour is not supported? "flavourId" doesn't exist?
Launch another LCM operation
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body}
Integer response status 202