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
f49b9e91
Commit
f49b9e91
authored
6 years ago
by
Elian Kraja
Browse files
Options
Downloads
Patches
Plain Diff
NSDDescriptors
parent
7ba2403b
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
SOL005/NSDManagement-API/IndividualNSDescriptor.robot
+9
-9
9 additions, 9 deletions
SOL005/NSDManagement-API/IndividualNSDescriptor.robot
SOL005/NSDManagement-API/NSDescriptors.robot
+14
-14
14 additions, 14 deletions
SOL005/NSDManagement-API/NSDescriptors.robot
with
23 additions
and
23 deletions
SOL005/NSDManagement-API/IndividualNSDescriptor.robot
+
9
−
9
View file @
f49b9e91
...
...
@@ -19,11 +19,11 @@ GET Single Network Service Descriptor
${contentType}
=
Output
response headers Content-Type
Should Contain
${contentType}
application/json
Log
Validation of Content-Type : OK
#
Log Trying to validate response
#
${result}= Output response body
#
${json}= evaluate json.loads('''${result}''') json
#
Validate Json NsdInfo.schema.json ${json}
#
Log Validation OK
Log
Trying to validate response
${result}
=
Output
response body
${json}
=
evaluate
json.loads('''
${result}
''')
json
Validate Json
NsdInfo.schema.json
${json}
Log
Validation OK
GET Single Network Service Descriptor (Negative: Not found)
...
...
@@ -51,10 +51,10 @@ PATCH Single Network Service Descriptor - (Disabling a nsdInfo)
PATCH
${apiRoot}
/
${apiName}
/
${apiVersion}
/ns_descriptors/
${nsdInfoId}
${body}
Integer
response status
200
Log
Received 200 OK as expected
#
${result}= Output response body
#
${json}= evaluate json.loads('''${result}''') json
#
Validate Json NsdInfoModification.schema.json ${json}
#
Log Validation of NsdInfoModifications OK
${result}
=
Output
response body
${json}
=
evaluate
json.loads('''
${result}
''')
json
Validate Json
NsdInfoModification.schema.json
${json}
Log
Validation of NsdInfoModifications OK
PATCH Single Network Service Descriptor - (Enabling an previously disabled nsdInfo)
Log
Trying to perform a PATCH. As prerequisite the nsdInfo shall be in disabled operational state
...
...
This diff is collapsed.
Click to expand it.
SOL005/NSDManagement-API/NSDescriptors.robot
+
14
−
14
View file @
f49b9e91
...
...
@@ -19,11 +19,11 @@ GET all Network Service Descriptors
${contentType}
=
Output
response headers Content-Type
Should Contain
${contentType}
application/json
Log
Validation of Content-Type : OK
#
Log Trying to validate response
#
${result}= Output response body
#
${json}= evaluate json.loads('''${result}''') json
#
Validate Json NsdInfos.schema.json ${json}
#
Log Validation OK
Log
Trying to validate response
${result}
=
Output
response body
${json}
=
evaluate
json.loads('''
${result}
''')
json
Validate Json
NsdInfos.schema.json
${json}
Log
Validation OK
GET all Network Service Descriptors - Filter
[
Documentation
]
The GET method queries information about multiple NS descriptor resources.
...
...
@@ -36,11 +36,11 @@ GET all Network Service Descriptors - Filter
Integer
response status
200
${contentType}
=
Output
response headers Content-Type
Should Contain
${contentType}
application/json
#
Log Trying to validate response
#
${result}= Output response body
#
${json}= evaluate json.loads('''${result}''') json
#
Validate Json NsdInfos.schema.json ${json}
#
Log Validation OK
Log
Trying to validate response
${result}
=
Output
response body
${json}
=
evaluate
json.loads('''
${result}
''')
json
Validate Json
NsdInfos.schema.json
${json}
Log
Validation OK
GET all Network Service Descriptors - Negative (wronge filter name)
Log
The GET method queries multiple NS descriptors using Attribute-based filtering parameters. Negative case, with erroneous attribute name
...
...
@@ -116,10 +116,10 @@ POST a new Network Service Descriptors
${headers}
=
Output
response headers
Should Contain
${headers}
Location
Log
Response has header Location
#
${result}= Output response body
#
${json}= evaluate json.loads('''${result}''') json
#
Validate Json NsdInfo.schema.json ${json}
#
Log Validation of NsdInfo OK
${result}
=
Output
response body
${json}
=
evaluate
json.loads('''
${result}
''')
json
Validate Json
NsdInfo.schema.json
${json}
Log
Validation of NsdInfo OK
PUT all Network Service Descriptors (Method not implemented)
Log
Trying to perform a PUT. This method should not be implemented
...
...
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