Merge "[Tempest] Fix negative replication test" into stable/mitaka

This commit is contained in:
Jenkins 2016-07-25 21:07:20 +00:00 committed by Gerrit Code Review
commit 1454615794
1 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,11 @@ class ReplicationNegativeTest(base.BaseSharesMixedTest):
@test.attr(type=[base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND])
def test_try_add_replica_to_share_with_no_replication_share_type(self):
# Create share without replication type
share = self.create_share()
share_type = self.create_share_type(
data_utils.rand_name(constants.TEMPEST_MANILA_PREFIX),
extra_specs=self.add_required_extra_specs_to_dict(),
client=self.admin_client)["share_type"]
share = self.create_share(share_type_id=share_type["id"])
self.assertRaises(lib_exc.BadRequest,
self.create_share_replica,
share['id'],