From 35722aa3bce7265cffe83e09a87ce5d41605d49a Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 25 Oct 2026 13:39:42 +0100 Subject: [PATCH] fix(lint): shorten the Matomo cache reset name, read the Keycloak vars path from the SPOT 5b7284c4a4 named its reset task with 81 characters, one over the limit of test_name_emoji_and_length, and 754d35c4de built the path to roles/web-app-keycloak/vars/main.yml with a pathlib chain that test_file_spot requires to come from ROLE_FILE_VARS_MAIN. Both commits went in without the lint suite. The task keeps its behaviour under a 70-character name, the test reads the same file through the constant. make test-lint: 577 passed. Co-Authored-By: Claude Opus 5.5 (1M context) --- roles/web-app-matomo/tasks/03_install_path.yml | 2 +- .../web_app_keycloak/test_saml_clients_on_existing_realms.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/web-app-matomo/tasks/03_install_path.yml b/roles/web-app-matomo/tasks/03_install_path.yml index fa42e6f17f..7f2a4b18bb 100644 --- a/roles/web-app-matomo/tasks/03_install_path.yml +++ b/roles/web-app-matomo/tasks/03_install_path.yml @@ -92,7 +92,7 @@ delegate_to: "{{ STACK_HOST }}" run_once: true -- name: "🧹 Matomo | Forget the site list every host cached while Matomo did not answer yet" +- name: "🧹 Matomo | Drop the site list cache of every host before re-injecting" ansible.builtin.set_fact: matomo_site_cache: scope: "" diff --git a/tests/unit/python/roles/web_app_keycloak/test_saml_clients_on_existing_realms.py b/tests/unit/python/roles/web_app_keycloak/test_saml_clients_on_existing_realms.py index a33fce088e..d79db1a0c4 100644 --- a/tests/unit/python/roles/web_app_keycloak/test_saml_clients_on_existing_realms.py +++ b/tests/unit/python/roles/web_app_keycloak/test_saml_clients_on_existing_realms.py @@ -3,11 +3,12 @@ import unittest from jinja2 import Environment from utils.cache.yaml import load_yaml_any +from utils.roles.mapping import ROLE_FILE_VARS_MAIN from . import PROJECT_ROOT ROLE = PROJECT_ROOT / "roles" / "web-app-keycloak" -VARS = ROLE / "vars" / "main.yml" +VARS = ROLE / ROLE_FILE_VARS_MAIN ROUTINES = ROLE / "tasks" / "03_manager_ops" / "update_routines.yml" REALM = {