summaryrefslogtreecommitdiffstats
path: root/test/test_api_client.py
blob: 200835b087819142ab62db7a66b1362b26091b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3

import unittest

from framework import VppTestCase, VppTestRunner
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath


class TestAPIClient(VppTestCase):
    """API Internal client Test Cases"""

    def test_client_unittest(self):
        """Internal API client"""
        error = self.vapi.cli("test api internal")
        if error:
            self.logger.critical(error)
            self.assertNotIn("failed", error)


if __name__ == "__main__":
    unittest.main(testRunner=VppTestRunner)