2021-01-12 15:14:02 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2022-08-18 11:09:38 -04:00
|
|
|
from asfframework import VppTestCase
|
|
|
|
from asfframework import tag_fixme_vpp_workers
|
2021-01-12 15:14:02 +01:00
|
|
|
|
|
|
|
|
2021-01-29 13:17:19 +00:00
|
|
|
@tag_fixme_vpp_workers
|
2021-01-12 15:14:02 +01:00
|
|
|
class TestCounters(VppTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Counters C Unit Tests"""
|
2021-01-12 15:14:02 +01:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(TestCounters, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(TestCounters, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(TestCounters, self).setUp()
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
super(TestCounters, self).tearDown()
|
|
|
|
|
|
|
|
def test_counter_simple_expand(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Simple Counter Expand"""
|
2021-01-12 15:14:02 +01:00
|
|
|
error = self.vapi.cli("test counter simple expand")
|
|
|
|
|
|
|
|
if error:
|
|
|
|
self.logger.critical(error)
|
2022-04-26 19:02:15 +02:00
|
|
|
self.assertNotIn("failed", error)
|
2021-01-12 15:14:02 +01:00
|
|
|
|
|
|
|
def test_counter_combined_expand(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Combined Counter Expand"""
|
2021-01-12 15:14:02 +01:00
|
|
|
error = self.vapi.cli("test counter combined expand")
|
|
|
|
|
|
|
|
if error:
|
|
|
|
self.logger.critical(error)
|
2022-04-26 19:02:15 +02:00
|
|
|
self.assertNotIn("failed", error)
|