Tidy new and updated test suites. 11/35411/1
authorJozef Behran <jbehran@cisco.com>
Thu, 25 Feb 2016 16:21:45 +0000 (17:21 +0100)
committerJozef Behran <jbehran@cisco.com>
Thu, 25 Feb 2016 16:21:45 +0000 (17:21 +0100)
Change-Id: I46fd19561a150a74db3e1de413f5db71a25baf64
Signed-off-by: Jozef Behran <jbehran@cisco.com>
13 files changed:
csit/libraries/TsdrUtils.robot
csit/libraries/VtnMaKeywords.robot
csit/suites/groupbasedpolicy/GBPSFC/6-node/demo-asymmetric-chain/010_set_odl.robot
csit/suites/iotdm/basic/050_ContainerAttributeTest.robot
csit/suites/iotdm/basic/060_ConInAttributeTest.robot
csit/suites/iotdm/basic/070_DeleteTest.robot
csit/suites/iotdm/basic/080_FilterCriteriaTest.robot
csit/suites/iotdm/basic/090_AccessControlPolicyTest.robot
csit/suites/iotdm/basic/100_NodeTest.robot
csit/suites/snmp/snmp-get/010__snmp_get.robot
csit/suites/tsdr/Cassandra/050_SyslogTable.robot
csit/suites/tsdr/HBase/050_SyslogTable.robot
csit/suites/tsdr/HSQLDB/060_syslog_Collector.robot

index 02acab61b20bcbd4453581175f2c2f65e8f40160..ccf8b6e421945bd65203b1b6431a3c18685cfb98 100644 (file)
@@ -30,10 +30,9 @@ ${SNMP_COMMUNITY}    mib2dev\/if-mib
 &{HEADERS_QUERY}    Content-Type=application/json    Content-Type=application/json
 &{OPER_STATUS}    up=1    down=2    testing=3    unknown=4    dormant=5    notPresent=6    lowerLayerDown=7
 &{syslog_facility}    kern=0
-${MESSAGE}    Oct 29 18:10:31: ODL: %STKUNIT0-M:CP %IFMGR-5-ASTATE_UP: Changed interface Admin state to up: Te 0/0
+${MESSAGE}        Oct 29 18:10:31: ODL: %STKUNIT0-M:CP %IFMGR-5-ASTATE_UP: Changed interface Admin state to up: Te 0/0
 ${MESSAGE_PATTERN}    Changed interface
 
-
 *** Keywords ***
 Start Tsdr Suite
     [Arguments]    ${switch}=ovsk    ${switch_count}=3
index cdcdc0f8d727824b922f906371e03791e5a5a89b..0cfe2cc39d783d58bf740b9e6b0f919c2b949bde 100644 (file)
@@ -16,13 +16,13 @@ ${VTN_INVENTORY}    restconf/operational/vtn-inventory:vtn-nodes
 ${DUMPFLOWS_OF10}    dpctl dump-flows -O OpenFlow10
 ${DUMPFLOWS_OF13}    dpctl dump-flows -O OpenFlow13
 ${index}          7
-@{inet_actions}    nw_src=10.0.0.1   nw_dst=10.0.0.3
-@{BRIDGE1_DATAFLOW}    "reason":"PORTMAPPED"    "tenant-name":"Tenant1"   "bridge-name":"vBridge1"    "interface-name":"if2"
-@{BRIDGE2_DATAFLOW}    "reason":"PORTMAPPED"    "tenant-name":"Tenant1"   "bridge-name":"vBridge2"    "interface-name":"if3"
+@{inet_actions}    nw_src=10.0.0.1    nw_dst=10.0.0.3
+@{BRIDGE1_DATAFLOW}    "reason":"PORTMAPPED"    "tenant-name":"Tenant1"    "bridge-name":"vBridge1"    "interface-name":"if2"
+@{BRIDGE2_DATAFLOW}    "reason":"PORTMAPPED"    "tenant-name":"Tenant1"    "bridge-name":"vBridge2"    "interface-name":"if3"
 ${vlanmap_bridge1}    200
 ${vlanmap_bridge2}    300
-@{VLANMAP_BRIDGE1_DATAFLOW}    "reason":"VLANMAPPED"   "tenant-name":"Tenant1"    "bridge-name":"vBridge1_vlan"
-@{VLANMAP_BRIDGE2_DATAFLOW}    "reason":"VLANMAPPED"   "tenant-name":"Tenant1"    "bridge-name":"vBridge2_vlan"
+@{VLANMAP_BRIDGE1_DATAFLOW}    "reason":"VLANMAPPED"    "tenant-name":"Tenant1"    "bridge-name":"vBridge1_vlan"
+@{VLANMAP_BRIDGE2_DATAFLOW}    "reason":"VLANMAPPED"    "tenant-name":"Tenant1"    "bridge-name":"vBridge2_vlan"
 ${out_before_pathpolicy}    output:2
 ${out_after_pathpolicy}    output:3
 ${pathpolicy_topo_13}    sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --custom topo-3sw-2host_multipath.py --topo pathpolicytopo --switch ovsk,protocols=OpenFlow13
