You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units
Brian Coca 4fa512406b
loop_control "early exit" feature (#62151)
* add a loop_control break_when directive to break out of a loop after any item

* remove loop var as normal exit would

* example usage:

- name: generate a random password up to 10 times, until it matches the policy
  set_fact:
    password: "{{ lookup('password', '/dev/null', chars=character_set, length=length) }}"
  loop: "{{ range(0, 10) }}"
  loop_control:
    break_when:
      - password is match(password_policy)

Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
3 months ago
..
_vendor Require `from __future__ import annotations` (#81902) 1 year ago
ansible_test Remove unused validate-modules unit test code 1 year ago
cli test: update tests (#83686) 4 months ago
config Fix condition for unquoting configuration strings from ini files (#82388) 8 months ago
errors Remove Python 2.x compat from unit tests (#82109) 1 year ago
executor loop_control "early exit" feature (#62151) 3 months ago
galaxy Typo fixes and other bits and bobs (#83672) 4 months ago
inventory Remove Python 2 compat (via six) from unit tests 1 year ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 10 years ago
mock Enable file cache for vaulted host_vars_files vars plugin (#81995) 8 months ago
module_utils Add DaemonThreadPoolExecutor impl (#83880) 3 months ago
modules unarchive: Better handling of files with an invalid timestamp in zip file (#81520) 5 months ago
parsing Add vaulted_file test (#83717) 4 months ago
playbook Typo fixes and other bits and bobs (#83672) 4 months ago
plugins psrp - Remove extras lookups (#83760) 3 months ago
regex Remove Python 2.x compat from unit tests (#82109) 1 year ago
template test: update tests (#83686) 4 months ago
utils test: Handle Singleton Display class (#83673) 4 months ago
vars Remove Python 2 compat (via six) from unit tests 1 year ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
requirements.txt Remove Python 3.10 support for the controller (#83221) 5 months ago
test_context.py Require `from __future__ import annotations` (#81902) 1 year ago
test_no_tty.py Require `from __future__ import annotations` (#81902) 1 year ago