Merge "Remove aggressive assert from share server test"

This commit is contained in:
Jenkins 2016-02-26 15:39:05 +00:00 committed by Gerrit Code Review
commit feb0ec1cc9

View File

@ -219,7 +219,7 @@ class ShareServersAdminTest(base.BaseSharesAdminTest):
neutron_subnet_id=self.share_network['neutron_subnet_id'])
# 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
search_opts = {"share_network": new_sn["id"]}
@ -238,7 +238,6 @@ class ShareServersAdminTest(base.BaseSharesAdminTest):
shares = self.shares_client.list_shares_with_detail(params)
for s in shares:
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
for s in shares: