1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-09 03:11:34 +00:00
community.general/tests/integration/targets/xml/tasks
patchback[bot] 7f688e78bf
[PR #11959/d87a8a16 backport][stable-12] xml: fail for non-string values (#12001)
xml: fail for non-string `value`s (#11959)

* fix(xml): coerce boolean values to string with a warning

Fixes #7171



* test(xml): add integration tests for boolean value handling



* changelog: add fragment for PR 11959



* adjustments from review

* test(xml): update boolean-value integration tests to expect failure

Now that xml fails on non-string values, replace the old success-path
tests with failure assertions and add a positive test for quoted strings.
Remove the no-longer-needed result XML fixtures.



* adjustments from review

* fix(xml): correct boolean test assertions to match actual error message format



---------


(cherry picked from commit d87a8a167f)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 20:10:45 +02:00
..
main.yml [PR #11959/d87a8a16 backport][stable-12] xml: fail for non-string values (#12001) 2026-05-06 20:10:45 +02:00
test-add-children-elements-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-children-elements.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-children-from-groupvars.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-children-insertafter.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-children-insertbefore.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-children-with-attributes-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-children-with-attributes.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-element-implicitly.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-add-namespaced-children-elements.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-children-elements-xml.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-count-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-count.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-get-element-content-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-get-element-content.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-mutually-exclusive-attributes.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-pretty-print-only.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-pretty-print.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-attribute-nochange.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-attribute.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-element-nochange.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-element.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-namespaced-attribute-nochange.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-namespaced-attribute.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-namespaced-element-nochange.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-remove-namespaced-element.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-attribute-value-boolean.yml [PR #11959/d87a8a16 backport][stable-12] xml: fail for non-string values (#12001) 2026-05-06 20:10:45 +02:00
test-set-attribute-value-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-attribute-value.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-children-elements-level.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-children-elements-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-children-elements-value.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-children-elements.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-element-value-empty.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-element-value-unicode.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-element-value.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-namespaced-attribute-value.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-namespaced-children-elements.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-set-namespaced-element-value.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00
test-xmlstring.yml Adjust YAML files (#10233) 2025-06-15 09:13:16 +02:00