mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Initial commit
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user