Files
computer-playbook/tests/integration
kevinveenbirkenbachandClaude Opus 5 3896e88329 test(filters): allow ansible-core's subelements in the filter allowlist
The mirror loop added in eef3c3be71 iterates with
`LMSTUDIO_PRELOAD_MODELS | subelements('mirrors', skip_missing=True)`. That
filter ships with ansible-core rather than with this repository's
`filter_plugins/`, and the allowlist that separates "provided by the runtime"
from "must be defined here" did not carry it, so test-integration went red on a
filter that is perfectly valid:

    These filters are used in templates/YAML but have no local definition
    (and are not in BUILTIN_FILTERS):
      - subelements

Measured against the interpreter the suite runs on, `FilterModule().filters()`
from `ansible.plugins.filter.core` contains `subelements`, so the entry states
a fact rather than a suppression. The set has exactly one reader, the
subtraction in the same file, and the entry removes that one name from the
candidates and nothing else.

This is the same one-line extension as 9118b47654 (regex_findall) and
fa59b29b2a (urlsplit).

Residual: the check can no longer report this name, so a future local filter
called `subelements` would shadow the builtin unnoticed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 06:41:25 +02:00
..
…

Integration Tests 🔗

See integration.md for the SPOT: framework, requirements, directory structure, and make test-integration usage.