Add check for too_slow_to_test flag on swift notification test
This commit adds a missing check for the too_slow_to_test flag on the
swift notification scenario test. On stable icehouse, without the
performance improvements from juno, this test is basically a crapshoot.
Checking if the environment is capable of running this test reliably
needs to be ensured prior to running the test.
Change-Id: I1c69341bfbd9b7540ca9cacae32dbaef2c526f93
Partial-Bug: #1394774
diff --git a/tempest/scenario/test_swift_telemetry_middleware.py b/tempest/scenario/test_swift_telemetry_middleware.py
index e4b6cba..e8eb45c 100644
--- a/tempest/scenario/test_swift_telemetry_middleware.py
+++ b/tempest/scenario/test_swift_telemetry_middleware.py
@@ -51,6 +51,9 @@
skip_msg = ("%s skipped as ceilometer is not available" %
cls.__name__)
raise cls.skipException(skip_msg)
+ elif CONF.telemetry.too_slow_to_test:
+ skip_msg = "Ceilometer feature for fast work mysql is disabled"
+ raise cls.skipException(skip_msg)
super(TestSwiftTelemetry, cls).resource_setup()
cls.telemetry_client = cls.manager.telemetry_client