Merge "Remove aggressive assert from share server test"
This commit is contained in:
commit
feb0ec1cc9
@ -219,7 +219,7 @@ class ShareServersAdminTest(base.BaseSharesAdminTest):
|
|||||||
neutron_subnet_id=self.share_network['neutron_subnet_id'])
|
neutron_subnet_id=self.share_network['neutron_subnet_id'])
|
||||||
|
|
||||||
# Create server with share
|
# Create server with share
|
||||||
share = self.create_share(share_network_id=new_sn['id'])
|
self.create_share(share_network_id=new_sn['id'])
|
||||||
|
|
||||||
# List share servers, filtered by share_network_id
|
# List share servers, filtered by share_network_id
|
||||||
search_opts = {"share_network": new_sn["id"]}
|
search_opts = {"share_network": new_sn["id"]}
|
||||||
@ -238,7 +238,6 @@ class ShareServersAdminTest(base.BaseSharesAdminTest):
|
|||||||
shares = self.shares_client.list_shares_with_detail(params)
|
shares = self.shares_client.list_shares_with_detail(params)
|
||||||
for s in shares:
|
for s in shares:
|
||||||
self.assertEqual(new_sn["id"], s["share_network_id"])
|
self.assertEqual(new_sn["id"], s["share_network_id"])
|
||||||
self.assertTrue(any(share["id"] == s["id"] for s in shares))
|
|
||||||
|
|
||||||
# Delete shares, so we will have share server without shares
|
# Delete shares, so we will have share server without shares
|
||||||
for s in shares:
|
for s in shares:
|
||||||
|
Loading…
Reference in New Issue
Block a user