Add waiter to access create on resource setup
This commit is a follow-up action for [1], where we added a couple of waiters to ensure that the access rule status will be what we expect prior to running the tests. [1] https://review.opendev.org/c/openstack/manila-tempest-plugin/+/886635 Change-Id: I3458a7d2a1d05e295733c7a9a5ae302b1b76e144
This commit is contained in:
parent
b758fb49cc
commit
11618100f1
@ -20,6 +20,7 @@ from tempest.lib import exceptions as lib_exc
|
||||
from testtools import testcase as tc
|
||||
|
||||
from manila_tempest_tests.common import constants
|
||||
from manila_tempest_tests.common import waiters
|
||||
from manila_tempest_tests.tests.api import base
|
||||
from manila_tempest_tests import utils
|
||||
|
||||
@ -67,6 +68,9 @@ class AccessesMetadataNegativeTest(base.BaseSharesMixedTest):
|
||||
cls.access = cls.shares_v2_client.create_access_rule(
|
||||
cls.share["id"], cls.access_type, cls.access_to,
|
||||
'rw', metadata={u"key1": u"value1"})['access']
|
||||
waiters.wait_for_resource_status(
|
||||
cls.shares_v2_client, cls.share["id"], "active",
|
||||
resource_name='access_rule', rule_id=cls.access["id"])
|
||||
|
||||
@decorators.idempotent_id('d2d41db8-ae00-4641-a5ec-499cee1877f1')
|
||||
@tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)
|
||||
|
Loading…
x
Reference in New Issue
Block a user