mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
@@ -469,8 +469,10 @@
|
||||
- '(pkgng_example8_invalid_annotation_failure.results | selectattr("changed") | list | count) == 0'
|
||||
# Invalid strings should always fail
|
||||
- '(pkgng_example8_invalid_annotation_failure.results | rejectattr("failed") | list | count) == 0'
|
||||
# Invalid strings should not cause an exception
|
||||
- '(pkgng_example8_invalid_annotation_failure.results | selectattr("exception", "defined") | list | count) == 0'
|
||||
# Invalid strings should not cause a module crash
|
||||
- '(pkgng_example8_invalid_annotation_failure.results | selectattr("module_stdout", "defined") | list | count) == 0'
|
||||
# Invalid strings should have a proper msg field
|
||||
- '(pkgng_example8_invalid_annotation_failure.results | selectattr("msg", "match", "failed to annotate zsh, invalid annotate string: .*") | list | count) == 4'
|
||||
# Verify annotations are unaffected
|
||||
- '(pkgng_example8_invalid_annotation_verify.stdout_lines | select("search", "(naked_string|invalid_operation|empty_first_tag|validsecond|notag)") | list | count) == 0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user