index cb18cb6175af8d96c1c4f70a28585b66db398708..568ac597fa6e247d11052137d2187949e010962b 100644 (file)
@@ -16,8 +16,6 @@ Put Service Functions
     ${edited_json}    Replace String    ${json_to_edit}    _SF1    ${GBPSFC3}
     ${edited_json}    Replace String    ${edited_json}    _SF2    ${GBPSFC5}
     Add Elements To URI And Verify    ${SF_PATH}    ${edited_json}    ${HEADERS_YANG_JSON}
-    
-
 
 Put Service Function Forwarders
     [Documentation]    Register Service Function Forwarders to ODL
@@ -65,4 +63,4 @@ Register Endpoints
     : FOR    ${endpoint_file}    IN    @{endpoint_files}
     \    Post Elements To URI From File    ${ENDPOINT_REG_PATH}    ${endpoint_file}    ${HEADERS_YANG_JSON}
     ${resp}    RequestsLibrary.Get Request    session    ${ENDPOINTS_OPER_PATH}
-    Log    ${resp.content}
\ No newline at end of file
+    Log    ${resp.content}
index a8aec5a3c5718083c9f6539935605a6a0e10770e..16eba2eaec7660c8ad1efff13ce17dfbc0f6f602 100644 (file)
@@ -33,8 +33,6 @@ Set Suite Variable
     Should Contain    ${text}    "lt":    "pi":    "st":
     Should Contain    ${text}    "ct":    "ty":3    "cbs"
     Should Not Contain    S{text}    "lbl"    "creator"    "or"
-
-
     #==================================================
     #    Container Optional Attribute Test (Allowed)
     #==================================================
index a4b4180a34be284715d56ff286d9a71a6f574fa0..4a4be3fc6066801e7fac98f9609b08426327806a 100644 (file)
@@ -213,7 +213,7 @@ Delete the ContenInstance 2.33
     ${random} =    Evaluate    random.randint(0,50)    modules=random
     ${attr} =    Set Variable    "cnf": "1","or": "http://hey/you","con":"${random}"
     Create Resource    ${iserver}    ${container}    ${rt_contentInstance}    ${attr}
-    ${latestCon} =    Get Latest     ${container}
+    ${latestCon} =    Get Latest    ${container}
     Should Be Equal As Strings    ${random}    ${latestCon}
 
 4.12 GetLatest Loop 50 times Test
@@ -262,5 +262,5 @@ Latest Con Test
     ${random} =    Evaluate    random.randint(0,50)    modules=random
     ${attr} =    Set Variable    "cnf": "1","or": "http://hey/you","con":"${random}"
     Create Resource    ${iserver}    ${resourceURI}    ${rt_contentInstance}    ${attr}
-    ${latestCon} =    Get Latest     ${resourceURI}
+    ${latestCon} =    Get Latest    ${resourceURI}
     Should Be Equal As Strings    ${random}    ${latestCon}
index a8de4ffc6e5fbe2a399e7857429e8de49eca8a40..1b9be44e4d7b25d7ce811ce30897050d13ab095c 100644 (file)
@@ -409,7 +409,6 @@ Response Is Correct
     ${status_code} =    Status Code    ${r}
     Should Be True    199 < ${status_code} < 299
 
-
 Cannot Retrieve Error
     [Arguments]    ${uri}
     ${error} =    Run Keyword And Expect Error    *    Retrieve Resource    ${iserver}    ${uri}
index 9774e6522d16e70427cea893a4d6c8ac0e37467f..9a2050269820e2da6de3757ce3e665b90defed2a 100644 (file)
@@ -114,7 +114,6 @@ Create the tree
 
 6. stateTagBigger
     ${r} =    Retrieve Resource With Command    ${iserver}    InCSE1/Container3    rcn=4&stb=1
-
     ${count} =    Get Length    ${r.json()['m2m:cnt']['ch']}
     Should Be Equal As Integers    ${count}    2
     # 7. expireBefore
@@ -142,7 +141,6 @@ Create the tree
     Should Be Equal As Integers    ${count}    1
 
 2.1 And Test - labels
