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
9fa376e3
Commit
9fa376e3
authored
Feb 25, 2021
by
Giacomo Bernini
Browse files
fixed mock server expectation in v2.6.1
parent
3a51b7d1
Changes
15
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFFaultManagement-API/NotificationEndpoint.robot
View file @
9fa376e3
...
...
@@ -113,7 +113,8 @@ Configure Notification Alarm List Rebuilt Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -124,7 +125,8 @@ Configure Notification Alarm Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -135,7 +137,8 @@ Configure Notification Alarm Cleareance Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL002/VNFIndicatorNotification-API/VnfIndicatorNotification.robot
View file @
9fa376e3
...
...
@@ -49,7 +49,8 @@ Configure Notification Indicator Value Change Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL002/VNFLifecycleManagement-API/NotificationEndpoint.robot
View file @
9fa376e3
...
...
@@ -97,7 +97,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler
set to dictionary
${json}
notificationType
${type}
changeType
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -120,7 +121,8 @@ Configure Notification VNF LCM Operation Occurrence Result Handler
set to dictionary
${json}
notificationType
${type}
changeType
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -143,7 +145,8 @@ Configure Notification VNF Identifier Creation Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -166,7 +169,8 @@ Configure Notification VNF Identifier Deletion Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL002/VNFPerformanceManagementNotification-API/PerformanceManagementNotification.robot
View file @
9fa376e3
...
...
@@ -86,7 +86,8 @@ Configure Notification Performance Information Available Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL003/VNFFaultManagementNotification-API/NotificationEndpoint.robot
View file @
9fa376e3
...
...
@@ -113,7 +113,8 @@ Configure Notification Alarm List Rebuilt Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -124,7 +125,8 @@ Configure Notification Alarm Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -135,7 +137,8 @@ Configure Notification Alarm Cleareance Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL003/VNFIndicator-API/VnfIndicatorNotification.robot
View file @
9fa376e3
...
...
@@ -49,7 +49,8 @@ Configure Notification Indicator Value Change Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL003/VNFLifecycleManagement-API/NotificationEndpoint.robot
View file @
9fa376e3
...
...
@@ -98,7 +98,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler
set to dictionary
${json}
notificationType
${type}
changeType
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -121,7 +122,8 @@ Configure Notification VNF LCM Operation Occurrence Result Handler
set to dictionary
${json}
notificationType
${type}
changeType
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -144,7 +146,8 @@ Configure Notification VNF Identifier Creation Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -167,7 +170,8 @@ Configure Notification VNF Identifier Deletion Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL003/VNFPackageManagement-API/PackageManagementNotification.robot
View file @
9fa376e3
...
...
@@ -118,7 +118,8 @@ Configure Notification Onboarding Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -129,7 +130,8 @@ Configure Notification Delete Handler
set to dictionary
${json}
notificationType
${type}
changeType
${change}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -140,7 +142,8 @@ Configure Notification Change Status Handler
set to dictionary
${json}
notificationType
${type}
changeType
${change}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL003/VNFPerformanceManagement-API/PerformanceManagementNotification.robot
View file @
9fa376e3
...
...
@@ -86,7 +86,8 @@ Configure Notification Performance Information Available Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL005/NSDManagement-API/NSDManagementNotification.robot
View file @
9fa376e3
...
...
@@ -223,7 +223,8 @@ Configure PNFD Deletion Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -234,7 +235,8 @@ Configure NSD Deletion Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -245,7 +247,8 @@ Configure NSD Operational State Change Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -256,7 +259,8 @@ Configure PNFD Onboarding Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -267,7 +271,8 @@ Configure Notification PNFD Onboarding Failure Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -278,7 +283,8 @@ Configure NSD Onboarding Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -289,7 +295,8 @@ Configure Notification NSD Onboarding Failure Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL005/NSFaultManagement-API/NotificationEndpoint.robot
View file @
9fa376e3
...
...
@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -125,7 +126,8 @@ Configure Notification Alarm Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -136,7 +138,8 @@ Configure Notification Alarm Cleareance Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
View file @
9fa376e3
...
...
@@ -80,7 +80,7 @@ Check Operation Notification Status is
Check Operation Notification
NsLcmOperationOccurrenceNotification
${status}
Check Operation Notification
[
Arguments
]
${element}
${status}
=""
[
Arguments
]
${element}
${status}
${json}
=
Get File
schemas/
${element}
.schema.json
Configure Notification Forward
${element}
${callback_endpoint}
${callback_endpoint_fwd}
Configure Notification Status Handler
${callback_endpoint_fwd}
${status}
...
...
@@ -97,11 +97,12 @@ Configure Notification Forward
Create Mock Expectation With Http Forward
${notification_tmp}
${notification_fwd}
Configure Notification Status Handler
[
Arguments
]
${endpoint}
${status}
=""
Run Keyword If
${status}
!=""
set to dictionary
${json
["
notificationStatus
"]}
dp=
${status}
[
Arguments
]
${endpoint}
${status}
set to dictionary
${json
}
notificationStatus
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle
${endpoint}
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -1189,7 +1190,8 @@ Configure Notification NS Creation Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
SOL005/NSLifecycleManagement-API/NotificationEndpoint.robot
View file @
9fa376e3
...
...
@@ -97,7 +97,8 @@ Configure Notification NS LCM Operation Occurrence Start Handler
set to dictionary
${json}
notificationType
${type}
changeType
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -120,7 +121,8 @@ Configure Notification NS LCM Operation Occurrence Result Handler
set to dictionary
${json}
notificationType
${type}
changeType
${status}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -143,7 +145,8 @@ Configure Notification NS Identifier Creation Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -166,7 +169,8 @@ Configure Notification NS Identifier Deletion Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL005/NSPerformanceManagement-API/Notifications.robot
View file @
9fa376e3
...
...
@@ -86,7 +86,8 @@ Configure Notification Performance Information Available Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
SOL005/VNFPackageManagement-API/Notifications.robot
View file @
9fa376e3
...
...
@@ -118,7 +118,8 @@ Configure Notification Onboarding Handler
set to dictionary
${json}
notificationType
${type}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -129,7 +130,8 @@ Configure Notification Delete Handler
set to dictionary
${json}
notificationType
${type}
changeType
${change}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
@@ -140,7 +142,8 @@ Configure Notification Change Status Handler
set to dictionary
${json}
notificationType
${type}
changeType
${change}
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{req}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
Set Global Variable
${req}
${notification_request}
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
...
...
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