2 Documentation Suite for checking handling events by VES Collector
4 Library RequestsLibrary
5 Library OperatingSystem
12 Library ONAPLibrary.JSON
13 Library ONAPLibrary.Utilities
14 Resource ../resources/dcae/ves_interface.robot
15 Resource ../resources/dmaap/mr_interface.robot
16 Resource ../resources/dmaap/dr_interface.robot
17 Suite Setup Activate DMAAP Topics
20 ${MR_TOPIC_CHECK_PATH} /topics
21 ${DR_SUB_CHECK_PATH} /internal/prov
22 ${MR_TOPIC_URL_PATH} /events/unauthenticated.SEC_FAULT_OUTPUT/CG1/C1
23 ${MR_FAULTSUPERVISION_TOPIC_URL_PATH} /events/unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT/CG1/C1
24 ${MR_HEARTBEAT_TOPIC_URL_PATH} /events/unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT/CG1/C1
25 ${MR_PERFORMANCEASSURANCE_TOPIC_URL_PATH} /events/unauthenticated.SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT/CG1/C1
26 ${MR_PROVISIONING_TOPIC_URL_PATH} /events/unauthenticated.SEC_3GPP_PROVISIONING_OUTPUT/CG1/C1
27 ${DMAAP_BC_MR_CLIENT_PATH} /webapi/mr_clients
28 ${DMAAP_BC_MR_CLUSTER_PATH} /webapi/mr_clusters
29 ${VES_LISTENER_PATH} /eventListener/v7
30 ${ves7_valid_json} ${EXECDIR}/robot/assets/dcae/ves7_valid.json
31 ${FaultSupervision_json} ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-FaultSupervision.json
32 ${Heartbeat_json} ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-Heartbeat.json
33 ${PerformanceAssurance_json} ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-PerformanceAssurance.json
34 ${Provisioning_json} ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-Provisioning.json
38 Send standard event to VES and check if is routed to proper topic
40 ... This test case checks whether fault event is sent to proper DMAAP topic.
41 ... Fault event should be routed by VES Collector to unauthenticated.SEC_FAULT_OUTPUT topic on DMAAP MR.
42 [Tags] vescollector ete
43 ${expected_fault_on_mr} Set Variable Fault_Vscf:Acs-Ericcson_PilotNumberPoolExhaustion
44 Send Event to VES & Validate Topic ${ves7_valid_json} ${MR_TOPIC_URL_PATH} ${expected_fault_on_mr}
46 Send 3GPP Fault Supervision event to VES and check if is routed to proper topic
48 ... This test case checks whether fault event is sent to proper DMAAP topic.
49 ... Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-FaultSupervision".
50 ... Fault should be routed to mr topic unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT
51 [Tags] vescollector ete
52 ${expected_fault_on_mr} Set Variable ves_stdnDefined_3GPP-FaultSupervision
53 Send Event to VES & Validate Topic ${FaultSupervision_json} ${MR_FAULTSUPERVISION_TOPIC_URL_PATH} ${expected_fault_on_mr}
55 Send 3GPP Heartbeat event to VES and check if is routed to proper topic
57 ... This test case checks whether fault event is sent to proper DMAAP topic.
58 ... Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-Heartbeat".
59 ... Fault should be routed to mr topic unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT
60 [Tags] vescollector ete
61 ${expected_fault_on_mr} Set Variable ves_stdnDefined_3GPP-Heartbeat
62 Send Event to VES & Validate Topic ${Heartbeat_json} ${MR_HEARTBEAT_TOPIC_URL_PATH} ${expected_fault_on_mr}
64 Send 3GPP Performance Assurance event to VES and check if is routed to proper topic
66 ... This test case checks whether fault event is sent to proper DMAAP topic.
67 ... Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-PerformanceAssurance".
68 ... Fault should be routed to mr topic unauthenticated.SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT
69 [Tags] vescollector ete
70 ${expected_fault_on_mr} Set Variable ves_stdnDefined_3GPP-PerformanceAssurance
71 Send Event to VES & Validate Topic ${PerformanceAssurance_json} ${MR_PERFORMANCEASSURANCE_TOPIC_URL_PATH} ${expected_fault_on_mr}
73 Send 3GPP Provisioning event to VES and check if is routed to proper topic
75 ... This test case checks whether fault event is sent to proper DMAAP topic.
76 ... Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-Provisioning".
77 ... Fault should be routed to mr topic unauthenticated.SEC_3GPP_PROVISIONING_OUTPUT
78 [Tags] vescollector ete
79 ${expected_fault_on_mr} Set Variable ves_stdnDefined_3GPP-Provisioning
80 Send Event to VES & Validate Topic ${Provisioning_json} ${MR_PROVISIONING_TOPIC_URL_PATH} ${expected_fault_on_mr}