summaryrefslogtreecommitdiffstats
path: root/src/vnet/crypto/test/test_crypto.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2020-11-16 16:54:14 -0500
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2020-11-17 00:51:50 +0000
commitff1f089c3a395d9e519bbbf91e3a30737173b447 (patch)
tree5b1a8adb84dc5bf257918d818b4c11cada427dec /src/vnet/crypto/test/test_crypto.py
parentb5c6d08f037c277a961a40edaddf6a8d8cb9d55b (diff)
tests: move crypto tests to src/vnet/crypto/test
- Refactor make test code to be co-located with the vpp feature source code Type: test Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I089bda44c31cbb217132e5b385cd9ea96ea5239e
Diffstat (limited to 'src/vnet/crypto/test/test_crypto.py')
-rw-r--r--src/vnet/crypto/test/test_crypto.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/vnet/crypto/test/test_crypto.py b/src/vnet/crypto/test/test_crypto.py
new file mode 100644
index 00000000000..aa62dba1bab
--- /dev/null
+++ b/src/vnet/crypto/test/test_crypto.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python3
+
+import unittest
+
+from framework import VppTestCase, VppTestRunner
+
+
+class TestCrypto(VppTestCase):
+ """ Crypto Test Case """
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestCrypto, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(TestCrypto, cls).tearDownClass()
+
+ def test_crypto(self):
+ """ Crypto Unit Tests """
+ error = self.vapi.cli("test crypto")
+
+ if error:
+ self.logger.critical(error)
+ self.assertNotIn("FAIL", error)
+
+if __name__ == '__main__':
+ unittest.main(testRunner=VppTestRunner)