Newer
Older
*** Settings ***
Resource environment/variables.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Suite Setup Check resource existence
*** Test Cases ***
[Documentation] Test ID: 6.3.5.9.1
... Test title: POST Operate a vnfInstance
... Test objective: The objective is to test that POST method operate a VNF instance
... Pre-conditions: none
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
POST Operate VNF
Check HTTP Response Status Code Is 202
Check Operation Occurrence Id
POST Operate a vnfInstance Conflict (Not-Instantiated)
[Documentation] Test ID: 6.3.5.9.2
... Test title: POST Operate 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: the VNF instance resource is in NOT-INSTANTIATED state
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
POST Operate VNF
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
POST Operate a vnfInstance Not Found
[Documentation] Test ID: 6.3.5.9.3
... Test objective: The objective is to test that the operation cannot be executed currently, because the resource is not existing
... Pre-conditions: the VNF instance resource is in not existing
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
POST Operate VNF
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
GET Operate VNFInstance - Method not implemented
... Test title: GET Operate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
GET Operate VNF
Check HTTP Response Status Code Is 405
PUT Operate VNFInstance - Method not implemented
... Test title: PUT Operate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
PUT Operate VNF
Check HTTP Response Status Code Is 405
PATCH Operate VNFInstance - Method not implemented
... Test title: PATCH Operate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
PATCH Operate VNF
Check HTTP Response Status Code Is 405
DELETE Operate VNFInstance - Method not implemented
... Test title: DELETE Operate VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
Giacomo Bernini
committed
... Reference: clause 5.4.10.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: none
... Post-Conditions:
DELETE Operate VNF
Check HTTP Response Status Code Is 405
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
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
committed
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${instanceId}
String response body instantiationState NOT_INSTANTIATED
Check operate 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 operate 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