mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
19
tests/integration/targets/xml/tasks/test-count-unicode.yml
Normal file
19
tests/integration/targets/xml/tasks/test-count-unicode.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: Setup test fixture
|
||||
copy:
|
||||
src: fixtures/ansible-xml-beers-unicode.xml
|
||||
dest: /tmp/ansible-xml-beers-unicode.xml
|
||||
|
||||
|
||||
- name: Count child element
|
||||
xml:
|
||||
path: /tmp/ansible-xml-beers-unicode.xml
|
||||
xpath: /business/beers/beer
|
||||
count: yes
|
||||
register: beers
|
||||
|
||||
- name: Test expected result
|
||||
assert:
|
||||
that:
|
||||
- beers.changed == false
|
||||
- beers.count == 2
|
Loading…
Add table
Add a link
Reference in a new issue