|
18 | 18 | from openstackclient.tests.functional.network.v2 import common |
19 | 19 |
|
20 | 20 |
|
21 | | -class NetworkQosRuleTestsMinimumBandwidth(common.NetworkTests): |
| 21 | +class NetworkQosTests(common.NetworkTests): |
| 22 | + def setUp(self): |
| 23 | + super().setUp() |
| 24 | + |
| 25 | + if not self.is_extension_enabled("qos"): |
| 26 | + self.skipTest("No qos extension present") |
| 27 | + |
| 28 | + |
| 29 | +class NetworkQosRuleTestsMinimumBandwidth(NetworkQosTests): |
22 | 30 | """Functional tests for QoS minimum bandwidth rule""" |
23 | 31 |
|
24 | 32 | def setUp(self): |
@@ -93,7 +101,7 @@ def test_qos_rule_set(self): |
93 | 101 | self.assertEqual(7500, cmd_output['min_kbps']) |
94 | 102 |
|
95 | 103 |
|
96 | | -class NetworkQosRuleTestsMinimumPacketRate(common.NetworkTests): |
| 104 | +class NetworkQosRuleTestsMinimumPacketRate(NetworkQosTests): |
97 | 105 | """Functional tests for QoS minimum packet rate rule""" |
98 | 106 |
|
99 | 107 | def setUp(self): |
@@ -169,7 +177,7 @@ def test_qos_rule_set(self): |
169 | 177 | self.assertEqual('any', cmd_output['direction']) |
170 | 178 |
|
171 | 179 |
|
172 | | -class NetworkQosRuleTestsDSCPMarking(common.NetworkTests): |
| 180 | +class NetworkQosRuleTestsDSCPMarking(NetworkQosTests): |
173 | 181 | """Functional tests for QoS DSCP marking rule""" |
174 | 182 |
|
175 | 183 | def setUp(self): |
@@ -241,7 +249,7 @@ def test_qos_rule_set(self): |
241 | 249 | self.assertEqual(32, cmd_output['dscp_mark']) |
242 | 250 |
|
243 | 251 |
|
244 | | -class NetworkQosRuleTestsBandwidthLimit(common.NetworkTests): |
| 252 | +class NetworkQosRuleTestsBandwidthLimit(NetworkQosTests): |
245 | 253 | """Functional tests for QoS bandwidth limit rule""" |
246 | 254 |
|
247 | 255 | def setUp(self): |
|
0 commit comments