Merge "tempest: Allow to not run deprecated API tests"
diff --git a/ceilometer/tests/tempest/api/base.py b/ceilometer/tests/tempest/api/base.py
index 03e9acd..5239fb9 100644
--- a/ceilometer/tests/tempest/api/base.py
+++ b/ceilometer/tests/tempest/api/base.py
@@ -47,8 +47,9 @@
@classmethod
def skip_checks(cls):
super(BaseTelemetryTest, cls).skip_checks()
- if not CONF.service_available.ceilometer:
- raise cls.skipException("Ceilometer support is required")
+ if (not CONF.service_available.ceilometer or
+ not CONF.telemetry.deprecated_api_enabled):
+ raise cls.skipException("Ceilometer API support is required")
@classmethod
def setup_credentials(cls):
diff --git a/ceilometer/tests/tempest/config.py b/ceilometer/tests/tempest/config.py
index 6df0ff4..3749b97 100644
--- a/ceilometer/tests/tempest/config.py
+++ b/ceilometer/tests/tempest/config.py
@@ -36,4 +36,8 @@
cfg.BoolOpt('event_enabled',
default=True,
help="Runs Ceilometer event-related tests"),
+ cfg.BoolOpt('deprecated_api_enabled',
+ default=True,
+ help="Runs Ceilometer deprecated API tests"),
+
]