Loading SOL002/VNFFaultManagement-API/NotificationEndpoint.robot +8 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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} Loading SOL002/VNFIndicatorNotification-API/VnfIndicatorNotification.robot +12 −12 Original line number Diff line number Diff line Loading @@ -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} Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading SOL002/VNFLifecycleManagement-API/NotificationEndpoint.robot +8 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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} Loading SOL002/VNFPerformanceManagementNotification-API/PerformanceManagementNotification.robot +16 −16 Original line number Diff line number Diff line Loading @@ -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} Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading SOL003/VNFFaultManagementNotification-API/NotificationEndpoint.robot +8 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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} Loading Loading
SOL002/VNFFaultManagement-API/NotificationEndpoint.robot +8 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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} Loading
SOL002/VNFIndicatorNotification-API/VnfIndicatorNotification.robot +12 −12 Original line number Diff line number Diff line Loading @@ -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} Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading
SOL002/VNFLifecycleManagement-API/NotificationEndpoint.robot +8 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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} Loading
SOL002/VNFPerformanceManagementNotification-API/PerformanceManagementNotification.robot +16 −16 Original line number Diff line number Diff line Loading @@ -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} Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading
SOL003/VNFFaultManagementNotification-API/NotificationEndpoint.robot +8 −8 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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} Loading