Renato Botelho do Couto | ead1e53 | 2019-10-31 13:31:07 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 2 | |
| 3 | import unittest |
| 4 | |
Andrew Yourtchenko | 8dc0d48 | 2021-01-29 13:17:19 +0000 | [diff] [blame] | 5 | from framework import tag_fixme_vpp_workers |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 6 | from framework import VppTestCase, VppTestRunner |
| 7 | |
Klement Sekera | 1a419f2 | 2016-12-12 02:55:06 +0100 | [diff] [blame] | 8 | |
Andrew Yourtchenko | 8dc0d48 | 2021-01-29 13:17:19 +0000 | [diff] [blame] | 9 | @tag_fixme_vpp_workers |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 10 | class TestFIB(VppTestCase): |
| 11 | """ FIB Test Case """ |
| 12 | |
Paul Vinciguerra | 7f9b7f9 | 2019-03-12 19:23:27 -0700 | [diff] [blame] | 13 | @classmethod |
| 14 | def setUpClass(cls): |
| 15 | super(TestFIB, cls).setUpClass() |
| 16 | |
| 17 | @classmethod |
| 18 | def tearDownClass(cls): |
| 19 | super(TestFIB, cls).tearDownClass() |
| 20 | |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 21 | def test_fib(self): |
| 22 | """ FIB Unit Tests """ |
| 23 | error = self.vapi.cli("test fib") |
| 24 | |
Neale Ranns | 3bab8f9 | 2019-12-04 06:11:00 +0000 | [diff] [blame] | 25 | # shameless test of CLIs to bump lcov results... |
| 26 | # no i mean to ensure they don't crash |
| 27 | self.logger.info(self.vapi.cli("sh fib source")) |
| 28 | self.logger.info(self.vapi.cli("sh fib source prio")) |
| 29 | self.logger.info(self.vapi.cli("sh fib memory")) |
| 30 | self.logger.info(self.vapi.cli("sh fib entry")) |
| 31 | self.logger.info(self.vapi.cli("sh fib entry 0")) |
| 32 | self.logger.info(self.vapi.cli("sh fib entry 10000")) |
| 33 | self.logger.info(self.vapi.cli("sh fib entry-delegate")) |
| 34 | self.logger.info(self.vapi.cli("sh fib paths")) |
| 35 | self.logger.info(self.vapi.cli("sh fib paths 0")) |
| 36 | self.logger.info(self.vapi.cli("sh fib paths 10000")) |
| 37 | self.logger.info(self.vapi.cli("sh fib path-list")) |
| 38 | self.logger.info(self.vapi.cli("sh fib path-list 0")) |
| 39 | self.logger.info(self.vapi.cli("sh fib path-list 10000")) |
| 40 | self.logger.info(self.vapi.cli("sh fib walk")) |
| 41 | self.logger.info(self.vapi.cli("sh fib uRPF")) |
| 42 | |
Klement Sekera | 1a419f2 | 2016-12-12 02:55:06 +0100 | [diff] [blame] | 43 | if error: |
| 44 | self.logger.critical(error) |
Paul Vinciguerra | 9a6dafd | 2019-03-06 15:11:28 -0800 | [diff] [blame] | 45 | self.assertNotIn("Failed", error) |
Neale Ranns | 0ebe8d7 | 2016-12-08 19:48:11 +0000 | [diff] [blame] | 46 | |
| 47 | if __name__ == '__main__': |
| 48 | unittest.main(testRunner=VppTestRunner) |