Merge "Fix race condition in tempest test"
This commit is contained in:
commit
d6637a43b8
@ -57,8 +57,10 @@ class SharesNFSTest(base.BaseSharesTest):
|
|||||||
self.assertFalse(share['is_public'])
|
self.assertFalse(share['is_public'])
|
||||||
|
|
||||||
# The 'status' of the share returned by the create API must be
|
# The 'status' of the share returned by the create API must be
|
||||||
# the default value - 'creating'.
|
# set and have value either 'creating' or
|
||||||
self.assertEqual('creating', share['status'])
|
# 'available' (if share creation is really fast as in
|
||||||
|
# case of Dummy driver).
|
||||||
|
self.assertIn(share['status'], ('creating', 'available'))
|
||||||
|
|
||||||
# Get share using v 2.1 - we expect key 'snapshot_support' to be absent
|
# Get share using v 2.1 - we expect key 'snapshot_support' to be absent
|
||||||
share_get = self.shares_v2_client.get_share(share['id'], version='2.1')
|
share_get = self.shares_v2_client.get_share(share['id'], version='2.1')
|
||||||
@ -178,8 +180,10 @@ class SharesNFSTest(base.BaseSharesTest):
|
|||||||
self.protocol, snapshot_id=snap["id"], cleanup_in_class=False)
|
self.protocol, snapshot_id=snap["id"], cleanup_in_class=False)
|
||||||
|
|
||||||
# The 'status' of the share returned by the create API must be
|
# The 'status' of the share returned by the create API must be
|
||||||
# the default value - 'creating'.
|
# set and have value either 'creating' or
|
||||||
self.assertEqual('creating', child['status'])
|
# 'available' (if share creation is really fast as in
|
||||||
|
# case of Dummy driver).
|
||||||
|
self.assertIn(child['status'], ('creating', 'available'))
|
||||||
|
|
||||||
# verify share, created from snapshot
|
# verify share, created from snapshot
|
||||||
get = self.shares_client.get_share(child["id"])
|
get = self.shares_client.get_share(child["id"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user