Switch to decorators.idempotent_id
test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.
In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id
Change-Id: I91d897b35aa1d4c00971d9f573db0a23e6af9e32
Related-Bug: 1616913
diff --git a/ceilometer/tests/tempest/api/test_telemetry_notification_api.py b/ceilometer/tests/tempest/api/test_telemetry_notification_api.py
index b0809ee..e38702a 100644
--- a/ceilometer/tests/tempest/api/test_telemetry_notification_api.py
+++ b/ceilometer/tests/tempest/api/test_telemetry_notification_api.py
@@ -16,6 +16,7 @@
from ceilometer.tests.tempest.api import base
from tempest import config
+from tempest.lib import decorators
from tempest import test
@@ -24,7 +25,7 @@
class TelemetryNotificationAPITest(base.BaseTelemetryTest):
- @test.idempotent_id('d7f8c1c8-d470-4731-8604-315d3956caae')
+ @decorators.idempotent_id('d7f8c1c8-d470-4731-8604-315d3956caae')
@test.services('compute')
def test_check_nova_notification(self):
@@ -36,7 +37,7 @@
self.await_samples(metric, query)
@test.attr(type="smoke")
- @test.idempotent_id('c240457d-d943-439b-8aea-85e26d64fe8f')
+ @decorators.idempotent_id('c240457d-d943-439b-8aea-85e26d64fe8f')
@test.services("image")
@testtools.skipIf(not CONF.image_feature_enabled.api_v2,
"Glance api v2 is disabled")
@@ -54,7 +55,7 @@
class TelemetryNotificationAdminAPITest(base.BaseTelemetryAdminTest):
- @test.idempotent_id('29604198-8b45-4fc0-8af8-1cae4f94ebea')
+ @decorators.idempotent_id('29604198-8b45-4fc0-8af8-1cae4f94ebea')
@test.services('compute')
def test_check_nova_notification_event_and_meter(self):
diff --git a/ceilometer/tests/tempest/scenario/test_object_storage_telemetry_middleware.py b/ceilometer/tests/tempest/scenario/test_object_storage_telemetry_middleware.py
index 0d99ee3..cb8ce74 100644
--- a/ceilometer/tests/tempest/scenario/test_object_storage_telemetry_middleware.py
+++ b/ceilometer/tests/tempest/scenario/test_object_storage_telemetry_middleware.py
@@ -17,6 +17,7 @@
from oslo_log import log as logging
from tempest.common.utils import data_utils
from tempest import config
+from tempest.lib import decorators
from tempest import test
from ceilometer.tests.tempest.service import client
@@ -138,7 +139,7 @@
obj_name)
return obj_name
- @test.idempotent_id('6d6b88e5-3e38-41bc-b34a-79f713a6cb85')
+ @decorators.idempotent_id('6d6b88e5-3e38-41bc-b34a-79f713a6cb85')
@test.services('object_storage')
def test_swift_middleware_notifies(self):
container_name = self.create_container()