Update Robot Framework format - step 15
[integration/test.git] / csit / suites / tsdr / HBase / 070_Netflow.robot
index 5f9a7571da270d60f101476622a2d8ec609fd911..b580f43f8fdb89935e4e395e153711a0f9ce1b4b 100644 (file)
@@ -1,32 +1,37 @@
 *** Settings ***
-Documentation     Test suite for Hbase DataStore Netflow Stats Verification
-Suite Setup       Initialize Netflow
-Suite Teardown    Stop Tsdr Suite
-Library           SSHLibrary
-Library           Collections
-Library           String
-Library           ../../../libraries/Common.py
-Resource          ../../../libraries/KarafKeywords.robot
-Resource          ../../../libraries/TsdrUtils.robot
-Variables         ../../../variables/Variables.py
+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
+${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}' )" }
+    ${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}
@@ -36,7 +41,8 @@ Verification of Full Record Text for Netflow Dumps
     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}' )" }
+    ${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}
@@ -59,31 +65,43 @@ Verification of Full Record Text for Netflow Dumps
 
 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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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}' )" }
+    ${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.