blob: e4cb85621d0b63481713bf952246520aefd34600 [file] [log] [blame]
Miklos Tirpak38fae312021-01-12 15:14:02 +01001#!/usr/bin/env python3
2
3from framework import VppTestCase
Andrew Yourtchenko8dc0d482021-01-29 13:17:19 +00004from framework 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):
9 """ Counters C Unit Tests """
10
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):
26 """ Simple Counter Expand """
27 error = self.vapi.cli("test counter simple expand")
28
29 if error:
30 self.logger.critical(error)
31 self.assertNotIn('failed', error)
32
33 def test_counter_combined_expand(self):
34 """ Combined Counter Expand """
35 error = self.vapi.cli("test counter combined expand")
36
37 if error:
38 self.logger.critical(error)
39 self.assertNotIn('failed', error)