summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/undefined/tasks (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Heisen jinja2_native (#75587)Martin Krizek2021-10-271-17/+15
| | | | | | | | | | | | | * Use NativeEnvironment for all templating ci_complete * Keep Templar.copy_with_new_env for backwards compat * Mention that AnsibleUndefined.__repr__ changed in the porting guide * Templar.copy_with_new_env backwards compat * ci_complete
* Require Jinja2 3.0.0 (#75881)Martin Krizek2021-10-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Require Jinja2 3.0.0 ci_complete * Fix sanity * Remove Jinja min/max tests * ansible-test changes * ci_complete * More cleanup ci_complete * Revert _count_newlines_from_end :( and other stuff * Fix sanity * It's using host_vars ... * Unused import * Remove overridden groupby filter * environmentfilter -> pass_environment * Explain preserve_trailing_newlines * Add changelog * ci_complete * Deprecated ANSIBLE_JINJA2_NATIVE_WARNING * native_helpers.py cleanup * More cleanup in the find intgration test
* Add an `undef` global Jinja function (#75435)Daniel Goldman2021-09-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add tests for fail filter also tests that fail does not block inspectability * add fail filter fallback message is a bit clunky, since you can't invoke a filter without specifying an input. That is, "{{ fail }}" doesn't work, so you have to do "{{ None | fail }}" * document 'fail' filter * add changelog fragment * fail filter uses default message on Undefined or emptystring makes it slightly easier to use the default message: ```diff - "{{ None | fail }}" + "{{ '' | fail }}" ``` and the user sees a slightly more relevant message if the message itself is undefined: ```diff - The error was: {{ failmsg | fail }}: 'failmsg' is undefined + The error was: {{ failmsg | fail }}: Mandatory variable has not been overridden ``` * rebuild as the builtin `Undefined` * harmonise `hint` parameter for make_undefined with jinja * use code block for documentation item [ref](https://github.com/ansible/ansible/pull/75435#discussion_r707661035) * rename to `undef` to expose less Python into the Jinja [ref](https://github.com/ansible/ansible/pull/75435#pullrequestreview-757799031) * explicitly instantiate undefined value now that it's possible see I knew we would break something with reflection * preserve test coverage of undefined variable Co-authored-by: Matt Davis <nitzmahone@users.noreply.github.com>
* Remove incidental tower integration tests (#72461)Matt Martz2020-11-041-0/+18
* Add explicit test for dict repr in argspec * Add explicit test for undefined repr * ci_complete ci_coverage * Skip old jinja2 * ci_complete ci_coverage * Remove incidental_tower_receive * ci_complete ci_coverage * Remove incidental_tower_credential_type * ci_complete ci_coverage * Remove ignore entries * ci_complete ci_coverage