diff options
author | selias <samelias@cisco.com> | 2017-06-21 18:52:10 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-06-26 12:39:32 +0000 |
commit | b7f0c133f672b39b49e0480f71dd0629986bcf72 (patch) | |
tree | 5a8504f5cb2c3b2bddbbf3a8289ea5ce120bc1f4 /resources/libraries/robot/honeycomb/port_mirroring.robot | |
parent | 41bded220766aad6f805a9864ef677abe9ff9004 (diff) |
HC Test: improve functional suite setup and teardown
Restart the whole stack (VPP+Honeycomb+-ODL) in between test suites.
Add generic suite setup and suite teardown keywords for all func suites
Re-enable NSH_SFC suite, cleanup test failures
Change-Id: I71025b4ed3a7c4912dcd7b62aedef6082357990c
Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/robot/honeycomb/port_mirroring.robot')
-rw-r--r-- | resources/libraries/robot/honeycomb/port_mirroring.robot | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/resources/libraries/robot/honeycomb/port_mirroring.robot b/resources/libraries/robot/honeycomb/port_mirroring.robot index 63fbcea7a0..64faa5e233 100644 --- a/resources/libraries/robot/honeycomb/port_mirroring.robot +++ b/resources/libraries/robot/honeycomb/port_mirroring.robot @@ -13,7 +13,6 @@ *** Settings *** | Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords -| ... | WITH NAME | InterfaceAPI | Library | resources.libraries.python.telemetry.SPAN | Library | resources.libraries.python.InterfaceUtil | Library | resources.libraries.python.IPv4Util @@ -39,7 +38,7 @@ | | ... | \| {'iface-ref': 'local0', 'state': 'both'}] \| | | ... | | [Arguments] | ${node} | ${dst_interface} | @{src_interfaces} -| | InterfaceAPI.Configure interface SPAN +| | Configure interface SPAN | | ... | ${node} | ${dst_interface} | ${src_interfaces} | Interface SPAN Operational Data From Honeycomb Should Be @@ -58,7 +57,7 @@ | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| GigabitEthernet0/9/0 \| | | ... | | [Arguments] | ${node} | ${dst_interface} | @{src_interfaces} -| | ${data}= | InterfaceAPI.Get interface oper data | ${node} | ${dst_interface} +| | ${data}= | Get interface oper data | ${node} | ${dst_interface} | | ${data}= | Set Variable | | ... | ${data['v3po:span']['mirrored-interfaces']['mirrored-interface']} | | Sort list | ${data} @@ -118,7 +117,7 @@ | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| | | ... | | [Arguments] | ${node} | ${dst_interface} -| | InterfaceAPI.Configure interface SPAN | ${node} | ${dst_interface} +| | Configure interface SPAN | ${node} | ${dst_interface} | Interface SPAN Operational Data from Honeycomb should not exist | | [Documentation] | Retrieves interface operational data and verifies that\ @@ -132,7 +131,7 @@ | | ... | | ... | \| | | [Arguments] | ${node} | ${dst_interface} -| | ${data}= | InterfaceAPI.Get interface oper data | ${node} | ${dst_interface} +| | ${data}= | Get interface oper data | ${node} | ${dst_interface} | | Run keyword and expect error | *KeyError* | Set Variable | | ... | ${data['span']['mirrored-interfaces']['mirrored-interface']} @@ -169,7 +168,7 @@ | | ... | \| {'iface-ref': 'local0', 'state': 'both'}] \| | | ... | | [Arguments] | ${node} | ${dst_interface} | ${index} | @{src_interfaces} -| | InterfaceAPI.Configure sub interface SPAN +| | Configure sub interface SPAN | | ... | ${node} | ${dst_interface} | ${index} | ${src_interfaces} | Sub-Interface SPAN Operational Data from Honeycomb should be @@ -190,7 +189,7 @@ | | ... | \| GigabitEthernet0/9/0 \| | | ... | | [Arguments] | ${node} | ${dst_interface} | ${index} | @{src_interfaces} -| | ${data}= | InterfaceAPI.Get sub interface oper data +| | ${data}= | Get sub interface oper data | | ... | ${node} | ${dst_interface} | ${index} | | ${data}= | Set Variable | | ... | ${data['subinterface-span:span-state']['mirrored-interfaces']['mirrored-interface']} @@ -232,7 +231,7 @@ | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| ${1} \| | | ... | | [Arguments] | ${node} | ${dst_interface} | ${index} -| | InterfaceAPI.Configure sub interface SPAN +| | Configure sub interface SPAN | | ... | ${node} | ${dst_interface} | ${index} | Sub-Interface SPAN Operational Data from Honeycomb should not exist @@ -250,7 +249,7 @@ | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| ${1} \| | | .... | | [Arguments] | ${node} | ${dst_interface} | ${index} -| | ${data}= | InterfaceAPI.Get sub interface oper data +| | ${data}= | Get sub interface oper data | | ... | ${node} | ${dst_interface} | ${index} | | Run keyword and expect error | *KeyError* | Set Variable | | ... | ${data['subinterface-span:span-state']['mirrored-interfaces']['mirrored-interface']}
\ No newline at end of file |