aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot/honeycomb/bgp.robot
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2019-04-09 08:12:05 +0200
committerMichal Cmarada <mcmarada@cisco.com>2019-04-09 08:12:05 +0200
commit40f43968c59bfc40d899cb87bc454af442f17191 (patch)
treeee49144208fdb92c0d70fce00cc88f4a76f624b7 /resources/libraries/robot/honeycomb/bgp.robot
parentaa25184f3f0925b789de52296053dd51e2bf8684 (diff)
update tests after ODL bump to Neon
Change-Id: Ia733ad304c51b28f2a945e570120821254077189 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
Diffstat (limited to 'resources/libraries/robot/honeycomb/bgp.robot')
-rw-r--r--resources/libraries/robot/honeycomb/bgp.robot22
1 files changed, 21 insertions, 1 deletions
diff --git a/resources/libraries/robot/honeycomb/bgp.robot b/resources/libraries/robot/honeycomb/bgp.robot
index aa96cc6538..b39055196a 100644
--- a/resources/libraries/robot/honeycomb/bgp.robot
+++ b/resources/libraries/robot/honeycomb/bgp.robot
@@ -48,7 +48,7 @@
| | [Arguments] | ${node}
| | ...
| | ${oper_data}= | Get Full BGP Configuration | ${node}
-| | Should be Empty | ${oper_data['bgp-openconfig-extensions:bgp']['neighbors']}
+| | Should be Empty | ${oper_data['bgp-openconfig-extensions:bgp']}
| Honeycomb adds BGP peer
| | [Documentation] | Uses Honeycomb API to add a BGP peer.
@@ -208,6 +208,26 @@
| | ... | ${node} | ${peer_address} | ${ip_version}
| | Should be Empty | ${oper_data['bgp-inet:${ip_version}-routes']}
+| No BGP routes should exist
+| | [Documentation] | Uses Honeycomb API to verify that no BGP routes\
+| | ... | exist under the specified peer.
+| | ...
+| | ... | *Arguments:*
+| | ... | - node - Information about a DUT node. Type: dictionary
+| | ... | - peer_address - IP address of the peer. Type: string
+| | ... | - ip_version - IP protocol version, ipv4 or ipv6. Type: string
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| No BGP routes should be configured \| ${nodes['DUT1']} \
+| | ... | \| 192.168.0.1 \| ipv4 \|
+| | ...
+| | [Arguments] | ${node} | ${peer_address} | ${ip_version}
+| | ...
+| | Run keyword and expect error | *Status code: 404*
+| | ... | Get All Peer Routes
+| | ... | ${node} | ${peer_address} | ${ip_version}
+
| BGP Loc-RIB table should include
| | [Documentation] | Uses Honeycomb API to retrieve local BGP RIB table\
| | ... | And verifies that it contains the specified entry.