def _process_volume(self, operation, testcase,
                        attach_data_type=A.ATTACH_SUCCESS):
        volume = self._create_template_ebs_volume(operation)
        _wait_for_volume_state_change(operation, volume,
                                      self._custom_update(operation, testcase,
                                                          attach_data_type),
                                      TIMEOUT)
        return volume
Helper function to validate that performing given operation for given
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/functional/test_ebs.py/VolumeStateTransitionTests._process_volume