'Test single volume replica. Happy path test case.'

@mock.patch('cinder.volume.drivers.veritas.vrtshyperscale.HyperScaleDriver._get_volume_metadata')
@mock.patch('cinder.volume.drivers.veritas.vrtshyperscale.HyperScaleDriver._get_replicas')
@mock.patch('cinder.volume.drivers.veritas.vrtshyperscale.HyperScaleDriver._get_volume_details_for_create_volume')
@mock.patch('cinder.volume.drivers.veritas.utils.message_data_plane')
@mock.patch('cinder.volume.api.API.update_volume_metadata')
def test_create_volume_single_replicas(self, mock_uvm, mock_mdp, mock_gvdfcv, mock_get_replicas, mock_gvm):

    mock_gvm.return_value = _stub_volume()
    mock_get_replicas.return_value = 1
    mock_gvdfcv.return_value = _stub_volume()
    mock_mdp.return_value = ('', None)
    mock_uvm.return_value = {}
    expected_result = {'provider_location': 'hyperscale-sv:/hyperscale', 'metadata': mock_gvm.return_value}
    actual_result = self.driver.create_volume(self.volume)
    self.assertDictEqual(actual_result, expected_result)
