mirror of
https://github.com/ansible/ansible.git
synced 2026-08-01 00:34:56 +02:00
Resolve misc DTFIX0/1 (#85247)
* complete DTFIX0 after eval * sunder-prefix Marker.concrete_subclasses * re-home Jinja plugin decorators public API * low-hanging/already fixed DTFIX cases Co-authored-by: Matt Clay <matt@mystile.com> --------- Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
@@ -44,15 +44,27 @@
|
||||
- that: 1 == 1
|
||||
- that: a_var == "one"
|
||||
- that: '{{ a_var == "one" }}'
|
||||
# DTFIX1: loops are not lazily templated, so this is not possible today, but could be in the future
|
||||
# - that: |
|
||||
# "hi mom" == '{{ "hi mom" }}'
|
||||
- that:
|
||||
- 1 == 1
|
||||
- 2 == 2
|
||||
- a_var == "one"
|
||||
- '{{ a_var == "one" }}'
|
||||
|
||||
- name: arg splat loopable failure case
|
||||
assert: '{{ item }}'
|
||||
args:
|
||||
quiet: yes
|
||||
ignore_errors: true
|
||||
loop:
|
||||
- that: |
|
||||
"hi mom" == '{{ "hi mom" }}' # not implemented; requires lazy loop templating
|
||||
register: loop_fail
|
||||
|
||||
- name: check results from previous assert failures
|
||||
assert:
|
||||
that:
|
||||
- loop_fail is failed
|
||||
- loop_fail.results[0].msg is contains "untrusted"
|
||||
|
||||
- name: arg splat fail cases
|
||||
assert: '{{ item }}'
|
||||
|
||||
Reference in New Issue
Block a user