Kevin Veen-Birkenbach
7791bd8c04
Implement filter checks: ensure all defined filters are used and remove dead code
...
Integration tests added/updated:
- tests/integration/test_filters_usage.py: AST-based detection of filter definitions (FilterModule.filters), robust Jinja detection ({{ ... }}, {% ... %}, {% filter ... %}), plus Python call tracking; fails if a filter is used only under tests/.
- tests/integration/test_filters_are_defined.py: inverse check — every filter used in .yml/.yaml/.j2/.jinja2/.tmpl must be defined locally. Scans only inside Jinja blocks and ignores pipes inside strings (e.g., lookup('pipe', "... | grep ... | awk ...")) to avoid false positives like trusted_hosts, woff/woff2, etc.
Bug fixes & robustness:
- Build regexes without %-string formatting to avoid ValueError from literal '%' in Jinja tags.
- Strip quoted strings in usage analysis so sed/grep/awk pipes are not miscounted as filters.
- Prevent self-matches in the defining file.
Cleanup / removal of dead code:
- Removed unused filter plugins and related unit tests:
* filter_plugins/alias_domains_map.py
* filter_plugins/get_application_id.py
* filter_plugins/load_configuration.py
* filter_plugins/safe.py
* filter_plugins/safe_join.py
* roles/svc-db-openldap/filter_plugins/build_ldap_nested_group_entries.py
* roles/sys-ctl-bkp-docker-2-loc/filter_plugins/dict_to_cli_args.py
* corresponding tests under tests/unit/*
- roles/svc-db-postgres/filter_plugins/split_postgres_connections.py: dropped no-longer-needed list_postgres_roles API; adjusted tests.
Misc:
- sys-stk-front-proxy/defaults/main.yml: clarified valid vhost_flavour values (comma-separated).
Ref: https://chatgpt.com/share/68b56bac-c4f8-800f-aeef-6708dbb44199
2025-09-01 11:47:51 +02:00
..
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-26 20:44:05 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-29 18:11:53 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-09-01 10:10:23 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-29 18:11:53 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-29 18:11:53 +02:00
2025-08-15 17:59:09 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-29 10:53:36 +02:00
2025-08-29 18:11:53 +02:00
2025-09-01 10:10:23 +02:00
2025-08-29 18:11:53 +02:00
2025-08-29 15:44:31 +02:00
2025-09-01 10:10:23 +02:00
2025-08-19 19:06:58 +02:00
2025-08-21 21:04:21 +02:00
2025-08-15 21:35:45 +02:00
2025-08-14 14:39:18 +02:00
2025-09-01 11:47:51 +02:00
2025-09-01 11:47:51 +02:00
2025-08-14 14:39:18 +02:00
2025-08-29 13:03:06 +02:00
2025-08-18 21:22:16 +02:00
2025-08-19 15:00:44 +02:00
2025-08-29 18:11:53 +02:00
2025-08-29 18:11:53 +02:00
2025-08-18 13:35:43 +02:00
2025-08-19 19:02:52 +02:00
2025-08-18 13:35:43 +02:00
2025-08-18 13:35:43 +02:00
2025-08-14 14:39:18 +02:00
2025-08-20 01:20:06 +02:00
2025-08-20 15:17:04 +02:00
2025-08-20 15:17:04 +02:00
2025-09-01 11:47:51 +02:00
2025-08-26 19:23:47 +02:00
2025-08-19 15:00:44 +02:00
2025-08-19 15:00:44 +02:00
2025-08-21 18:43:17 +02:00
2025-08-29 20:53:36 +02:00
2025-08-20 04:12:42 +02:00
2025-08-29 15:44:31 +02:00
2025-08-20 04:46:27 +02:00
2025-08-20 04:12:42 +02:00
2025-08-26 10:15:35 +02:00
2025-08-29 12:26:53 +02:00
2025-08-20 04:12:42 +02:00
2025-08-29 15:44:31 +02:00
2025-08-20 05:02:16 +02:00
2025-08-20 08:54:17 +02:00
2025-08-27 17:34:59 +02:00
2025-08-29 19:09:28 +02:00
2025-08-29 19:09:28 +02:00
2025-08-26 18:48:45 +02:00
2025-08-19 19:02:52 +02:00
2025-08-19 19:02:52 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-14 14:39:18 +02:00
2025-08-18 23:54:23 +02:00
2025-08-14 14:39:18 +02:00
2025-09-01 10:10:23 +02:00
2025-08-28 22:23:09 +02:00
2025-08-28 22:23:09 +02:00
2025-09-01 11:47:51 +02:00
2025-08-29 14:38:20 +02:00
2025-08-29 14:38:20 +02:00
2025-08-29 14:38:20 +02:00
2025-08-14 14:39:18 +02:00
2025-09-01 10:10:23 +02:00
2025-08-16 21:43:01 +02:00
2025-08-29 16:45:03 +02:00
2025-08-20 08:54:17 +02:00
2025-08-18 21:22:16 +02:00
2025-08-28 22:47:05 +02:00
2025-08-18 13:35:43 +02:00
2025-08-27 18:12:49 +02:00
2025-08-28 22:23:09 +02:00
2025-08-14 14:39:18 +02:00
2025-08-19 19:02:52 +02:00
2025-08-19 15:00:44 +02:00
2025-08-14 14:39:18 +02:00
2025-08-15 15:15:48 +02:00
2025-09-01 10:10:23 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-15 15:15:48 +02:00
2025-08-19 19:02:52 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-14 14:39:18 +02:00
2025-08-26 11:35:22 +02:00
2025-08-29 18:11:53 +02:00
2025-08-28 22:23:09 +02:00
2025-08-28 22:23:09 +02:00
2025-08-29 14:38:20 +02:00
2025-08-29 18:11:53 +02:00
2025-08-29 18:11:53 +02:00
2025-08-29 18:07:01 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-29 14:38:20 +02:00
2025-08-28 22:23:09 +02:00
2025-08-28 22:23:09 +02:00
2025-08-31 20:04:14 +02:00
2025-08-29 14:38:20 +02:00
2025-09-01 10:10:23 +02:00
2025-08-31 20:04:14 +02:00
2025-08-29 18:11:53 +02:00
2025-08-29 14:38:20 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-31 20:04:14 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:14:03 +02:00
2025-08-31 20:04:14 +02:00
2025-08-29 04:24:50 +02:00
2025-09-01 10:14:03 +02:00
2025-08-31 20:04:14 +02:00
2025-08-28 22:23:09 +02:00
2025-09-01 10:14:03 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-28 22:23:09 +02:00
2025-08-29 18:11:53 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-29 18:11:53 +02:00
2025-08-31 20:04:14 +02:00
2025-08-28 11:25:35 +02:00
2025-08-28 22:23:09 +02:00
2025-08-29 18:11:53 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:14:03 +02:00
2025-09-01 10:54:08 +02:00
2025-08-29 14:38:20 +02:00
2025-08-29 18:11:53 +02:00
2025-08-15 15:15:48 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-28 22:23:09 +02:00
2025-09-01 10:10:23 +02:00
2025-09-01 10:10:23 +02:00
2025-08-15 15:15:48 +02:00
2025-08-28 22:23:09 +02:00
2025-09-01 10:14:03 +02:00
2025-08-28 22:23:09 +02:00
2025-08-20 05:00:24 +02:00
2025-07-04 08:03:27 +02:00
2025-03-20 17:00:07 +01:00
2025-09-01 10:10:23 +02:00
2025-07-10 15:36:40 +02:00
2025-07-12 17:52:36 +02:00
2025-08-29 18:11:53 +02:00