&{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
${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
${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
: 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}
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)
#==================================================
${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
${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}
${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}
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
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
${rt_ae} 2
${rt_container} 3
${rt_contentInstance} 4
-${rt_acp} 1
+${rt_acp} 1
*** Test Cases ***
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
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}
${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
${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
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"
[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
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
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
-
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
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}>*
-
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
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}
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}
-