2022-01-27 16:25:43 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
2023-08-31 00:47:44 -04:00
|
|
|
from asfframework import VppAsfTestCase, VppTestRunner
|
2022-01-27 16:25:43 +01:00
|
|
|
|
|
|
|
|
2023-08-31 00:47:44 -04:00
|
|
|
class TestAPIClient(VppAsfTestCase):
|
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)
|