blob: 086189ae5170dfc70509d4b82ce6464650d09d19 [file] [log] [blame]
Miklos Tirpak38fae312021-01-12 15:14:02 +01001#!/usr/bin/env python3
2
Dave Wallace8800f732023-08-31 00:47:44 -04003from asfframework import VppAsfTestCase, tag_fixme_vpp_workers
Miklos Tirpak38fae312021-01-12 15:14:02 +01004
5
Andrew Yourtchenko8dc0d482021-01-29 13:17:19 +00006@tag_fixme_vpp_workers
Dave Wallace8800f732023-08-31 00:47:44 -04007class TestCounters(VppAsfTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02008 """Counters C Unit Tests"""
Miklos Tirpak38fae312021-01-12 15:14:02 +01009
10 @classmethod
11 def setUpClass(cls):
12 super(TestCounters, cls).setUpClass()
13
14 @classmethod
15 def tearDownClass(cls):
16 super(TestCounters, cls).tearDownClass()
17
18 def setUp(self):
19 super(TestCounters, self).setUp()
20
21 def tearDown(self):
22 super(TestCounters, self).tearDown()
23
24 def test_counter_simple_expand(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020025 """Simple Counter Expand"""
Miklos Tirpak38fae312021-01-12 15:14:02 +010026 error = self.vapi.cli("test counter simple expand")
27
28 if error:
29 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020030 self.assertNotIn("failed", error)
Miklos Tirpak38fae312021-01-12 15:14:02 +010031
32 def test_counter_combined_expand(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020033 """Combined Counter Expand"""
Miklos Tirpak38fae312021-01-12 15:14:02 +010034 error = self.vapi.cli("test counter combined expand")
35
36 if error:
37 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020038 self.assertNotIn("failed", error)