Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | from framework import VppTestCase |
Andrew Yourtchenko | 8dc0d48 | 2021-01-29 13:17:19 +0000 | [diff] [blame] | 4 | from framework import tag_fixme_vpp_workers |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 5 | |
| 6 | |
Andrew Yourtchenko | 8dc0d48 | 2021-01-29 13:17:19 +0000 | [diff] [blame] | 7 | @tag_fixme_vpp_workers |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 8 | class 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) |