Commit 0f9680d5 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

updated tests on 412 for SOL003 VNFPM

parent ff7e2d7b
......@@ -110,7 +110,7 @@ PATCH Individual VNF Performance Job - Precondition failed
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation
Send Patch request for individual VNF Performance Job
Send Patch request for individual VNF Performance Job - Etag mismatch
Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails
Check Postcondition VNF Performance Job is Unmodified (Implicit)
......@@ -202,6 +202,17 @@ Send Patch request for individual VNF Performance Job
Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint}
Send Patch request for individual VNF Performance Job - Etag mismatch
Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Set Headers {"If-Match": "${invalid_etag}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/PMJobModifications.json
${body}= Format String ${template} callback_uri=${callback_uri} callback_port=${callback_port} callback_uri=${callback_endpoint}
PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/pm_jobs/${pmJobId} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Send Patch request for individual VNF Performance Job with Unprocessable Entity
Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
......
......@@ -110,7 +110,7 @@ PATCH Individual Threshold - Precondition failed
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation
Send Patch request for individual VNF Performance Threshold
Send Patch request for individual VNF Performance Threshold - Etag mismatch
Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails
Check Postcondition VNF Performance Threshold is Unmodified (Implicit)
......@@ -200,6 +200,18 @@ Send Patch request for individual VNF Performance Threshold
Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint}
Send Patch request for individual VNF Performance Threshold - Etag mismatch
Log Trying to PUT threshold
Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Set Headers {"If-Match": "${invalid_etag}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/ThresholdModifications.json
${body}= Format String ${template} callback_uri=${callback_uri} callback_port=${callback_port} callback_uri=${callback_endpoint}
PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds/${thresholdId}
${output}= Output response
Set Suite Variable ${response} ${output}
Send Patch request for individual VNF Performance Threshold with Unprocessable Entity
Log Trying to PUT threshold
Set Headers {"Accept":"${ACCEPT_JSON}"}
......
......@@ -66,4 +66,6 @@ ${newReportId} newReportId
${FILTER_OK} objectInstanceId=${objectInstanceIds}
${FILTER_KO} criterias=erroneousFilter
${callbackResp} localhost
\ No newline at end of file
${callbackResp} localhost
${invalid_etag} invalid etag
\ No newline at end of file
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