'extend replicated volume.'

@mock.patch.object(eventlet, 'sleep')
def test_extend_replicated_volume(self, mock_sleep):

    self.configuration.replication_device = [TEST_REPLICATION_DEVICE]
    self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
    self.driver.setup(self.ctxt)
    vol_type = volume_types.create(self.ctxt, 'VOL_TYPE', {'replication_enabled': '<is>    True'})
    location = six.text_type({'vol_hex_id': TEST_VOLUME_ID})
    data = json.dumps({TEST_TARGET_DS8K_IP: {'vol_hex_id': TEST_VOLUME_ID}})
    volume = self._create_volume(volume_type_id=vol_type.id, provider_location=location, replication_driver_data=data)
    self.driver.extend_volume(volume, 2)
