2022-01-27 16:25:43 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
2022-08-18 11:09:38 -04:00
|
|
|
from asfframework import VppTestCase, VppTestRunner
|
2022-01-27 16:25:43 +01:00
|
|
|
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
|
|
|
|
|
|
|
|
|
|
|
|
class TestAPIClient(VppTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""API Internal client Test Cases"""
|
2022-01-27 16:25:43 +01:00
|
|
|
|
|
|
|
def test_client_unittest(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Internal API client"""
|
2022-01-27 16:25:43 +01:00
|
|
|
error = self.vapi.cli("test api internal")
|
|
|
|
if error:
|
|
|
|
self.logger.critical(error)
|
2022-04-26 19:02:15 +02:00
|
|
|
self.assertNotIn("failed", error)
|
2022-01-27 16:25:43 +01:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2022-01-27 16:25:43 +01:00
|
|
|
unittest.main(testRunner=VppTestRunner)
|