Renato Botelho do Couto | ead1e53 | 2019-10-31 13:31:07 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Neale Ranns | e6be702 | 2019-06-04 15:37:34 +0000 | [diff] [blame] | 2 | |
| 3 | import unittest |
| 4 | |
| 5 | from framework import VppTestCase, VppTestRunner |
| 6 | |
| 7 | |
| 8 | class TestCrypto(VppTestCase): |
| 9 | """ Crypto Test Case """ |
| 10 | |
| 11 | @classmethod |
| 12 | def setUpClass(cls): |
| 13 | super(TestCrypto, cls).setUpClass() |
| 14 | |
| 15 | @classmethod |
| 16 | def tearDownClass(cls): |
| 17 | super(TestCrypto, cls).tearDownClass() |
| 18 | |
| 19 | def test_crypto(self): |
| 20 | """ Crypto Unit Tests """ |
| 21 | error = self.vapi.cli("test crypto") |
| 22 | |
| 23 | if error: |
| 24 | self.logger.critical(error) |
| 25 | self.assertNotIn("FAIL", error) |
| 26 | |
| 27 | if __name__ == '__main__': |
| 28 | unittest.main(testRunner=VppTestRunner) |