blob: 3f0fc8a10208ca61afe7ecac06508658ab71b4db [file] [log] [blame]
Ole Troan2ca88ff2022-01-27 16:25:43 +01001#!/usr/bin/env python3
2
3import unittest
4
Dave Wallace8800f732023-08-31 00:47:44 -04005from asfframework import VppAsfTestCase, VppTestRunner
Ole Troan2ca88ff2022-01-27 16:25:43 +01006
7
Dave Wallace8800f732023-08-31 00:47:44 -04008class TestAPIClient(VppAsfTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02009 """API Internal client Test Cases"""
Ole Troan2ca88ff2022-01-27 16:25:43 +010010
11 def test_client_unittest(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020012 """Internal API client"""
Ole Troan2ca88ff2022-01-27 16:25:43 +010013 error = self.vapi.cli("test api internal")
14 if error:
15 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020016 self.assertNotIn("failed", error)
Ole Troan2ca88ff2022-01-27 16:25:43 +010017
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020018
19if __name__ == "__main__":
Ole Troan2ca88ff2022-01-27 16:25:43 +010020 unittest.main(testRunner=VppTestRunner)