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
36db7cfb
Commit
36db7cfb
authored
5 years ago
by
Giacomo Bernini
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
5c1774b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SOL005/NSDManagement-API/NSDManagementNotification.robot
+0
-157
0 additions, 157 deletions
SOL005/NSDManagement-API/NSDManagementNotification.robot
with
0 additions
and
157 deletions
SOL005/NSDManagement-API/NSDManagementNotification.robot
+
0
−
157
View file @
36db7cfb
...
...
@@ -294,163 +294,6 @@ Configure Notification Forward
&{notification_fwd}
=
Create Mock Http Forward
${endpoint_fwd}
Create Mock Expectation With Http Forward
${notification_tmp}
${notification_fwd}
Check Notification Endpoint
&{req}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Verify Mock Expectation
${req}
Clear Requests
${callback_endpoint}
Post NSD Change Notification
${json}
=
Get File
schemas/NsdChangeNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
NSD Change Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post NSD Deletion Notification
${json}
=
Get File
schemas/NsdDeletionNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
NSD Deletion Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post NSD Onboard Failure Notification
${json}
=
Get File
schemas/NsdOnboardingFailureNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
NSD Onboard Failure Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post NSD Onboard Notification
${json}
=
Get File
schemas/NsdOnboardingNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
NSD Onboard Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post PNFD Deletion Notification
${json}
=
Get File
schemas/PnfdDeletionNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
PNFD Deletion Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post PNFD Onboard Failure Notification
${json}
=
Get File
schemas/PNFDOnboardingFailureNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
PNFD Onboard Failure Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post PNFD Onboard Notification
${json}
=
Get File
schemas/PNFDOnboardingNotification.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle
NSD Onboard Notification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
Post Notification Negative 404
${json}
=
Get File
schemas/ProblemDetails.schema.json
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle Notification to handle 404 error
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint_error}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=404
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
PUT VNF Package Management Notification
Pass Execution If
${testOptionalMethods}
=
= 0
optional methods are not implemented on the FUT. Skipping test.
Log
PUT Method not implemented
&{req}
=
Create Mock Request Matcher
PUT
${callback_endpoint}
&{rsp}
=
Create Mock Response
status_code=405
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
PATCH VNF Package Management Notification
Pass Execution If
${testOptionalMethods}
=
= 0
optional methods are not implemented on the FUT. Skipping test.
Log
PATCH Method not implemented
&{req}
=
Create Mock Request Matcher
PATCH
${callback_endpoint}
&{rsp}
=
Create Mock Response
status_code=405
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
DELETE VNF Package Management Notification
Pass Execution If
${testOptionalMethods}
=
= 0
optional methods are not implemented on the FUT. Skipping test.
Log
PATCH Method not implemented
&{req}
=
Create Mock Request Matcher
DELETE
${callback_endpoint}
&{rsp}
=
Create Mock Response
status_code=405
Create Mock Expectation
${req}
${rsp}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${req}
Log
Verifying results
Verify Mock Expectation
${req}
Log
Cleaning the endpoint
Clear Requests
${callback_endpoint}
*** Keywords ***
Create Sessions
Start Process
java
-jar
${MOCK_SERVER_JAR}
-serverPort
${callback_port}
alias=mockInstance
Wait For Process
handle=mockInstance
timeout=5s
on_timeout=continue
...
...
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