Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
0f9680d5
Commit
0f9680d5
authored
May 27, 2021
by
Giacomo Bernini
Browse files
updated tests on 412 for SOL003 VNFPM
parent
ff7e2d7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
SOL003/VNFPerformanceManagement-API/IndividualPmJob.robot
SOL003/VNFPerformanceManagement-API/IndividualPmJob.robot
+12
-1
SOL003/VNFPerformanceManagement-API/IndividualThreshold.robot
...03/VNFPerformanceManagement-API/IndividualThreshold.robot
+13
-1
SOL003/VNFPerformanceManagement-API/environment/variables.txt
...03/VNFPerformanceManagement-API/environment/variables.txt
+3
-1
No files found.
SOL003/VNFPerformanceManagement-API/IndividualPmJob.robot
View file @
0f9680d5
...
...
@@ -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}
"}
...
...
SOL003/VNFPerformanceManagement-API/IndividualThreshold.robot
View file @
0f9680d5
...
...
@@ -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}
"}
...
...
SOL003/VNFPerformanceManagement-API/environment/variables.txt
View file @
0f9680d5
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment