---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

- import_tasks: setup_no_value.yml

- name: testing exclusion between state and list_all parameters
  git_config:
    list_all: true
    state: absent
  register: result
  ignore_errors: true

- name: assert git_config failed
  assert:
    that:
      - result is failed
      - "result.msg == 'parameters are mutually exclusive: list_all|state'"
...
