Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miguel Angel Reina Ortega
api-tests
Commits
b795b06b
Commit
b795b06b
authored
4 years ago
by
Najam UI Hassan
Browse files
Options
Downloads
Patches
Plain Diff
new test cases added for IndividualPmJob
parent
05e93ed6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SOL002/VNFPerformanceManagement-API/IndividualPmJob.robot
+34
-16
34 additions, 16 deletions
SOL002/VNFPerformanceManagement-API/IndividualPmJob.robot
SOL002/VNFPerformanceManagement-API/jsons/PMJobModification.json
+3
-0
3 additions, 0 deletions
...VNFPerformanceManagement-API/jsons/PMJobModification.json
with
37 additions
and
16 deletions
SOL002/VNFPerformanceManagement-API/IndividualPmJob.robot
+
34
−
16
View file @
b795b06b
*** Settings ***
Library
JSONSchemaLibrary
schemas/
Resource
environment/variables.txt
# Generic Parameters
Library
JSONLibrary
Resource
environment/IndividualPmJob.txt
Library
REST
${VNFM_SCHEMA}
://
${VNFM_HOST}
:
${VNFM_PORT}
ssl_verify=false
Library
JSONSchemaLibrary
schemas/
Resource
environment/variables.txt
# Generic Parameters
Library
JSONLibrary
Resource
environment/IndividualPmJob.txt
Library
REST
${VNFM_SCHEMA}
://
${VNFM_HOST}
:
${VNFM_PORT}
ssl_verify=false
Library
OperatingSystem
Library
DependencyLibrary
*** Test Cases ***
GET individual VNF Performance Job
...
...
@@ -77,7 +80,7 @@ PUT Individual VNF Performance Job - Method not implemented
...
Test title: PUT Individual VNF Performance Job - method not implemented
...
Test objective: The objective is to test that PUT method is not allowed to update an existing VNF Performance Monitoring Job
...
Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
...
Reference: Clause 6.4.3.3.
4
- ETSI GS NFV-SOL 002 [2] v2.6.1
...
Reference: Clause 6.4.3.3.
3
- ETSI GS NFV-SOL 002 [2] v2.6.1
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Post-Conditions: The VNF Performance Job is not modified by the operation
...
...
@@ -85,19 +88,33 @@ PUT Individual VNF Performance Job - Method not implemented
Check HTTP Response Status Code Is
405
Check Postcondition VNF Performance Job is Unmodified (Implicit)
PATCH Individual VNF Performance Job
- Method not implemented
PATCH Individual VNF Performance Job
[
Documentation
]
Test ID: 6.3.3.2.7
...
Test title: PATCH Individual VNF Performance Job
- method not implemented
...
Test objective: The objective is to test that PATCH method
is not
allow
ed
to modify an existing
new VNF Performance Monitoring Job
...
Test title: PATCH Individual VNF Performance Job
...
Test objective: The objective is to test that PATCH method allow
s
to modify an ex
s
isting
individual PM job resource.
...
Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
...
Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Post-Conditions:
The VNF Performance Job is not modified by the operation
...
Post-Conditions:
Send Patch request for individual VNF Performance Job
Check HTTP Response Status Code Is
405
Check
Postcondition VNF Performance Job is Unmodified (Implicit)
Check HTTP Response Status Code Is
200
Check
HTTP Response Body Json Schema Is
PMJobModification
PATCH Individual VNF Performance Job - Precondition failed
[
Documentation
]
Test ID: 6.3.3.2.8
...
Test title: PATCH Individual VNF Performance Job - Precondition failed
...
Test objective: The objective is to attempt to Modify an individual alarm resource, where the precondition was not met
...
Pre-conditions:
A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
...
Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
...
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
Check HTTP Response Status Code Is
412
Check HTTP Response Body Json Schema Is
ProblemDetails
Check Postcondition VNF Performance Job is Unmodified (Implicit)
*** Keywords ***
GET individual VNF Performance Job
Log
Trying to get a Pm Job present in the NFVO Catalogue
...
...
@@ -151,10 +168,11 @@ Send Put request for individual VNF Performance Job
Set Suite Variable
${response}
${output}
Send Patch request for individual VNF Performance Job
Log
Trying to perform a PATCH (method should not be implemented)
Set Headers
{"Accept": "
${ACCEPT_JSON}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
PATCH
${apiRoot}
/
${apiName}
/
${apiVersion}
/pm_jobs/
${pmJobId}
Set Headers
{"Accept":"
${ACCEPT_JSON}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_JSON}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
${body}
=
Get File
jsons/PMJobModification.json
PATCH
${apiRoot}
/
${apiName}
/
${apiVersion}
/pm_jobs/
${pmJobId}
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
This diff is collapsed.
Click to expand it.
SOL002/VNFPerformanceManagement-API/jsons/PMJobModification.json
0 → 100644
+
3
−
0
View file @
b795b06b
{
"callbackUri"
:
"127.0.0.1"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment