'Test that get_all passes all parameters.
Since we have already tested all filters and parameters with
cluster_get method all we have to do for get_all is to check that we
are passing them to the query building method.'

@mock.patch('cinder.db.sqlalchemy.api._cluster_query')
def test_cluster_get_all_passes_parameters(self, cluster_query_mock):

    args = (mock.sentinel.read_deleted, mock.sentinel.get_services, mock.sentinel.services_summary, mock.sentinel.is_up, mock.sentinel.name_match_level)
    filters = {'session': mock.sentinel.session, 'name': mock.sentinel.name, 'disabled': mock.sentinel.disabled, 'disabled_reason': mock.sentinel.disabled_reason, 'race_preventer': mock.sentinel.race_preventer, 'last_heartbeat': mock.sentinel.last_heartbeat, 'num_hosts': mock.sentinel.num_hosts, 'num_down_hosts': mock.sentinel.num_down_hosts}
    db.cluster_get_all(self.ctxt, *args, **filters)
    cluster_query_mock.assert_called_once_with(self.ctxt, *args, **filters)
