Skip metering functional tests when metering extension is not enabled

Change-Id: I9e3f41a2be56c1fd5fc3aff9af8e5ff5163087bd
This commit is contained in:
Slawek Kaplonski 2021-05-27 14:07:21 +02:00
parent 10227b681f
commit 439e290e95

View File

@ -64,9 +64,13 @@ class SimpleReadOnlyNeutronClientTest(base.ClientTestBase):
self.neutron('floatingip-list')
def test_neutron_meter_label_list(self):
if not self.is_extension_enabled('metering'):
self.skipTest('metering is not enabled')
self.neutron('meter-label-list')
def test_neutron_meter_label_rule_list(self):
if not self.is_extension_enabled('metering'):
self.skipTest('metering is not enabled')
self.neutron('meter-label-rule-list')
def test_neutron_net_external_list(self):