Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/xml/tasks/test-mutually-exclusive-attributes.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Setup test fixture
7 copy:
8 src: fixtures/ansible-xml-beers.xml
9 dest: /tmp/ansible-xml-beers.xml
10
11
12 - name: Specify both children to add and a value
13 xml:
14 path: /tmp/ansible-xml-beers.xml
15 add_children:
16 - child01
17 - child02
18 value: conflict!
19 register: module_output
20 ignore_errors: true
21
22 - name: Test expected result
23 assert:
24 that:
25 - module_output is not changed
26 - module_output is failed