Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
4ad4d215
Commit
4ad4d215
authored
May 27, 2021
by
Giacomo Bernini
Browse files
updated tests on 412 for NSPM
parent
9475d73a
Changes
4
Show whitespace changes
Inline
Side-by-side
SOL005/NSPerformanceManagement-API/IndividualPmJob.robot
View file @
4ad4d215
...
@@ -108,7 +108,7 @@ PATCH Individual NS Performance Job - Precondition failed
...
@@ -108,7 +108,7 @@ PATCH Individual NS Performance Job - Precondition failed
...
Config ID: Config_prod_NFVO
...
Config ID: Config_prod_NFVO
...
Applicability: none
...
Applicability: none
...
Post-Conditions: none
...
Post-Conditions: none
Send Patch request for individual NS Performance Job
Send Patch request for individual NS Performance Job
- Etag mismatch
Check HTTP Response Status Code Is
412
Check HTTP Response Status Code Is
412
Check HTTP Response Body Json Schema Is
ProblemDetails
Check HTTP Response Body Json Schema Is
ProblemDetails
...
...
SOL005/NSPerformanceManagement-API/IndividualThreshold.robot
View file @
4ad4d215
...
@@ -111,7 +111,7 @@ PATCH Individual Threshold - Precondition failed
...
@@ -111,7 +111,7 @@ PATCH Individual Threshold - Precondition failed
...
Config ID: Config_prod_NFVO
...
Config ID: Config_prod_NFVO
...
Applicability: none
...
Applicability: none
...
Post-Conditions: The NS performance Threshold is not modified by the operation
...
Post-Conditions: The NS performance Threshold is not modified by the operation
Send Patch request for individual NS performance Threshold
Send Patch request for individual NS performance Threshold
- Etag mismatch
Check HTTP Response Status Code Is
412
Check HTTP Response Status Code Is
412
Check HTTP Response Body Json Schema Is
ProblemDetails
Check HTTP Response Body Json Schema Is
ProblemDetails
Check Postcondition NS performance Threshold is Unmodified (Implicit)
Check Postcondition NS performance Threshold is Unmodified (Implicit)
...
...
SOL005/NSPerformanceManagement-API/NSPerformanceManagementKeywords.robot
View file @
4ad4d215
...
@@ -269,6 +269,18 @@ Send Patch request for individual NS Performance Job
...
@@ -269,6 +269,18 @@ Send Patch request for individual NS Performance Job
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Clear Requests
${callback_endpoint}
Clear Requests
${callback_endpoint}
Send Patch request for individual NS Performance Job - Etag mismatch
Log
Trying to perform a PATCH
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
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}
"}
${template}
=
Get File
jsons/PmJobModifications.json
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
PATCH
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/pm_jobs/
${pmJobId}
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Send Patch request for individual NS Performance Job with Unprocessable Entity
Send Patch request for individual NS Performance Job with Unprocessable Entity
Log
Trying to perform a PATCH
Log
Trying to perform a PATCH
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
...
@@ -525,6 +537,18 @@ Send Patch request for individual NS performance Threshold
...
@@ -525,6 +537,18 @@ Send Patch request for individual NS performance Threshold
Set Suite Variable
${response}
${output}
Set Suite Variable
${response}
${output}
Clear Requests
${callback_endpoint}
Clear Requests
${callback_endpoint}
Send Patch request for individual NS performance Threshold - Etag mismatch
Log
Trying to PUT threshold
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
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}
"}
${template}
=
Get File
jsons/ThresholdModifications.json
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
PATCH
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/thresholds/
${thresholdId}
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Send Patch request for individual NS performance Threshold with Unprocessable Entity
Send Patch request for individual NS performance Threshold with Unprocessable Entity
Log
Trying to PUT threshold
Log
Trying to PUT threshold
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
...
...
SOL005/NSPerformanceManagement-API/environment/variables.txt
View file @
4ad4d215
...
@@ -26,6 +26,8 @@ ${sleep_interval} 20s
...
@@ -26,6 +26,8 @@ ${sleep_interval} 20s
${total_polling_time} 2 min
${total_polling_time} 2 min
${polling_interval} 10 sec
${polling_interval} 10 sec
${invalid_etag} invalid etag
${performanceMetric} cpu_util
${performanceMetric} cpu_util
${thresholdType} SIMPLE
${thresholdType} SIMPLE
${thresholdValue} 10
${thresholdValue} 10
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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