Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import unittest |
| 4 | |
| 5 | from framework import VppTestCase, VppTestRunner |
| 6 | from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath |
| 7 | |
| 8 | |
| 9 | class TestAPIClient(VppTestCase): |
| 10 | """ API Internal client Test Cases """ |
| 11 | |
| 12 | def test_client_unittest(self): |
| 13 | """ Internal API client """ |
| 14 | error = self.vapi.cli("test api internal") |
| 15 | if error: |
| 16 | self.logger.critical(error) |
| 17 | self.assertNotIn('failed', error) |
| 18 | |
| 19 | if __name__ == '__main__': |
| 20 | unittest.main(testRunner=VppTestRunner) |