2023-01-04 11:59:06 +01:00
|
|
|
# Copyright (c) 2023, Alexei Znamensky
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-01-07 10:21:13 +01:00
|
|
|
- name: test msimple conflict output (set a=80)
|
2023-01-04 11:59:06 +01:00
|
|
|
msimple:
|
|
|
|
a: 80
|
|
|
|
register: simple1
|
|
|
|
|
|
|
|
- name: assert simple1
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- simple1.a == 80
|
|
|
|
- simple1.abc == "abc"
|
|
|
|
- simple1 is not changed
|
|
|
|
- simple1.value is none
|
|
|
|
|
2023-01-07 10:21:13 +01:00
|
|
|
- name: test msimple conflict output 2
|
2023-01-04 11:59:06 +01:00
|
|
|
msimple:
|
|
|
|
a: 80
|
|
|
|
m: a message in a bottle
|
|
|
|
register: simple2
|
|
|
|
|
|
|
|
- name: assert simple2
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- simple1.a == 80
|
|
|
|
- simple1.abc == "abc"
|
|
|
|
- simple1 is not changed
|
|
|
|
- simple1.value is none
|
2023-01-07 10:21:13 +01:00
|
|
|
- >
|
|
|
|
"_msg" not in simple2
|
|
|
|
- >
|
|
|
|
simple2.msg == "a message in a bottle"
|
|
|
|
|
|
|
|
- name: test msimple 3
|
|
|
|
msimple:
|
|
|
|
a: 101
|
|
|
|
m: a message in a bottle
|
2023-02-15 22:55:23 +01:00
|
|
|
ignore_errors: true
|
2023-01-07 10:21:13 +01:00
|
|
|
register: simple3
|
|
|
|
|
|
|
|
- name: assert simple3
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- simple3.a == 101
|
|
|
|
- >
|
|
|
|
simple3.msg == "Module failed with exception: a >= 100"
|
|
|
|
- >
|
|
|
|
simple3._msg == "a message in a bottle"
|
|
|
|
- simple3.abc == "abc"
|
|
|
|
- simple3 is failed
|
|
|
|
- simple3 is not changed
|
|
|
|
- simple3.value is none
|