Skip metering functional tests when metering extension is not enabled
Change-Id: I9e3f41a2be56c1fd5fc3aff9af8e5ff5163087bd
This commit is contained in:
@@ -64,9 +64,13 @@ class SimpleReadOnlyNeutronClientTest(base.ClientTestBase):
|
|||||||
self.neutron('floatingip-list')
|
self.neutron('floatingip-list')
|
||||||
|
|
||||||
def test_neutron_meter_label_list(self):
|
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')
|
self.neutron('meter-label-list')
|
||||||
|
|
||||||
def test_neutron_meter_label_rule_list(self):
|
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')
|
self.neutron('meter-label-rule-list')
|
||||||
|
|
||||||
def test_neutron_net_external_list(self):
|
def test_neutron_net_external_list(self):
|
||||||
|
Reference in New Issue
Block a user