Newer
Older
Resource environment/variables.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Resource VnfLcmMntOperationKeywords.robot
POST Operate a vnfInstance
[Documentation] Test ID: 7.3.1.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
... Reference: Clause 5.4.10.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
POST Operate VNF
Check HTTP Response Status Code Is 202
POST Operate a vnfInstance Conflict (Not-Instantiated)
[Documentation] Test ID: 7.3.1.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
... Reference: Clause 5.4.10.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
POST Operate a vnfInstance Not Found
[Documentation] Test ID: 7.3.1.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
... Reference: Clause 5.4.10.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
[Documentation] Test ID: 7.3.1.9.4
... Test title: GET Operate a vnfInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Reference: Clause 5.4.10.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
GET Operate VNF
Check HTTP Response Status Code Is 405
[Documentation] Test ID: 7.3.1.9.5
... Test title: PUT Operate a vnfInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Reference: Clause 5.4.10.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
PUT Operate VNF
Check HTTP Response Status Code Is 405
[Documentation] Test ID: 7.3.1.9.6
... Test title: PATCH Operate a vnfInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Reference: Clause 5.4.10.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
PATCH Operate VNF
Check HTTP Response Status Code Is 405
... Test title: DELETE Operate a vnfInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions: none
... Reference: Clause 5.4.10.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
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_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}