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 This commit correct the example tests in doc. Related-Bug: 1616913 Change-Id: I4c8eb461a04072403d5bf0e03cefae8df03999f0
This commit is contained in:
parent
9a466ed738
commit
1c7acc2401
@ -159,7 +159,7 @@ included below:
|
||||
cls.client = cls.os.zones_client
|
||||
|
||||
@test.attr(type='smoke')
|
||||
@test.idempotent_id('fbabd6af-238a-462e-b923-de4d736b90a7')
|
||||
@decorators.idempotent_id('fbabd6af-238a-462e-b923-de4d736b90a7')
|
||||
def test_create_zone(self):
|
||||
LOG.info('Create a zone')
|
||||
_, zone = self.client.create_zone()
|
||||
@ -193,7 +193,7 @@ credentials are available using the class level "credentials" property like so:
|
||||
cls.client = cls.os.zones_client
|
||||
cls.adm_client = cls.os_adm.zones_client
|
||||
|
||||
@test.idempotent_id('6477f92d-70ba-46eb-bd6c-fc50c405e222')
|
||||
@decorators.idempotent_id('6477f92d-70ba-46eb-bd6c-fc50c405e222')
|
||||
def test_get_other_tenant_zone(self):
|
||||
LOG.info('Create a zone as a user')
|
||||
_, zone = self.client.create_zone()
|
||||
@ -214,7 +214,7 @@ Several different test decorators are used within the test cases, this attempts
|
||||
to explain their purpose and correct usage.
|
||||
|
||||
|
||||
@test.idempotent_id
|
||||
@decorators.idempotent_id
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The `idempotent_id` decorator allows for tracking of tests even after they have
|
||||
@ -229,7 +229,7 @@ Example:
|
||||
.. code-block:: python
|
||||
|
||||
class ZonesTest(BaseZonesTest):
|
||||
@test.idempotent_id('fbabd6af-238a-462e-b923-de4d736b90a7')
|
||||
@decorators.idempotent_id('fbabd6af-238a-462e-b923-de4d736b90a7')
|
||||
def test_create_zone(self):
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user