Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
Pratikshya Prasai | 657bdf7 | 2022-08-18 11:09:38 -0400 | [diff] [blame^] | 3 | from asfframework import VppTestCase |
| 4 | from asfframework 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): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 9 | """Counters C Unit Tests""" |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 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): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 26 | """Simple Counter Expand""" |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 27 | error = self.vapi.cli("test counter simple expand") |
| 28 | |
| 29 | if error: |
| 30 | self.logger.critical(error) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 31 | self.assertNotIn("failed", error) |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 32 | |
| 33 | def test_counter_combined_expand(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 34 | """Combined Counter Expand""" |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 35 | error = self.vapi.cli("test counter combined expand") |
| 36 | |
| 37 | if error: |
| 38 | self.logger.critical(error) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 39 | self.assertNotIn("failed", error) |