blob: 97744c6ba1b0fd7ff63fca87585e82a8436197c0 [file] [log] [blame]
Ole Troan2ca88ff2022-01-27 16:25:43 +01001#!/usr/bin/env python3
2
3import unittest
4
Pratikshya Prasai657bdf72022-08-18 11:09:38 -04005from asfframework import VppTestCase, VppTestRunner
Ole Troan2ca88ff2022-01-27 16:25:43 +01006from 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)