Commit 1ca449a1 authored by Nigel Kukard's avatar Nigel Kukard

tests: Added tests for direct

parent 78a5de46
Pipeline #4653 failed with stage
in 33 seconds
......@@ -601,3 +601,25 @@ class TestBirdClient():
}
assert result == correct_result, 'The show_route_table() result does not match what it should be'
def test_show_route_table_t_direct4(self):
"""Test show_route_table."""
birdclient = BirdClient()
result = birdclient.show_route_table('t_direct4', self._load_file('test_show_route_table_t_direct4.txt'))
correct_result = {
}
assert result == correct_result, 'The show_route_table() result does not match what it should be'
def test_show_route_table_t_direct6(self):
"""Test show_route_table."""
birdclient = BirdClient()
result = birdclient.show_route_table('t_direct6', self._load_file('test_show_route_table_t_direct6.txt'))
correct_result = {
}
assert result == correct_result, 'The show_route_table() result does not match what it should be'
0001 BIRD 2.0.6 ready.
1007-Table t_direct4_rip:
192.168.10.0/24 unicast [direct4_rip 2019-10-01 18:42:53] * (240)
dev eth1
0000
0001 BIRD 2.0.6 ready.
1007-Table t_direct6_rip:
fc10::/64 unicast [direct6_rip 2019-10-01 18:42:53] * (240)
dev eth1
0000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment