Commit f29411c5 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

fixed issue #194 in 2.6.1-fix-plu

parent 0c7c4488
......@@ -66,16 +66,17 @@ PATCH Individual VNFInstance
PATCH Individual VNFInstance Precondition failed
[Documentation] Test ID: 7.3.1.2.5
... Test title: PATCH Individual VNFInstance Precondition failed
... Test objective: The objective is to create a new VNF instance resource
... Pre-conditions: ETag mismatch
... Test objective: The objective is to test that modification of a VNF instance resource fails when a precondition given in an HTTP request header is not fulfilled due to an ETag mismatch
... Pre-conditions: an existing VNF instance resource
... Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: VNFInstance not modified
PATCH individual vnfInstance
... Applicability: none
... Post-Conditions: none
PATCH individual vnfInstance - Etag mismatch
Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails
PATCH Individual VNFInstance Conflict
[Documentation] Test ID: 7.3.1.2.6
... Test title: PATCH Individual VNFInstance Conflict
......@@ -85,7 +86,7 @@ PATCH Individual VNFInstance Conflict
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions: VNFInstance not modified
PATCH individual vnfInstance
PATCH individual vnfInstance with conflict
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
......
......@@ -537,6 +537,37 @@ PATCH individual vnfInstance
Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body}
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
POST conflicting operation
Log Trying to create conflicting operation.
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/terminateVnfRequest.json
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${anotherInstantiatedVnfInstanceId}/terminate ${body}
PATCH individual vnfInstance with conflict
POST conflicting operation
log Trying to modify an individual VNF instance with conflict
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/patchBodyRequest.json
Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${anotherInstantiatedVnfInstanceId} ${body}
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
PATCH individual vnfInstance - Etag mismatch
log Trying to modify an individual VNF instance
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Set Headers {"If-Match": "${invalid_etag}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/patchBodyRequest.json
Patch ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId} ${body}
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
DELETE individual vnfInstance
log Trying to delete an individual VNF instance
......
*** Variables ***
${instantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${anotherInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${notInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${notExistingVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${subscriptionId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${conflicVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${invalid_etag} invalid etag
${vnfLcmOpOccId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d
${notExistingVnfLcmOpOccId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d
${vnfLcmOpOccIdNotStartingProcessingRollingback} 6fc3539c-e602-4afa-8e13-962fb5a7d81d
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment