blob: d3fc56a52c00e5d366a945df6e173117991d3275 [file] [log] [blame]
Miklos Tirpak38fae312021-01-12 15:14:02 +01001#!/usr/bin/env python3
2
Pratikshya Prasai657bdf72022-08-18 11:09:38 -04003from asfframework import VppTestCase
4from asfframework import tag_fixme_vpp_workers
Miklos Tirpak38fae312021-01-12 15:14:02 +01005
6
Andrew Yourtchenko8dc0d482021-01-29 13:17:19 +00007@tag_fixme_vpp_workers
Miklos Tirpak38fae312021-01-12 15:14:02 +01008class TestCounters(VppTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02009 """Counters C Unit Tests"""
Miklos Tirpak38fae312021-01-12 15:14:02 +010010
11 @classmethod
12 def setUpClass(cls):
13 super(TestCounters, cls).setUpClass()
14
15 @classmethod
16 def tearDownClass(cls):
17 super(TestCounters, cls).tearDownClass()
18
19 def setUp(self):
20 super(TestCounters, self).setUp()
21
22 def tearDown(self):
23 super(TestCounters, self).tearDown()
24
25 def test_counter_simple_expand(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020026 """Simple Counter Expand"""
Miklos Tirpak38fae312021-01-12 15:14:02 +010027 error = self.vapi.cli("test counter simple expand")
28
29 if error:
30 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020031 self.assertNotIn("failed", error)
Miklos Tirpak38fae312021-01-12 15:14:02 +010032
33 def test_counter_combined_expand(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020034 """Combined Counter Expand"""
Miklos Tirpak38fae312021-01-12 15:14:02 +010035 error = self.vapi.cli("test counter combined expand")
36
37 if error:
38 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020039 self.assertNotIn("failed", error)