2019-10-31 13:31:07 -05:00
|
|
|
#!/usr/bin/env python3
|
2019-06-04 15:37:34 +00:00
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
2022-08-18 11:09:38 -04:00
|
|
|
from asfframework import VppTestCase, VppTestRunner
|
2019-06-04 15:37:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
class TestCrypto(VppTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Crypto Test Case"""
|
2019-06-04 15:37:34 +00:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(TestCrypto, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(TestCrypto, cls).tearDownClass()
|
|
|
|
|
|
|
|
def test_crypto(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Crypto Unit Tests"""
|
2019-06-04 15:37:34 +00:00
|
|
|
error = self.vapi.cli("test crypto")
|
|
|
|
|
|
|
|
if error:
|
|
|
|
self.logger.critical(error)
|
|
|
|
self.assertNotIn("FAIL", error)
|
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2019-06-04 15:37:34 +00:00
|
|
|
unittest.main(testRunner=VppTestRunner)
|