Loading SOL009/NFVManoConfigurationAndInformationManagement-API/NotificationConsumer.robot +69 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/NotificationConsumer.robot: 69 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Library JSONSchemaLibrary schemas/ Resource environment/variables.txt Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT} ssl_verify=false Library OperatingSystem Library JSONLibrary Suite Setup Check resource existence and get CallbackUri *** Test Cases *** Information Changed Notification [Documentation] Test ID: 8.3.1.14.1 ... Test title: Information Changed Notification ... Test objective: The objective is to test that Information Changed Notification is delivered with success to the notification consumer ... Pre-conditions: A subscription for information availability notification is available in the NFV-MANO. ... Reference: clause 5.5.6.3.1 - ETSI GS NFV-SOL 009 [6] V3.3.1 ... Config ID: Config_prod_Notif_Endpoint ... Applicability: none ... Post-Conditions: none POST Information Changed Notification Check HTTP Response Status Code Is 204 Change State Notification [Documentation] Test ID: 8.3.1.14.2 ... Test title: Change State Notification ... Test objective: The objective is to test that Change State Notification is delivered with success to the notification consumer ... Pre-conditions: A subscription for change state notification is available in the NFV-MANO. ... Reference: clause 5.5.6.3.1 - ETSI GS NFV-SOL 009 [6] V3.3.1 ... Config ID: Config_prod_Notif_Endpoint ... Applicability: none ... Post-Conditions: none POST Change State Notification Check HTTP Response Status Code Is 204 *** Keywords *** Check resource existence and get CallbackUri Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiMajorVersion}/pm_jobs/${pmJobId} Integer response status 200 Validate Json response body CimSubscription.schema.json Set Global Variable ${callbackResp} response body callbackUri Check HTTP Response Status Code Is [Arguments] ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status} Log Status code validated Post Information Changed Notification log Trying to perform a POST to get notification Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${template} = Get File jsons/InformationChangedNotification.json ${body}= Format String ${template} subscriptionId=${subscriptionId} Post ${callbackResp} ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Post Change State Notification log Trying to perform a POST to get notification Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${template} = Get File jsons/ChangeStateNotification.json ${body}= Format String ${template} subscriptionId=${subscriptionId} changeStateOpOccId=${changeStateOpOccId} Post ${callbackResp} ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} SOL009/NFVManoConfigurationAndInformationManagement-API/environment/variables.txt +2 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/environment/variables.txt: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -65,3 +65,5 @@ ${stateAction} START ${retry} 2 min ${polling} 10 sec ${callbackResp} 127.0.0.1 No newline at end of file SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/ChangeStateNotification.json +18 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/ChangeStateNotification.json: 18 added lines, 0 removed lines. Original line number Diff line number Diff line {{ "id": "", "notificationType": "ChangeStateNotification", "subscriptionId": "{subscriptionId}", "timeStamp": "", "changeStateOpOccId": "{changeStateOpOccId}", "stateChangedTime": "", "changeStateOperationState": "PROCESSING", "managedObjectRef": {{ "type": "", "objectId": "" }} "_links": {{ "subscription": "" "objectInstance": "", "changeStateOpOcc": "" }} }} No newline at end of file SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/InformationChangedNotification.json +12 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/InformationChangedNotification.json: 12 added lines, 0 removed lines. Original line number Diff line number Diff line {{ "id": "", "notificationType": "InformationChangedNotification", "subscriptionId": "{subscriptionId}", "timeStamp": "", "informationChangedTime": "", "manoEntityId": "", "changedInfo": "", "_links": {{ "subscription": "" }} }} No newline at end of file Loading
SOL009/NFVManoConfigurationAndInformationManagement-API/NotificationConsumer.robot +69 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/NotificationConsumer.robot: 69 added lines, 0 removed lines. Original line number Diff line number Diff line *** Settings *** Library JSONSchemaLibrary schemas/ Resource environment/variables.txt Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT} ssl_verify=false Library OperatingSystem Library JSONLibrary Suite Setup Check resource existence and get CallbackUri *** Test Cases *** Information Changed Notification [Documentation] Test ID: 8.3.1.14.1 ... Test title: Information Changed Notification ... Test objective: The objective is to test that Information Changed Notification is delivered with success to the notification consumer ... Pre-conditions: A subscription for information availability notification is available in the NFV-MANO. ... Reference: clause 5.5.6.3.1 - ETSI GS NFV-SOL 009 [6] V3.3.1 ... Config ID: Config_prod_Notif_Endpoint ... Applicability: none ... Post-Conditions: none POST Information Changed Notification Check HTTP Response Status Code Is 204 Change State Notification [Documentation] Test ID: 8.3.1.14.2 ... Test title: Change State Notification ... Test objective: The objective is to test that Change State Notification is delivered with success to the notification consumer ... Pre-conditions: A subscription for change state notification is available in the NFV-MANO. ... Reference: clause 5.5.6.3.1 - ETSI GS NFV-SOL 009 [6] V3.3.1 ... Config ID: Config_prod_Notif_Endpoint ... Applicability: none ... Post-Conditions: none POST Change State Notification Check HTTP Response Status Code Is 204 *** Keywords *** Check resource existence and get CallbackUri Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiMajorVersion}/pm_jobs/${pmJobId} Integer response status 200 Validate Json response body CimSubscription.schema.json Set Global Variable ${callbackResp} response body callbackUri Check HTTP Response Status Code Is [Arguments] ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status} Log Status code validated Post Information Changed Notification log Trying to perform a POST to get notification Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${template} = Get File jsons/InformationChangedNotification.json ${body}= Format String ${template} subscriptionId=${subscriptionId} Post ${callbackResp} ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Post Change State Notification log Trying to perform a POST to get notification Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} ${template} = Get File jsons/ChangeStateNotification.json ${body}= Format String ${template} subscriptionId=${subscriptionId} changeStateOpOccId=${changeStateOpOccId} Post ${callbackResp} ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse}
SOL009/NFVManoConfigurationAndInformationManagement-API/environment/variables.txt +2 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/environment/variables.txt: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -65,3 +65,5 @@ ${stateAction} START ${retry} 2 min ${polling} 10 sec ${callbackResp} 127.0.0.1 No newline at end of file
SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/ChangeStateNotification.json +18 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/ChangeStateNotification.json: 18 added lines, 0 removed lines. Original line number Diff line number Diff line {{ "id": "", "notificationType": "ChangeStateNotification", "subscriptionId": "{subscriptionId}", "timeStamp": "", "changeStateOpOccId": "{changeStateOpOccId}", "stateChangedTime": "", "changeStateOperationState": "PROCESSING", "managedObjectRef": {{ "type": "", "objectId": "" }} "_links": {{ "subscription": "" "objectInstance": "", "changeStateOpOcc": "" }} }} No newline at end of file
SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/InformationChangedNotification.json +12 Changes for SOL009/NFVManoConfigurationAndInformationManagement-API/jsons/InformationChangedNotification.json: 12 added lines, 0 removed lines. Original line number Diff line number Diff line {{ "id": "", "notificationType": "InformationChangedNotification", "subscriptionId": "{subscriptionId}", "timeStamp": "", "informationChangedTime": "", "manoEntityId": "", "changedInfo": "", "_links": {{ "subscription": "" }} }} No newline at end of file