aboutsummaryrefslogtreecommitdiffstats
path: root/robot/testsuites/ves.robot
blob: 8e98f860e0953b04c3e15b18e4ebdba72d1bdeda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
*** Settings ***
Documentation     Suite for checking handling events by VES Collector

Library           RequestsLibrary
Library           OperatingSystem
Library           Collections
Library           String
Library           DateTime
Library           SSHLibrary
Library           JSONLibrary
Library           Process
Library           ONAPLibrary.JSON
Library           ONAPLibrary.Utilities
Resource          ../resources/dcae/ves_interface.robot
Resource          ../resources/dmaap/mr_interface.robot
Resource          ../resources/dmaap/dr_interface.robot
Suite Setup       Activate DMAAP Topics

*** Variables ***
${MR_TOPIC_CHECK_PATH}              /topics
${DR_SUB_CHECK_PATH}                /internal/prov
${MR_TOPIC_URL_PATH}                /events/unauthenticated.SEC_FAULT_OUTPUT/CG1/C1
${MR_FAULTSUPERVISION_TOPIC_URL_PATH}   /events/unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT/CG1/C1
${MR_HEARTBEAT_TOPIC_URL_PATH}      /events/unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT/CG1/C1
${MR_PERFORMANCEASSURANCE_TOPIC_URL_PATH}      /events/unauthenticated.SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT/CG1/C1
${MR_PROVISIONING_TOPIC_URL_PATH}      /events/unauthenticated.SEC_3GPP_PROVISIONING_OUTPUT/CG1/C1
${DMAAP_BC_MR_CLIENT_PATH}          /webapi/mr_clients
${DMAAP_BC_MR_CLUSTER_PATH}         /webapi/mr_clusters
${VES_LISTENER_PATH}                /eventListener/v7
${ves7_valid_json}                  ${EXECDIR}/robot/assets/dcae/ves7_valid.json
${FaultSupervision_json}            ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-FaultSupervision.json
${Heartbeat_json}                   ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-Heartbeat.json
${PerformanceAssurance_json}        ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-PerformanceAssurance.json
${Provisioning_json}                ${EXECDIR}/robot/assets/dcae/ves_stdnDefined_3GPP-Provisioning.json

*** Test Cases ***

Send standard event to VES and check if is routed to proper topic
    [Documentation]
     ...  This test case checks whether fault event is sent to proper DMAAP topic.
     ...  Fault event should be routed by VES Collector to unauthenticated.SEC_FAULT_OUTPUT topic on DMAAP MR.
    [Tags]     vescollector   ete
    ${expected_fault_on_mr}      Set Variable     Fault_Vscf:Acs-Ericcson_PilotNumberPoolExhaustion
    Send Event to VES & Validate Topic      ${ves7_valid_json}   ${MR_TOPIC_URL_PATH}   ${expected_fault_on_mr}

Send 3GPP Fault Supervision event to VES and check if is routed to proper topic
    [Documentation]
     ...  This test case checks whether fault event is sent to proper DMAAP topic.
     ...  Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-FaultSupervision".
     ...  Fault should be routed to mr topic unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT
    [Tags]     vescollector   ete
    ${expected_fault_on_mr}      Set Variable     ves_stdnDefined_3GPP-FaultSupervision
    Send Event to VES & Validate Topic      ${FaultSupervision_json}   ${MR_FAULTSUPERVISION_TOPIC_URL_PATH}   ${expected_fault_on_mr}

Send 3GPP Heartbeat event to VES and check if is routed to proper topic
    [Documentation]
     ...  This test case checks whether fault event is sent to proper DMAAP topic.
     ...  Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-Heartbeat".
     ...  Fault should be routed to mr topic unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT
    [Tags]     vescollector   ete
    ${expected_fault_on_mr}      Set Variable     ves_stdnDefined_3GPP-Heartbeat
    Send Event to VES & Validate Topic      ${Heartbeat_json}   ${MR_HEARTBEAT_TOPIC_URL_PATH}   ${expected_fault_on_mr}

Send 3GPP Performance Assurance event to VES and check if is routed to proper topic
    [Documentation]
     ...  This test case checks whether fault event is sent to proper DMAAP topic.
     ...  Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-PerformanceAssurance".
     ...  Fault should be routed to mr topic unauthenticated.SEC_3GPP_PERFORMANCEASSURANCE_OUTPUT
    [Tags]     vescollector   ete
    ${expected_fault_on_mr}      Set Variable     ves_stdnDefined_3GPP-PerformanceAssurance
    Send Event to VES & Validate Topic      ${PerformanceAssurance_json}   ${MR_PERFORMANCEASSURANCE_TOPIC_URL_PATH}   ${expected_fault_on_mr}

Send 3GPP Provisioning event to VES and check if is routed to proper topic
    [Documentation]
     ...  This test case checks whether fault event is sent to proper DMAAP topic.
     ...  Fault Supervision event should be routed by domain = "stndDefined" and stndDefinedNamespace = "3GPP-Provisioning".
     ...  Fault should be routed to mr topic unauthenticated.SEC_3GPP_PROVISIONING_OUTPUT
    [Tags]     vescollector   ete
    ${expected_fault_on_mr}      Set Variable     ves_stdnDefined_3GPP-Provisioning
    Send Event to VES & Validate Topic      ${Provisioning_json}   ${MR_PROVISIONING_TOPIC_URL_PATH}   ${expected_fault_on_mr}