diff --git a/test/tasks/jail_absent.yml b/test/tasks/jail_absent.yml index 0880368..60c3499 100644 --- a/test/tasks/jail_absent.yml +++ b/test/tasks/jail_absent.yml @@ -37,7 +37,7 @@ fail_msg: "[ERR] {{ _test_name }}: Failed: {{ result.msg }}" success_msg: "[OK] {{ _test_name }}: Passed: {{ result.msg }}" that: - - _msg1 == result.msg or _msg2 == result.msg + - _msg1 in result.msg or _msg2 == result.msg - ansible.builtin.import_tasks: custom_stats_pass.yml rescue: - ansible.builtin.debug: diff --git a/test/vars/tests.d/jail_absent.yml b/test/vars/tests.d/jail_absent.yml index 06f38d8..3197810 100644 --- a/test/vars/tests.d/jail_absent.yml +++ b/test/vars/tests.d/jail_absent.yml @@ -8,7 +8,7 @@ jail_absent: debug: - var: result.msg assert: - - '_msg1 == result.msg or _msg2 == result.msg' + - '_msg1 in result.msg or _msg2 == result.msg' msg_err: '[ERR] {{ lbr }} _test_name {{ rbr }} failed. Missing: {{ lbr }} _msg1 {{ rbr }} or {{ lbr }} _msg2 {{ rbr }}' vars: _msg1: "\"Jail '{{ lbr }} jname {{ rbr }}' was destroyed., Jail {{ lbr }} jname {{ rbr }} removed from iocage_jails.\""