-
     ${r} =    Retrieve Resource With Command    ${iserver}    InCSE1    fu=1&rcn=4&sts=4&lbl=contentInstanceUnderContainerContainer&lbl=underCSE
     ${count} =    Get Length    ${r.json()}
     Should Be Equal As Integers    ${count}    6
index 1eeac91b37a953a8d00c0acc36364ff214f1021f..b023d00877c6f4afb6dfeead1681f0370084c32c 100644 (file)
@@ -10,7 +10,7 @@ ${httppass}       admin
 ${rt_ae}          2
 ${rt_container}    3
 ${rt_contentInstance}    4
-${rt_acp}    1
+${rt_acp}         1
 
 *** Test Cases ***
 Set Suite Variable
@@ -51,9 +51,10 @@ Set Suite Variable
     Should Contain    ${text}    "ri":    "pi":
 
 1.3 Create ACP with invalid acip(ipv4)
-    [documentation]    input a invalid ipv4 address and expect error
+    [Documentation]    input a invalid ipv4 address and expect error
     ${attr} =    Set Variable    "pv":{"acr":[{"acor" : ["111","222"],"acop":35,"acco":[{"acip":{"ipv4":["127.0.01"]}}]},{"acor" : ["111","222"],"acop":35}]},"pvs":{"acr":[{"acor" : ["111","222"],"acop":7},{"acor" : ["111","222"],"acop":9}]},"rn":"Acp3"
-    ${error}=    Run Keyword And Expect Error    *    Create Resource    ${iserver}    InCSE1    ${rt_acp}    ${attr}
+    ${error}=    Run Keyword And Expect Error    *    Create Resource    ${iserver}    InCSE1    ${rt_acp}
+    ...    ${attr}
     Should Start with    ${error}    Cannot create this resource [400]
     Should Contain    ${error}    not a valid Ipv4 address
 
@@ -68,13 +69,13 @@ Set Suite Variable
     Should Contain    ${text}    "ri":    "pi":
 
 1.5 Create ACP with invalid acip(ipv6)
-    [documentation]    input a invalid Ipv6 address and expect error
+    [Documentation]    input a invalid Ipv6 address and expect error
     ${attr} =    Set Variable    "pv":{"acr":[{"acor" : ["111","222"],"acop":35,"acco":[{"acip":{"ipv6":["2001:db8:0:0:0:ff00:42"]}}]},{"acor" : ["111","222"],"acop":35}]},"pvs":{"acr":[{"acor" : ["111","222"],"acop":7},{"acor" : ["111","222"],"acop":9}]},"rn":"Acp3"
-    ${error}=    Run Keyword And Expect Error    *    Create Resource    ${iserver}    InCSE1    ${rt_acp}    ${attr}
+    ${error}=    Run Keyword And Expect Error    *    Create Resource    ${iserver}    InCSE1    ${rt_acp}
+    ...    ${attr}
     Should Start with    ${error}    Cannot create this resource [400]
     Should Contain    ${error}    not a valid Ipv6 address
 
-
 *** Keywords ***
 Connect And Create Resource
     [Arguments]    ${targetURI}    ${resoutceType}    ${attr}    ${resourceName}=${EMPTY}
@@ -90,4 +91,4 @@ Response Is Correct
     ${json} =    Json    ${r}
     LOG    ${json}
     ${status_code} =    Status Code    ${r}
-    Should Be True    199 < ${status_code} < 299
\ No newline at end of file
+    Should Be True    199 < ${status_code} < 299
index e578c6379aa95d8b838cbfc4e2318efcc3e8303d..2a64e72acac9fc568ff6d3a6dec7a49a0e5f7ab9 100644 (file)
@@ -10,8 +10,8 @@ ${httppass}       admin
 ${rt_ae}          2
 ${rt_container}    3
 ${rt_contentInstance}    4
-${rt_acp}    1
-${rt_node}    14
+${rt_acp}         1
+${rt_node}        14
 
 *** Test Cases ***
 Set Suite Variable
@@ -34,4 +34,4 @@ Set Suite Variable
     Should Contain    ${text}    "ri":    "rn":    "cni"
     Should Contain    ${text}    "lt":    "pi":    "st":
     Should Contain    ${text}    "ct":    "rty":3    "cbs"
-    Should Not Contain    S{text}    "lbl"    "creator"    "or"
\ No newline at end of file
+    Should Not Contain    S{text}    "lbl"    "creator"    "or"
index a9d4f5ee72e4c9e31d693d7b02201131cd247b32..74c0c145a66e6e8d0cd5a2657880103470bee324 100644 (file)
@@ -19,4 +19,4 @@ List connections
     [Tags]    SNMP get
     ${resp}    Post    session    ${REST_CONTEXT_SNMP_SET}    data={"input": {"ip-address": "${DEVICE_IP}","oid" : "1.3.6.1.2.1.1.1.0","get-type" : "GET-BULK","community" : "private" } }
     Should Be Equal As Strings    ${resp.status_code}    200
