Skip to content
Snippets Groups Projects
Commit a5a81119 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

Fixed notification TDs to align with new mock server library version

parent 615fff85
No related branches found
No related tags found
No related merge requests found
Showing
with 111 additions and 110 deletions
......@@ -16,8 +16,8 @@ Deliver a notification - Alarm
${json}= Get File schemas/alarmNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle alarmNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -30,8 +30,8 @@ Deliver a notification - Alarm Clearance
${json}= Get File schemas/alarmClearedNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle alarmNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -44,8 +44,8 @@ Deliver a notification - Alarm List Rebuilt
${json}= Get File schemas/alarmListRebuiltNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle alarmNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -55,8 +55,8 @@ Deliver a notification - Alarm List Rebuilt
Test a notification end point
log The GET method allows the server to test the notification endpoint
&{req}= Create Mock Request Matcher Schema GET ${notification_ep}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher GET ${notification_ep}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......
......@@ -12,8 +12,8 @@ Library String
*** Test Cases ***
Check Notification Endpoint
&{req}= Create Mock Request Matcher Schema GET ${callback_endpoint}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......@@ -23,8 +23,8 @@ Post VNF Indicator Notification
${json}= Get File schemas/VnfIndicatorValueChangeNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle VNF Indicator Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -36,8 +36,8 @@ Post VNF Indicator Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle VNF Indicator Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -49,8 +49,8 @@ Post VNF Indicator Notification Negative 404
PUT VNF Indicator Notification
Log PUT Method not implemented
&{req}= Create Mock Request Matcher Schema PUT ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PUT ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -61,8 +61,8 @@ PUT VNF Indicator Notification
PATCH VNF Indicator Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema PATCH ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PATCH ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -73,8 +73,8 @@ PATCH VNF Indicator Notification
DELETE VNF Indicator Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema DELETE ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher DELETE ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......
......@@ -16,8 +16,8 @@ Deliver a notification - Operation Occurence
${json}= Get File schemas/vnfLcmOperationOccurrenceNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -30,8 +30,8 @@ Deliver a notification - Id Creation
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -44,8 +44,8 @@ Deliver a notification - Id deletion
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -55,8 +55,8 @@ Deliver a notification - Id deletion
Test a notification end point
log The GET method allows the server to test the notification endpoint
&{req}= Create Mock Request Matcher Schema GET ${notification_ep}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher GET ${notification_ep}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......
......@@ -11,8 +11,8 @@ Library String
*** Test Cases ***
Check Notification Endpoint
&{req}= Create Mock Request Matcher Schema GET ${callback_endpoint}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......@@ -22,8 +22,8 @@ Post Performance Information Available Notification
${json}= Get File schemas/PerformanceInformationAvailableNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Performance Information Available Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -36,8 +36,8 @@ Post Performance Information Available Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Performance Information Available Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -49,8 +49,8 @@ Post Threshold Crossed Notification
${json}= Get File schema/ThresholdCrossedNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Threshold Crossed Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -63,8 +63,8 @@ PostThreshold Crossed Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handleThreshold Crossed Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -75,8 +75,8 @@ PostThreshold Crossed Notification Negative 404
PUT Performance Notification
Log PUT Method not implemented
&{req}= Create Mock Request Matcher Schema PUT ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PUT ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -87,8 +87,8 @@ PUT Performance Notification
PATCH Performance Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema PATCH ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PATCH ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -99,8 +99,8 @@ PATCH Performance Notification
DELETE Performance Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema DELETE ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher DELETE ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......
......@@ -14,8 +14,8 @@ Deliver a notification - Alarm
${json}= Get File schemas/alarmNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle alarmNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -28,8 +28,8 @@ Deliver a notification - Alarm Clearance
${json}= Get File schemas/alarmClearedNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle alarmNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -42,8 +42,8 @@ Deliver a notification - Alarm List Rebuilt
${json}= Get File schemas/alarmListRebuiltNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle alarmNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -53,8 +53,8 @@ Deliver a notification - Alarm List Rebuilt
Test a notification end point
log The GET method allows the server to test the notification endpoint
&{req}= Create Mock Request Matcher Schema GET ${notification_ep}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher GET ${notification_ep}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......
......@@ -12,8 +12,8 @@ Library String
*** Test Cases ***
Check Notification Endpoint
&{req}= Create Mock Request Matcher Schema GET ${callback_endpoint}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......@@ -23,8 +23,8 @@ Post VNF Indicator Notification
${json}= Get File schemas/VnfIndicatorValueChangeNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle VNF Indicator Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -36,8 +36,8 @@ Post VNF Indicator Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle VNF Indicator Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -49,8 +49,8 @@ Post VNF Indicator Notification Negative 404
Put VNF Indicator Notification
Log PUT Method not implemented
&{req}= Create Mock Request Matcher Schema PUT ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PUT ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -61,8 +61,8 @@ Put VNF Indicator Notification
Patch VNF Indicator Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema PATCH ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PATCH ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -73,8 +73,8 @@ Patch VNF Indicator Notification
Delete VNF Indicator Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema DELETE ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher DELETE ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......
......@@ -91,8 +91,8 @@ Configure Notification Handler
${json}= Get File schemas/${element}.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle ${element}
&{notification_request}= Create Mock Request Matcher Schema POST ${endpoint} body=${BODY}
&{notification_response}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON_SCHEMA" body=${BODY}
&{notification_response}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${notification_request} ${notification_response}
Check Operation Notification
......
......@@ -16,8 +16,8 @@ Deliver a notification - Operation Occurence
${json}= Get File schemas/vnfLcmOperationOccurrenceNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -30,8 +30,8 @@ Deliver a notification - Id Creation
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -44,8 +44,8 @@ Deliver a notification - Id deletion
${json}= Get File schemas/vnfIdentifierCreationNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -55,8 +55,8 @@ Deliver a notification - Id deletion
Test a notification end point
log The GET method allows the server to test the notification endpoint
&{req}= Create Mock Request Matcher Schema GET ${notification_ep}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher GET ${notification_ep}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......
......@@ -8,6 +8,7 @@ Library OperatingSystem
Library BuiltIn
Library Collections
Library JSONLibrary
Library Process
Suite Setup Initialize System
Suite Teardown Terminate All Processes kill=true
......
......@@ -26,8 +26,8 @@ Configure Notification Handler
${json}= Get File schemas/${element}.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle ${element}
&{notification_request}= Create Mock Request Matcher Schema POST ${endpoint} body=${BODY}
&{notification_response}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON_SCHEMA" body=${BODY}
&{notification_response}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${notification_request} ${notification_response}
[Return] &{notification_request}
......
......@@ -12,8 +12,8 @@ Library String
*** Test Cases ***
Check Notification Endpoint
&{req}= Create Mock Request Matcher Schema GET ${callback_endpoint}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......@@ -23,8 +23,8 @@ Post VNF Package Onboarding Notification
${json}= Get File schemas/PackageOnboardingNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle VNF Package Onboarding Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -37,8 +37,8 @@ Post VNF Package Onboarding Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle VNF Package Onboarding Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -50,8 +50,8 @@ Post VNF Package Change Notification
${json}= Get File schema/PackageChangeNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Package Change Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -64,8 +64,8 @@ Post Package Change Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Package Change Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -76,8 +76,8 @@ Post Package Change Notification Negative 404
PUT VNF Package Management Notification
Log PUT Method not implemented
&{req}= Create Mock Request Matcher Schema PUT ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PUT ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -88,8 +88,8 @@ PUT VNF Package Management Notification
PATCH VNF Package Management Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema PATCH ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PATCH ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -100,8 +100,8 @@ PATCH VNF Package Management Notification
DELETE VNF Package Management Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema DELETE ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher DELETE ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......
......@@ -12,8 +12,8 @@ Library String
*** Test Cases ***
Check Notification Endpoint
&{req}= Create Mock Request Matcher Schema GET ${callback_endpoint}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Verify Mock Expectation ${req}
......@@ -23,8 +23,8 @@ Post Performance Information Available Notification
${json}= Get File schemas/PerformanceInformationAvailableNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Performance Information Available Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -37,8 +37,8 @@ Post Performance Information Available Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Performance Information Available Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -50,8 +50,8 @@ Post Threshold Crossed Notification
${json}= Get File schema/ThresholdCrossedNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Threshold Crossed Notification
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -64,8 +64,8 @@ Post Threshold Crossed Notification Negative 404
${json}= Get File schemas/ProblemDetails.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handleThreshold Crossed Notification to handle 404 error
&{req}= Create Mock Request Matcher Schema POST ${callback_endpoint_error} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=404
&{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}
Sleep ${sleep_interval}
Log Verifying results
......@@ -76,8 +76,8 @@ Post Threshold Crossed Notification Negative 404
PUT Performance Notification
Log PUT Method not implemented
&{req}= Create Mock Request Matcher Schema PUT ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PUT ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -88,8 +88,8 @@ PUT Performance Notification
PATCH Performance Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema PATCH ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher PATCH ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......@@ -100,8 +100,8 @@ PATCH Performance Notification
DELETE Performance Notification
Log PATCH Method not implemented
&{req}= Create Mock Request Matcher Schema DELETE ${callback_endpoint}
&{rsp}= Create Mock Response Schema status_code=405
&{req}= Create Mock Request Matcher DELETE ${callback_endpoint}
&{rsp}= Create Mock Response status_code=405
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......
......@@ -14,8 +14,8 @@ Deliver a notification - Vr Quota Availibility
${json}= Get File schemas/VrQuotaAvailNotification.schema.json
${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Vr Quota AvailibilityNotification
&{req}= Create Mock Request Matcher Schema POST ${notification_ep} body=${BODY}
&{rsp}= Create Mock Response Schema headers="Content-Type: application/json" status_code=204
&{req}= Create Mock Request Matcher POST ${notification_ep} body_type="JSON_SCHEMA" body=${BODY}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval}
Log Verifying results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment