def test_create_replicated_volume(self): bricks = ParamFactory().create_bricks() for _ in range(4): bricks.add_brick(ParamFactory().create_brick(TestVolume.host.id)) for _ in range(4): bricks.add_brick(ParamFactory().create_brick(TestVolume.host2.id)) volparams = ParamFactory().create_volume(bricks,'rep-vol',"REPLICATE") volparams.set_replica_count(8) vol = FixtureFactory(self.api).create_volume(TestVolume.cluster, volparams) vol.delete()