-    [Teardown]    Report_Failure_Due_To_Bug    5360
\ No newline at end of file
+    [Teardown]    Report_Failure_Due_To_Bug    5360
index 6271a6706055ad2f1c3bdaf80cd488c962e4f654..a82b120fb62b7c5094c5ee2c15deba32d28a7184 100644 (file)
@@ -9,7 +9,6 @@ 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
@@ -19,21 +18,20 @@ Verification of TSDR Cassandra Feature Installation
 
 Sending syslog to ODL Syslog collector using Logger command
     [Documentation]    Sending Syslogs to collector.
-    :FOR    ${key}    IN ZIP   &{syslog_facility}
+    : FOR    ${key}    IN ZIP    &{syslog_facility}
     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
     \    ${f_value}=    Evaluate    ${value} * 8
     \    Generate Syslog    ${f_value}
 
 Verifying TSDR Data Store For Syslog Entries
     [Documentation]    Verifying if syslogs is getting stored.
-    Copy TSDR tables     val_table=metriclog
+    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}
+    : 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
-
index dd0d8d97dff7804047ba8c94003e8303af4382ae..8ad0f10e9b11b96a000d54f9b12a44bde811a7a6 100644 (file)
@@ -9,7 +9,6 @@ Resource          ../../../libraries/TsdrUtils.robot
 Variables         ../../../variables/Variables.py
 
 *** Test Cases ***
-
 Verification of TSDR HBase Feature Installation
     [Documentation]    Install and Verify the TSDR Cassandra Syslog Features
     Wait Until Keyword Succeeds    24x    10 sec    Check Karaf Log Has Messages    tsdr.syslog
@@ -19,15 +18,13 @@ Verification of TSDR HBase Feature Installation
 Sending syslog to ODL Syslog collector using Logger command
     [Documentation]    Verifying if syslogs is collected and getting stored.
     Query the Data from HBaseClient    truncate 'SYSLOG'
-    :FOR    ${key}    IN ZIP   &{syslog_facility}
+    : FOR    ${key}    IN ZIP    &{syslog_facility}
     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
     \    ${f_value}=    Evaluate    ${value} * 8
     \    Generate Syslog    ${f_value}
-
     ${output}=    Query the Data from HBaseClient    scan 'SYSLOG'
     Should Contain X Times    ${output}    ${MESSAGE_PATTERN}    1
-    :FOR    ${key}    IN ZIP   &{syslog_facility}
+    : FOR    ${key}    IN ZIP    &{syslog_facility}
     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
     \    ${f_value}=    Evaluate    ${value} * 8
     \    Should Match    ${output}    *${f_value}>*
-
index 790b8c0d5832312658447998fec79fc85fe10ad4..fbd14ec6af9aa3d77de2b4c1be3f4966ca17c7ae 100644 (file)
@@ -9,7 +9,6 @@ Resource          ../../../libraries/TsdrUtils.robot
 Variables         ../../../variables/Variables.py
 
 *** Test Cases ***
-
 Verification of TSDR HSQLDB Feature Installation
     [Documentation]    Install and Verify the TSDR Cassandra Syslog Features
     COMMENT    Install a Feature    odl-tsdr-hsqldb-all    ${CONTROLLER}    ${KARAF_SHELL_PORT}    60
@@ -18,10 +17,9 @@ Verification of TSDR HSQLDB Feature Installation
     Verify Feature Is Installed    odl-tsdr-hsqldb
     Verify Feature Is Installed    odl-tsdr-syslog-collector
 
-
 Sending syslog to ODL Syslog collector using Logger command
     [Documentation]    Verifying if syslogs is getting generated.
-    :FOR    ${key}    IN ZIP   &{syslog_facility}
+    : FOR    ${key}    IN ZIP    &{syslog_facility}
     \    ${value}=    Get From Dictionary    ${syslog_facility}    ${key}
     \    ${f_value}=    Evaluate    ${value} * 8
     \    Generate Syslog    ${f_value}
@@ -30,6 +28,5 @@ Sending syslog to ODL Syslog collector using Logger command
 Verifying TSDR Data Store For Syslog Entries
     [Documentation]    Verifying if syslogs is getting stored.
     ${output}=    Issue Command On Karaf Console    tsdr:list SYSLOG
-    Should Contain X Times    ${output}    SYSLOG   1
+    Should Contain X Times    ${output}    SYSLOG    1
     Should Contain    ${output}    ${MESSAGE_PATTERN}
-