vpp/test/test_bihash.py
juraj.linkes 8e26f6dbcf Test typo fixes
Renamed one acl testcase class which was copy-pasted and fixed one
inheritance issue.

Renamed one bihash testcase class.

Change-Id: I70d911ee7872d8d9ddba96c7f721dd099f0152f7
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
2018-09-27 12:08:02 +00:00

41 lines
987 B
Python

#!/usr/bin/env python
import unittest
from framework import VppTestCase, VppTestRunner
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
class TestBihash(VppTestCase):
""" Bihash Test Cases """
@classmethod
def setUpClass(cls):
super(TestBihash, cls).setUpClass()
def setUp(self):
super(TestBihash, self).setUp()
def tearDown(self):
super(TestBihash, self).tearDown()
def test_bihash_unittest(self):
""" Bihash Add/Del Test """
error = self.vapi.cli("test bihash ")
if error:
self.logger.critical(error)
self.assertEqual(error.find("failed"), -1)
def test_bihash_thread(self):
""" Bihash Thread Test """
error = self.vapi.cli("test bihash threads 2 nbuckets 64000")
if error:
self.logger.critical(error)
self.assertEqual(error.find("failed"), -1)
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)