blob: 200835b087819142ab62db7a66b1362b26091b20 [file] [log] [blame]
Ole Troan2ca88ff2022-01-27 16:25:43 +01001#!/usr/bin/env python3
2
3import unittest
4
5from framework import VppTestCase, VppTestRunner
6from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
7
8
9class TestAPIClient(VppTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020010 """API Internal client Test Cases"""
Ole Troan2ca88ff2022-01-27 16:25:43 +010011
12 def test_client_unittest(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020013 """Internal API client"""
Ole Troan2ca88ff2022-01-27 16:25:43 +010014 error = self.vapi.cli("test api internal")
15 if error:
16 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020017 self.assertNotIn("failed", error)
Ole Troan2ca88ff2022-01-27 16:25:43 +010018
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020019
20if __name__ == "__main__":
Ole Troan2ca88ff2022-01-27 16:25:43 +010021 unittest.main(testRunner=VppTestRunner)