Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
2 | |||||
3 | import unittest | ||||
4 | |||||
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame^] | 5 | from asfframework import VppAsfTestCase, VppTestRunner |
Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame] | 6 | |
7 | |||||
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame^] | 8 | class TestAPIClient(VppAsfTestCase): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 9 | """API Internal client Test Cases""" |
Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame] | 10 | |
11 | def test_client_unittest(self): | ||||
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 12 | """Internal API client""" |
Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame] | 13 | error = self.vapi.cli("test api internal") |
14 | if error: | ||||
15 | self.logger.critical(error) | ||||
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 16 | self.assertNotIn("failed", error) |
Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame] | 17 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 18 | |
19 | if __name__ == "__main__": | ||||
Ole Troan | 2ca88ff | 2022-01-27 16:25:43 +0100 | [diff] [blame] | 20 | unittest.main(testRunner=VppTestRunner) |