1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Catch more broader error messages. (#5212) (#5215)

(cherry picked from commit fa49051912)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-09-03 11:38:38 +02:00 committed by GitHub
parent 2f24bcef8f
commit 3710f28efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@
assert: assert:
that: that:
- eval_error is failed - eval_error is failed
- eval_error.msg.startswith("Caught \"'foo' is undefined\" while evaluating ") - eval_error.msg.startswith("Caught \"'foo' is undefined")
- name: "Test 5: same variable name reused" - name: "Test 5: same variable name reused"
debug: debug:
@ -151,7 +151,7 @@
assert: assert:
that: that:
- eval_error is failed - eval_error is failed
- eval_error.msg.startswith("Caught \"'x' is undefined\" while evaluating ") - eval_error.msg.startswith("Caught \"'x' is undefined")
- name: "Test 6: multi-value dict" - name: "Test 6: multi-value dict"
debug: debug: