From bc9895f5e6aba0daf8eb296ee64d7091ffd2a815 Mon Sep 17 00:00:00 2001 From: Oleksandr Zharov Date: Wed, 3 Jan 2024 21:28:18 +0100 Subject: [PATCH] Remove testplans and suites for tsdr Removed testplans and suites for tsdr project. JIRA: INTTEST-140 Change-Id: I484c40f47bd822f7b04161b2679917758f86a51e Signed-off-by: Oleksandr Zharov --- .../iotdm/basic/200_IoTDMInfraPlugins.robot | 19 +-- .../tsdr/Cassandra/010_InterfaceMetrics.robot | 155 ------------------ .../tsdr/Cassandra/020_FlowMetrics.robot | 141 ---------------- .../tsdr/Cassandra/030_FlowTableMetrics.robot | 111 ------------- .../tsdr/Cassandra/040_QueueMetrics.robot | 114 ------------- .../tsdr/Cassandra/050_SyslogTable.robot | 41 ----- csit/suites/tsdr/Cassandra/070_Netflow.robot | 84 ---------- .../Cassandra/scripts/cassandra-startup.sh | 16 -- .../Elasticsearch/030_FlowTableMetrics.robot | 98 ----------- .../scripts/elasticsearch-startup.sh | 28 ---- .../suites/tsdr/H2/010_InterfaceMetrics.robot | 74 --------- csit/suites/tsdr/H2/020_FlowMetrics.robot | 35 ---- .../suites/tsdr/H2/030_FlowTableMetrics.robot | 44 ----- csit/suites/tsdr/H2/040_QueueMetrics.robot | 58 ------- csit/suites/tsdr/H2/050_GroupMetrics.robot | 65 -------- .../suites/tsdr/H2/060_FlowMeterMetrics.robot | 84 ---------- .../tsdr/HBase/010_InterfaceMetrics.robot | 116 ------------- csit/suites/tsdr/HBase/020_FlowMetrics.robot | 56 ------- .../tsdr/HBase/030_FlowTableMetrics.robot | 60 ------- csit/suites/tsdr/HBase/040_QueueMetrics.robot | 62 ------- csit/suites/tsdr/HBase/050_SyslogTable.robot | 34 ---- csit/suites/tsdr/HBase/070_Netflow.robot | 110 ------------- .../tsdr/HBase/scripts/hbase-startup.sh | 14 -- .../tsdr/HSQLDB/010_InterfaceMetrics.robot | 75 --------- csit/suites/tsdr/HSQLDB/020_FlowMetrics.robot | 38 ----- .../tsdr/HSQLDB/030_FlowTableMetrics.robot | 47 ------ .../suites/tsdr/HSQLDB/040_QueueMetrics.robot | 46 ------ .../tsdr/HSQLDB/060_syslog_Collector.robot | 35 ---- csit/suites/tsdr/HSQLDB/070_Netflow.robot | 70 -------- csit/testplans/tsdr-cassandra-datastore.txt | 2 - .../tsdr-elasticsearch-datastore.txt | 2 - csit/testplans/tsdr-hbase-datastore.txt | 2 - csit/testplans/tsdr-hsqldb-datastore.txt | 2 - 33 files changed, 3 insertions(+), 1935 deletions(-) delete mode 100644 csit/suites/tsdr/Cassandra/010_InterfaceMetrics.robot delete mode 100644 csit/suites/tsdr/Cassandra/020_FlowMetrics.robot delete mode 100644 csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot delete mode 100644 csit/suites/tsdr/Cassandra/040_QueueMetrics.robot delete mode 100644 csit/suites/tsdr/Cassandra/050_SyslogTable.robot delete mode 100644 csit/suites/tsdr/Cassandra/070_Netflow.robot delete mode 100755 csit/suites/tsdr/Cassandra/scripts/cassandra-startup.sh delete mode 100644 csit/suites/tsdr/Elasticsearch/030_FlowTableMetrics.robot delete mode 100755 csit/suites/tsdr/Elasticsearch/scripts/elasticsearch-startup.sh delete mode 100644 csit/suites/tsdr/H2/010_InterfaceMetrics.robot delete mode 100644 csit/suites/tsdr/H2/020_FlowMetrics.robot delete mode 100644 csit/suites/tsdr/H2/030_FlowTableMetrics.robot delete mode 100644 csit/suites/tsdr/H2/040_QueueMetrics.robot delete mode 100644 csit/suites/tsdr/H2/050_GroupMetrics.robot delete mode 100644 csit/suites/tsdr/H2/060_FlowMeterMetrics.robot delete mode 100644 csit/suites/tsdr/HBase/010_InterfaceMetrics.robot delete mode 100644 csit/suites/tsdr/HBase/020_FlowMetrics.robot delete mode 100644 csit/suites/tsdr/HBase/030_FlowTableMetrics.robot delete mode 100644 csit/suites/tsdr/HBase/040_QueueMetrics.robot delete mode 100644 csit/suites/tsdr/HBase/050_SyslogTable.robot delete mode 100644 csit/suites/tsdr/HBase/070_Netflow.robot delete mode 100755 csit/suites/tsdr/HBase/scripts/hbase-startup.sh delete mode 100644 csit/suites/tsdr/HSQLDB/010_InterfaceMetrics.robot delete mode 100644 csit/suites/tsdr/HSQLDB/020_FlowMetrics.robot delete mode 100644 csit/suites/tsdr/HSQLDB/030_FlowTableMetrics.robot delete mode 100644 csit/suites/tsdr/HSQLDB/040_QueueMetrics.robot delete mode 100644 csit/suites/tsdr/HSQLDB/060_syslog_Collector.robot delete mode 100644 csit/suites/tsdr/HSQLDB/070_Netflow.robot delete mode 100644 csit/testplans/tsdr-cassandra-datastore.txt delete mode 100644 csit/testplans/tsdr-elasticsearch-datastore.txt delete mode 100644 csit/testplans/tsdr-hbase-datastore.txt delete mode 100644 csit/testplans/tsdr-hsqldb-datastore.txt diff --git a/csit/suites/iotdm/basic/200_IoTDMInfraPlugins.robot b/csit/suites/iotdm/basic/200_IoTDMInfraPlugins.robot index fe938ab743..2f9255c4ac 100644 --- a/csit/suites/iotdm/basic/200_IoTDMInfraPlugins.robot +++ b/csit/suites/iotdm/basic/200_IoTDMInfraPlugins.robot @@ -42,11 +42,7 @@ ${VAR_BASE} ${CURDIR}/../../../variables/IoTDM/ [Documentation] Verifies all plugin data about Onem2mExample provider module plugin Verify RPC Plugin Data onem2m_example/filtered -1.06 Plugin data of TSDR - filtered - [Documentation] Verifies all plugin data about Onem2mExample provider module plugin - Verify RPC Plugin Data tsdr/filtered - -1.07 Plugin data of SimpleAdapter - filtered +1.06 Plugin data of SimpleAdapter - filtered [Documentation] Verifies all plugin data about Onem2mExample provider module plugin Verify RPC Plugin Data simple_adapter/filtered @@ -94,11 +90,7 @@ ${VAR_BASE} ${CURDIR}/../../../variables/IoTDM/ [Documentation] Verifies the result of RPC and looks for Onem2mExample registration Verify RPC Db Registrations onem2m_example/filtered -3.00.02 Default result of onem2m-plugin-manager-db-api-client-registrations RPC - TSDR - [Documentation] Verifies the result of RPC and looks for TSDR registration - Verify RPC Db Registrations tsdr/default - -3.00.03 Default result of onem2m-plugin-manager-db-api-client-registrations RPC - SimpleAdapter +3.00.02 Default result of onem2m-plugin-manager-db-api-client-registrations RPC - SimpleAdapter [Documentation] Verifies the result of RPC and looks for SimpleAdapter registration Verify RPC Db Registrations simple_adapter/default @@ -106,11 +98,7 @@ ${VAR_BASE} ${CURDIR}/../../../variables/IoTDM/ [Documentation] Verifies result of RPC with input filter for Onem2mExample Verify RPC Db Registrations onem2m_example/filtered -3.01.01 Default result of onem2m-plugin-manager-db-api-client-registrations RPC - filtered TSDR - [Documentation] Verifies result of RPC with input filter for TSDR - Verify RPC Db Registrations tsdr/filtered - -3.01.02 Default result of onem2m-plugin-manager-db-api-client-registrations RPC - filtered SimpleAdapter +3.01.01 Default result of onem2m-plugin-manager-db-api-client-registrations RPC - filtered SimpleAdapter [Documentation] Verifies result of RPC with input filter for SimpleAdapter Verify RPC Db Registrations simple_adapter/filtered @@ -473,7 +461,6 @@ Verify Default PluginData Output Verify RPC Plugin Data mqtt/default Verify RPC Plugin Data ws/default Verify RPC Plugin Data onem2m_example/default - Verify RPC Plugin Data tsdr/default Verify RPC Plugin Data simple_adapter/default Verify PluginData After Reconfiguration of HTTP diff --git a/csit/suites/tsdr/Cassandra/010_InterfaceMetrics.robot b/csit/suites/tsdr/Cassandra/010_InterfaceMetrics.robot deleted file mode 100644 index 6a0ee9ca05..0000000000 --- a/csit/suites/tsdr/Cassandra/010_InterfaceMetrics.robot +++ /dev/null @@ -1,155 +0,0 @@ -*** Settings *** -Documentation Test suite for Cassandra DataStore PortStats Verification - -Library SSHLibrary -Library Collections -Library String -Library RequestsLibrary -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - -Suite Teardown Stop Tsdr Suite - - -*** Variables *** -@{INTERFACE_METRICS} -... TransmittedPackets -... TransmittedBytes -... TransmitErrors -... TransmitDrops -... ReceivedPackets -... ReceivedBytes -... ReceiveOverRunError -... ReceiveFrameError -... ReceiveErrors -... ReceiveDrops -... ReceiveCrcError -... CollisionCount -${root_path} flow-capable-node-connector-statistics -@{xpath} -... ${root_path}/packets/transmitted -... ${root_path}/bytes/transmitted -... ${root_path}/transmit-errors -... ${root_path}/transmit-drops -... ${root_path}/packets/received -... ${root_path}/bytes/received -... ${root_path}/receive-over-run-error -... ${root_path}/receive-frame-error -... ${root_path}/receive-errors -... ${root_path}/receive-drops -... ${root_path}/receive-crc-error -... ${root_path}/collision-count -@{CATEGORY} FlowStats FlowTableStats PortStats QueueStats -${TSDR_PORTSTATS} tsdr:list PortStats -${metric_path} metric_path -${metric_val} metric_val -@{xml_list} -@{tsdr_list} - - -*** Test Cases *** -Verification of TSDR Cassandra Feature Installation - [Documentation] Install and Verify the TSDR Cassandra Features - COMMENT Install a Feature odl-tsdr-cassandra-all ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60 - Wait Until Keyword Succeeds 24x 10 sec Check Karaf Log Has Messages tsdr.openflow - Verify Feature Is Installed odl-tsdr-cassandra - Verify Feature Is Installed odl-tsdr-openflow-statistics-collector - Start Tsdr Suite - Ping All Hosts - Wait Until Keyword Succeeds 5x 30 sec Check Metric val \\d{5} - -Storing Statistics from Openflow REST - [Documentation] Store openflow PortStats metrics using REST. - FOR ${item} IN @{xpath} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/node-connector/openflow:1:1 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/node-connector/openflow:1:2 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML - ... ${OPERATIONAL_NODES_API}/node/openflow:1/node-connector/openflow:1:LOCAL - ... ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/node-connector/openflow:2:1 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/node-connector/openflow:2:2 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/node-connector/openflow:2:3 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML - ... ${OPERATIONAL_NODES_API}/node/openflow:2/node-connector/openflow:2:LOCAL - ... ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/node-connector/openflow:3:1 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/node-connector/openflow:3:2 ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - ${ret_val}= Get Stats XML - ... ${OPERATIONAL_NODES_API}/node/openflow:3/node-connector/openflow:3:LOCAL - ... ${item} - Append To List ${xml_list} ${ret_val} - ${ret_val}= Set Variable -1 - END - Log List ${xml_list} - -Verification of InterfaceMetrics-Attributes on Cassandra Client - [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store - Copy TSDR tables - FOR ${list} IN @{INTERFACE_METRICS} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:1 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:1,NodeConnector:openflow:1:1 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:1 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:1,NodeConnector:openflow:1:2 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:1 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:1,NodeConnector:openflow:1:LOCAL - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:2 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:2,NodeConnector:openflow:2:1 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:2 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:2,NodeConnector:openflow:2:2 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:2 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:2,NodeConnector:openflow:2:3 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:2 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:2,NodeConnector:openflow:2:LOCAL - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:3 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:3,NodeConnector:openflow:3:1 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:3 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:3,NodeConnector:openflow:3:2 - Append To List ${tsdr_list} ${ret_val1} - ${ret_val1}= Extract From DB Table - ... grep NID=openflow:3 | grep DC=PORTSTATS | grep MN=${list} | grep RK=Node:openflow:3,NodeConnector:openflow:3:LOCAL - Append To List ${tsdr_list} ${ret_val1} - END - -Comparing Mertics - [Documentation] Compare openflow Interface metrics between data collected from openflow Plugin and TSDR - FOR ${xml_val} ${tsdr_val} IN ZIP ${xml_list} ${tsdr_list} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - - -*** Keywords *** -Extract From DB Table - [Documentation] Extract from metricpath table and return the value - [Arguments] ${pattern} - ${ret_val1}= Set Variable -100 - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client ${pattern} - RETURN ${ret_val1} diff --git a/csit/suites/tsdr/Cassandra/020_FlowMetrics.robot b/csit/suites/tsdr/Cassandra/020_FlowMetrics.robot deleted file mode 100644 index de9822e4d5..0000000000 --- a/csit/suites/tsdr/Cassandra/020_FlowMetrics.robot +++ /dev/null @@ -1,141 +0,0 @@ -*** Settings *** -Documentation Test suite for Cassandra DataStore Flow Stats Verification - -Library SSHLibrary -Library Collections -Library String -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - -Suite Setup Initialize the Tsdr Suite -Suite Teardown Stop Tsdr Suite - - -*** Variables *** -@{FLOW_METRICS} PacketCount ByteCount -${TSDR_FLOWSTATS} tsdr:list FlowStats -${packet_count} flow/flow-statistics/packet-count -${byte_count} flow/flow-statistics/byte-count -@{tsdr_op1} -@{tsdr_op2} -@{tsdr_op3} -@{tsdr_op1_pc} -@{tsdr_op2_pc} -@{tsdr_op3_pc} -@{tsdr_op1_bc} -@{tsdr_op2_bc} -@{tsdr_op3_bc} - - -*** Test Cases *** -Verification of TSDR Cassandra Feature Installation - [Documentation] Install and Verify the TSDR Cassandra Features - Verify Feature Is Installed odl-tsdr-cassandra - Verify Feature Is Installed odl-tsdr-openflow-statistics-collector - Start Tsdr Suite - Ping All Hosts - Wait Until Keyword Succeeds 5x 30 sec Check Metric val \\d{5} - -Getting all Tables from Openflow Plugin - [Documentation] Getting Flowstats from openflow plugin - @{openflow_1}= Return all XML matches ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ flow/id - @{openflow_2}= Return all XML matches ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ flow/id - @{openflow_3}= Return all XML matches ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ flow/id - Set Suite Variable @{openflow_1} - Set Suite Variable @{openflow_2} - Set Suite Variable @{openflow_3} - @{openflow_1_packetcount}= Return all XML matches - ... ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ - ... ${packet_count} - @{openflow_2_packetcount}= Return all XML matches - ... ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ - ... ${packet_count} - @{openflow_3_packetcount}= Return all XML matches - ... ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ - ... ${packet_count} - Set Suite Variable @{openflow_1_packetcount} - Set Suite Variable @{openflow_2_packetcount} - Set Suite Variable @{openflow_3_packetcount} - @{openflow_1_bytecount}= Return all XML matches - ... ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ - ... ${byte_count} - @{openflow_2_bytecount}= Return all XML matches - ... ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ - ... ${byte_count} - @{openflow_3_bytecount}= Return all XML matches - ... ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ - ... ${byte_count} - Set Suite Variable @{openflow_1_bytecount} - Set Suite Variable @{openflow_2_bytecount} - Set Suite Variable @{openflow_3_bytecount} - -Verification of FlowStats-Attributes on Cassandra Data Store - [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store - Copy TSDR tables - FOR ${flow} IN @{openflow_1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:1 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:1,Table:0,Flow:${flow}' - Append To List ${tsdr_op1_pc} ${ret_val1} - END - FOR ${flow} IN @{openflow_2} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:2,Table:0,Flow:${flow}' - Append To List ${tsdr_op2_pc} ${ret_val1} - END - FOR ${flow} IN @{openflow_3} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:3 | grep DC=FLOWSTATS | grep MN=PacketCount | grep -F 'RK=Node:openflow:3,Table:0,Flow:${flow}' - Append To List ${tsdr_op3_pc} ${ret_val1} - END - FOR ${flow} IN @{openflow_1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:1 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:1,Table:0,Flow:${flow}' - Append To List ${tsdr_op1_bc} ${ret_val1} - END - FOR ${flow} IN @{openflow_2} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:2,Table:0,Flow:${flow}' - Append To List ${tsdr_op2_bc} ${ret_val1} - END - FOR ${flow} IN @{openflow_3} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:3 | grep DC=FLOWSTATS | grep MN=ByteCount | grep -F 'RK=Node:openflow:3,Table:0,Flow:${flow}' - Append To List ${tsdr_op3_bc} ${ret_val1} - END - Set Suite Variable @{tsdr_op1_pc} - Set Suite Variable @{tsdr_op2_pc} - Set Suite Variable @{tsdr_op3_pc} - Set Suite Variable @{tsdr_op1_bc} - Set Suite Variable @{tsdr_op2_bc} - Set Suite Variable @{tsdr_op3_bc} - -Comparing Packet Count Metrics - [Documentation] Comparing Packet count values between Cassandra and openflow plugin - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_1_packetcount} ${tsdr_op1_pc} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_2_packetcount} ${tsdr_op2_pc} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_3_packetcount} ${tsdr_op3_pc} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - -Comparing Byte Count Metrics - [Documentation] Comparing byte count values between Cassandra and openflow plugin - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_1_bytecount} ${tsdr_op1_bc} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_2_bytecount} ${tsdr_op2_bc} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_3_bytecount} ${tsdr_op3_bc} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - - -*** Keywords *** -Initialize the Tsdr Suite - Initialize Cassandra Tables Metricval diff --git a/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot b/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot deleted file mode 100644 index d455d33f28..0000000000 --- a/csit/suites/tsdr/Cassandra/030_FlowTableMetrics.robot +++ /dev/null @@ -1,111 +0,0 @@ -*** Settings *** -Documentation Test suite for Cassandra DataStore Flow Table Stats Verification - -Library SSHLibrary -Library Collections -Library String -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - -Suite Setup Initialize the Tsdr Suite -Suite Teardown Stop Tsdr Suite - - -*** Variables *** -${TSDR_FLOWTABLE_STATS} tsdr:list FlowTableStats -@{tsdr_pl} -@{tsdr_af} -@{tsdr_pm} -${packetlookup} flow-table-statistics/packets-looked-up -${activeflows} flow-table-statistics/active-flows -${packetmatched} flow-table-statistics/packets-matched -@{openflow_packetlookup} -@{openflow_activeflows} -@{openflow_packetmatched} - - -*** Test Cases *** -Verification of TSDR Cassandra Feature Installation - [Documentation] Install and Verify the TSDR Cassandra Features - COMMENT Install a Feature odl-tsdr-cassandra-all ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60 - Verify Feature Is Installed odl-tsdr-cassandra - COMMENT Verify Feature Is Installed odl-tsdr-cassandra-persistence - Verify Feature Is Installed odl-tsdr-openflow-statistics-collector - Start Tsdr Suite - Ping All Hosts - Wait Until Keyword Succeeds 5x 30 sec Check Metric val \\d{5} - -Getting all Tables from Openflow Plugin - [Documentation] Getting Flow Table Stats Values from Openflow plugin - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ ${packetlookup} - Append To List ${openflow_packetlookup} ${ret} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ ${packetlookup} - Append To List ${openflow_packetlookup} ${ret} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ ${packetlookup} - Append To List ${openflow_packetlookup} ${ret} - Set Suite Variable @{openflow_packetlookup} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ ${activeflows} - Append To List ${openflow_activeflows} ${ret} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ ${activeflows} - Append To List ${openflow_activeflows} ${ret} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ ${activeflows} - Append To List ${openflow_activeflows} ${ret} - Set Suite Variable @{openflow_activeflows} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:1/table/0/ ${packetmatched} - Append To List ${openflow_packetmatched} ${ret} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:2/table/0/ ${packetmatched} - Append To List ${openflow_packetmatched} ${ret} - ${ret}= Get Stats XML ${OPERATIONAL_NODES_API}/node/openflow:3/table/0/ ${packetmatched} - Append To List ${openflow_packetmatched} ${ret} - Set Suite Variable @{openflow_packetmatched} - -Verification of FlowStats-Attributes on Cassandra Data Store - [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store - Copy TSDR tables - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:1,Table:0 - Append To List ${tsdr_pl} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:2,Table:0 - Append To List ${tsdr_pl} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=PacketLookup | grep RK=Node:openflow:3,Table:0 - Append To List ${tsdr_pl} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:1,Table:0 - Append To List ${tsdr_af} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:2,Table:0 - Append To List ${tsdr_af} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=ActiveFlows | grep RK=Node:openflow:3,Table:0 - Append To List ${tsdr_af} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:1 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:1,Table:0 - Append To List ${tsdr_pm} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:2,Table:0 - Append To List ${tsdr_pm} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:3 | grep DC=FLOWTABLESTATS | grep MN=PacketMatch | grep RK=Node:openflow:3,Table:0 - Append To List ${tsdr_pm} ${ret_val1} - -Comparing Flow Table Metrics - [Documentation] Comparing Flow table values between Cassandra and openflow plugin. - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_packetlookup} ${tsdr_pl} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_activeflows} ${tsdr_af} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_packetmatched} ${tsdr_pm} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 5 - END - - -*** Keywords *** -Initialize the Tsdr Suite - COMMENT Initialize the Cassandra for TSDR - Initialize Cassandra Tables Metricval diff --git a/csit/suites/tsdr/Cassandra/040_QueueMetrics.robot b/csit/suites/tsdr/Cassandra/040_QueueMetrics.robot deleted file mode 100644 index 4845cd0aeb..0000000000 --- a/csit/suites/tsdr/Cassandra/040_QueueMetrics.robot +++ /dev/null @@ -1,114 +0,0 @@ -*** Settings *** -Documentation Test suite for Cassandra DataStore Queue Stats Verification - -Library SSHLibrary -Library Collections -Library String -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - -Suite Setup Initialize Cassandra Tables Metricval -Suite Teardown Stop Tsdr Suite - - -*** Variables *** -@{QUEUE_METRICS} TransmittedPackets TransmittedBytes TransmissionErrors -${TSDR_QUEUESTATS} tsdr:list QueueStats -${QUERY_HEAD} ${OPERATIONAL_NODES_API}/node -${query_head1} ${QUERY_HEAD}/openflow:2/node-connector/openflow:2:2/queue/ -@{tsdr_q0} -@{tsdr_q2} -@{tsdr_q1} -${transmittedpackets} flow-capable-node-connector-queue-statistics/transmitted-packets -${transmittedbytes} flow-capable-node-connector-queue-statistics/transmitted-bytes -${transmittederrors} flow-capable-node-connector-queue-statistics/transmission-errors -@{openflow_q0} -@{openflow_q2} -@{openflow_q1} - - -*** Test Cases *** -Verification of TSDR Cassandra Feature Installation - [Documentation] Install and Verify the TSDR Cassandra Features - COMMENT Install a Feature odl-tsdr-cassandra-all ${ODL_SYSTEM_IP} ${KARAF_SHELL_PORT} 60 - Verify Feature Is Installed odl-tsdr-cassandra - COMMENT Verify Feature Is Installed odl-tsdr-cassandra-persistence - Verify Feature Is Installed odl-tsdr-openflow-statistics-collector - Start Tsdr Suite - Configuration of Queue on Switch - Ping All Hosts - Wait Until Keyword Succeeds 5x 30 sec Check Metric val \\d{5} - -Getting all Tables from Openflow Plugin - [Documentation] Getting Queue Stats from openflow plugin - ${ret}= Get Stats XML ${query_head1}0/ ${transmittederrors} - Append To List ${openflow_q0} ${ret} - ${ret}= Get Stats XML ${query_head1}0/ ${transmittedpackets} - Append To List ${openflow_q0} ${ret} - ${ret}= Get Stats XML ${query_head1}0/ ${transmittedbytes} - Append To List ${openflow_q0} ${ret} - Set Suite Variable @{openflow_q0} - ${ret}= Get Stats XML ${query_head1}1/ ${transmittederrors} - Append To List ${openflow_q1} ${ret} - ${ret}= Get Stats XML ${query_head1}1/ ${transmittedpackets} - Append To List ${openflow_q1} ${ret} - ${ret}= Get Stats XML ${query_head1}1/ ${transmittedbytes} - Append To List ${openflow_q1} ${ret} - Set Suite Variable @{openflow_q1} - ${ret}= Get Stats XML ${query_head1}2/ ${transmittederrors} - Append To List ${openflow_q2} ${ret} - ${ret}= Get Stats XML ${query_head1}2/ ${transmittedpackets} - Append To List ${openflow_q2} ${ret} - ${ret}= Get Stats XML ${query_head1}2/ ${transmittedbytes} - Append To List ${openflow_q2} ${ret} - Set Suite Variable @{openflow_q2} - -Verification of FlowStats-Attributes on Cassandra Data Store - [Documentation] Verify the InterfaceMetrics has been updated on Cassandra Data Store - Copy TSDR tables - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0 - Append To List ${tsdr_q0} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0 - Append To List ${tsdr_q0} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:0 - Append To List ${tsdr_q0} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1 - Append To List ${tsdr_q1} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1 - Append To List ${tsdr_q1} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:1 - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmissionErrors | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2 - Append To List ${tsdr_q2} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedPackets | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2 - Append To List ${tsdr_q2} ${ret_val1} - ${ret_val1}= Verify the Metrics Attributes on Cassandra Client - ... grep NID=openflow:2 | grep DC=QUEUESTATS | grep MN=TransmittedBytes | grep RK=Node:openflow:2,NodeConnector:openflow:2:2,Queue:2 - Append To List ${tsdr_q2} ${ret_val1} - -Comparing Queue Metrics - [Documentation] Comparing Queue metrics between Cassandra and OF plugin - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q0} ${tsdr_q0} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q1} ${tsdr_q1} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - FOR ${xml_val} ${tsdr_val} IN ZIP ${openflow_q2} ${tsdr_q2} - Compare Tsdr XML Metrics ${xml_val} ${tsdr_val} 20 - END - - -*** Keywords *** -Configuration of Queue on Switch - [Documentation] Queue configuration on openvswitch - Configure the Queue on Switch s2-eth2 diff --git a/csit/suites/tsdr/Cassandra/050_SyslogTable.robot b/csit/suites/tsdr/Cassandra/050_SyslogTable.robot deleted file mode 100644 index ee2ac2f93f..0000000000 --- a/csit/suites/tsdr/Cassandra/050_SyslogTable.robot +++ /dev/null @@ -1,41 +0,0 @@ -*** Settings *** -Documentation Test suite for Cassandra DataStore Syslog Verification - -Library SSHLibrary -Library Collections -Library String -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - - -*** Test Cases *** -Verification of TSDR Cassandra Feature Installation - [Documentation] Install and Verify the TSDR Cassandra Syslog Features - Initialize Cassandra Tables Metricval val_table=metriclog - Wait Until Keyword Succeeds 24x 10 sec Check Karaf Log Has Messages tsdr.syslog - Verify Feature Is Installed odl-tsdr-cassandra - Verify Feature Is Installed odl-tsdr-syslog-collector - -Sending syslog to ODL Syslog collector using Logger command - [Documentation] Sending Syslogs to collector. - FOR ${key} IN ZIP &{syslog_facility} - ${value}= Get From Dictionary ${syslog_facility} ${key} - ${f_value}= Evaluate ${value} * 8 - Generate Syslog ${f_value} - END - -Verifying TSDR Data Store For Syslog Entries - [Documentation] Verifying if syslogs is getting stored. - Copy TSDR tables val_table=metriclog - ${metric_log}= Verify the Metrics Syslog on Cassandra Client grep DC=SYSLOG - @{Syslogs}= Split to lines ${metric_log} - ${iterator}= Set Variable 0 - FOR ${key} IN ZIP &{syslog_facility} - ${value}= Get From Dictionary ${syslog_facility} ${key} - ${f_value}= Evaluate ${value} * 8 - Should Contain ${syslogs}[${iterator}] ${MESSAGE} - Should Contain ${syslogs}[${iterator}] <${f_value}> - ${iterator}= Evaluate ${iterator} + 1 - END diff --git a/csit/suites/tsdr/Cassandra/070_Netflow.robot b/csit/suites/tsdr/Cassandra/070_Netflow.robot deleted file mode 100644 index 6a0d37dc45..0000000000 --- a/csit/suites/tsdr/Cassandra/070_Netflow.robot +++ /dev/null @@ -1,84 +0,0 @@ -*** Settings *** -Documentation Test suite for Cassandra DataStore Netflow Stats Verification - -Library SSHLibrary -Library Collections -Library String -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - -Suite Setup Initialize Netflow -Suite Teardown Stop Tsdr Suite - - -*** Variables *** -${IP_1} 10.0.0.1 -${IP_2} 10.0.0.2 -${NODE_ID} 127.0.0.1 -${engine_type} 11 -${engine_id} 11 -${nexthop} 0 -${port} 0 -${prot} 1 -${int1} 1 -${int2} 2 -${version} 5 - - -*** Test Cases *** -Verifying TSDR Data Store For Netflow Entries - [Documentation] Verify the Cassandra Data store to check if Netflow data is stored. - Copy TSDR tables val_table=metriclog - ${metric_log}= Verify the Metrics Syslog on Cassandra Client grep DC=NETFLOW - Should Contain ${metric_log} srcAddr=${IP_2} - ${netflow}= Create Temporary Key Info srcAddr=${IP_2} val_table=metriclog - Should Contain ${netflow} srcAddr=${IP_2} - Should Contain ${netflow} dstAddr=${IP_1} - Should Contain ${netflow} srcPort=${port} - Should Contain ${netflow} protocol=${prot} - Should Contain ${netflow} nextHop=${nexthop} - Should Contain ${netflow} engine_type - Should Contain ${netflow} engine_id - Should Contain ${netflow} input=${int2} - Should Contain ${netflow} output=${int1} - Should Contain ${netflow} sysUpTime - Should Contain ${netflow} flow_sequence - Should Contain ${netflow} unix_nsecs - Should Contain ${netflow} dPkts - Should Contain ${netflow} tcpFlags - Should Contain ${netflow} samplingInterval=0 - Should Contain ${netflow} dstAS=0 - Should Contain ${netflow} srcAS=0 - Should Contain ${netflow} dstMask=0 - Should Contain ${netflow} srcMask=0 - ${netflow}= Create Temporary Key Info srcAddr=${IP_1} val_table=metriclog - Should Contain ${netflow} srcAddr=${IP_1} - Should Contain ${netflow} dstAddr=${IP_2} - Should Contain ${netflow} dstPort=${port} - Should Contain ${netflow} protocol=${prot} - Should Contain ${netflow} nextHop=${nexthop} - Should Contain ${netflow} engine_type - Should Contain ${netflow} engine_id - Should Contain ${netflow} input=${int1} - Should Contain ${netflow} output=${int2} - Should Contain ${netflow} sysUpTime - Should Contain ${netflow} flow_sequence - Should Contain ${netflow} unix_nsecs - Should Contain ${netflow} dPkts - Should Contain ${netflow} tcpFlags - Should Contain ${netflow} samplingInterval=0 - Should Contain ${netflow} dstAS=0 - Should Contain ${netflow} srcAS=0 - Should Contain ${netflow} dstMask=0 - Should Contain ${netflow} srcMask=0 - - -*** Keywords *** -Initialize Netflow - [Documentation] Initialize Netflow setup and start collecting the netflow samples. - Verify Feature Is Installed odl-tsdr-cassandra - Bringup Netflow - Initialize Cassandra Tables Metricval val_table=metriclog - Wait Until Keyword Succeeds 36x 5 sec Ping Pair Hosts Cassandra \\d{2} diff --git a/csit/suites/tsdr/Cassandra/scripts/cassandra-startup.sh b/csit/suites/tsdr/Cassandra/scripts/cassandra-startup.sh deleted file mode 100755 index 8eb247a9f5..0000000000 --- a/csit/suites/tsdr/Cassandra/scripts/cassandra-startup.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# Installation of Cassandra -cat > ${WORKSPACE}/cassandrastartup.sh < ${WORKSPACE}/elasticsearch.sh <* - END diff --git a/csit/suites/tsdr/HBase/070_Netflow.robot b/csit/suites/tsdr/HBase/070_Netflow.robot deleted file mode 100644 index b580f43f8f..0000000000 --- a/csit/suites/tsdr/HBase/070_Netflow.robot +++ /dev/null @@ -1,110 +0,0 @@ -*** Settings *** -Documentation Test suite for Hbase DataStore Netflow Stats Verification - -Library SSHLibrary -Library Collections -Library String -Library ../../../libraries/Common.py -Resource ../../../libraries/KarafKeywords.robot -Resource ../../../libraries/TsdrUtils.robot -Variables ../../../variables/Variables.py - -Suite Setup Initialize Netflow -Suite Teardown Stop Tsdr Suite - - -*** Variables *** -${IP_1} 10.0.0.1 -${IP_2} 10.0.0.2 -${NODE_ID} 127.0.0.1 -${engine_type} 11 -${engine_id} 11 -${nextHop} 0 -${port} 0 -${protocol} 1 -${int1} 1 -${int2} 2 -${version} 5 - - -*** Test Cases *** -Verification of Full Record Text for Netflow Dumps - [Documentation] Verify the Netflow Record Text Hbase client - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1' , LIMIT => 10, FILTER => "ValueFilter( =, 'regexstring:srcAddr=${IP_2}' )" } - Should Contain ${out} srcAddr=${IP_2} - Should Contain ${out} dstAddr=${IP_1} - Should Contain ${out} srcPort=${port} - Should Contain ${out} protocol=${protocol} - Should Contain ${out} nextHop=${nexthop} - Should Contain ${out} engine_type - Should Contain ${out} engine_id - Should Contain ${out} input=${int2} - Should Contain ${out} output=${int1} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1' , LIMIT => 10, FILTER => "ValueFilter( =, 'regexstring:srcAddr=${IP_1}' )" } - Should Contain ${out} srcAddr=${IP_1} - Should Contain ${out} dstAddr=${IP_2} - Should Contain ${out} srcPort=${port} - Should Contain ${out} protocol=${protocol} - Should Contain ${out} nextHop=${nexthop} - Should Contain ${out} engine_type - Should Contain ${out} engine_id - Should Contain ${out} input=${int1} - Should Contain ${out} output=${int2} - ${out}= Query the Data from HBaseClient scan 'NETFLOW' - Should Contain ${out} sysUpTime - Should Contain ${out} flow_sequence - Should Contain ${out} unix_nsecs - Should Contain ${out} dPkts - Should Contain ${out} tcpFlags - Should Contain ${out} dstAS=0 - Should Contain ${out} srcAS=0 - Should Contain ${out} dstMask=0 - Should Contain ${out} srcMask=0 - -Verification of Metric Record for Netflow Dumps - [Documentation] Verify the Netflow Metric Record Hbase client - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:dstAddr' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${IP_1}' )" } - Should Contain ${out} value=${IP_1} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:srcAddr' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${IP_1}' )" } - Should Contain ${out} value=${IP_1} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:dstAddr' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${IP_2}' )" } - Should Contain ${out} value=${IP_2} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:srcAddr' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${IP_2}' )" } - Should Contain ${out} value=${IP_2} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:input' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${int1}' )" } - Should Contain ${out} value=${int1} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:output' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${int2}' )" } - Should Contain ${out} value=${int2} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:input' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${int2}' )" } - Should Contain ${out} value=${int2} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:output' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${int1}' )" } - Should Contain ${out} value=${int1} - ${out}= Query the Data from HBaseClient scan 'NETFLOW',{ COLUMNS => 'c1:flowDuration' , LIMIT => 10} - Should Contain ${out} flowDuration - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:nextHop' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${nextHop}' )" } - Should Contain ${out} value=${nextHop} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:version' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${version}' )" } - Should Contain ${out} value=${version} - ${out}= Query the Data from HBaseClient - ... scan 'NETFLOW',{ COLUMNS => 'c1:protocol' , LIMIT => 10, FILTER => "ValueFilter( =, 'binaryprefix:${protocol}' )" } - Should Contain ${out} value=${protocol} - - -*** Keywords *** -Initialize Netflow - [Documentation] Initialize Netflow setup and start collecting the netflow samples. - Query the Data from HBaseClient truncate 'NETFLOW' - Bringup Netflow - Wait Until Keyword Succeeds 36x 5 sec Ping Pair Hosts Hbase \\d{2} row diff --git a/csit/suites/tsdr/HBase/scripts/hbase-startup.sh b/csit/suites/tsdr/HBase/scripts/hbase-startup.sh deleted file mode 100755 index 7a23c8c4f6..0000000000 --- a/csit/suites/tsdr/HBase/scripts/hbase-startup.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# Installation of Hbase -cat > ${WORKSPACE}/hbasestartup.sh <