chore: update badge URLs to commit 4422c70b [skip ci]

This commit is contained in:
gitea-actions-bot
2026-09-28 14:32:38 +00:00
committed by kireto
parent 60ba4aabc4
commit 2ea38931b7
6 changed files with 113 additions and 3 deletions
+9
View File
@@ -13,6 +13,7 @@ import pytest
from click.testing import CliRunner
from devx.molecule.molecule_changed import (
PLAYBOOK_ROLE_MAP,
detect_changed_roles,
get_changed_files,
main,
@@ -52,6 +53,14 @@ def test_detect_playbook_change(roles_dir: Path):
assert roles == {"observability", "docker_base"}
def test_detect_deploy_controller_playbook(roles_dir: Path):
"""The deploy-controller playbook maps to the deploy_controller role."""
assert PLAYBOOK_ROLE_MAP["ansible/playbooks/deploy-controller.yml"] == ["deploy_controller"]
(roles_dir / "deploy_controller" / "molecule" / "default").mkdir(parents=True)
roles = detect_changed_roles(["ansible/playbooks/deploy-controller.yml"], roles_dir)
assert roles == {"deploy_controller"}
def test_detect_shared_infra_triggers_all(roles_dir: Path):
"""ansible.cfg change triggers all testable roles only."""
roles = detect_changed_roles(["ansible/ansible.cfg"], roles_dir)