Merge commit '4fe43fde81' into feature/ansible-task-overhead

This commit is contained in:
Alejandro Roman committed 2026-11-20 03:01:25 +04:00
commit 1d0ea778a1
56 files changed
+1718 -200

No files matched your search

@@ -137,6 +137,19 @@ class TestVerdict(unittest.TestCase):
)
self.assertEqual(result["pins"]["unreciprocated"], [])
def test_a_resolving_without_pin_passes(self) -> None:
pin = {
"carrier": "app#3",
"partner": "pa",
"target": "without-a",
"key": "a",
"reciprocal": 0,
}
result = compare.verdict(
_before(), _after(pin=pin), old=["app#0"], split=["app#0", "app#3"]
)
self.assertEqual(result["pins"]["unreciprocated"], [])
def test_the_render_names_the_verdict(self) -> None:
text = compare.render(
compare.verdict(
@@ -76,6 +76,15 @@ class TestPins(unittest.TestCase):
)
self.assertTrue(str(finding["reciprocal"]).startswith("error:"))
def test_a_without_pin_names_the_variant_switching_the_key_off(self) -> None:
with tempfile.TemporaryDirectory() as tmp:
[finding] = rounds.pin_findings(
"web-app-a",
roles_dir=_tree(tmp, "without-a", gate=False),
variants_per_app=VARIANTS,
)
self.assertEqual((finding["target"], finding["reciprocal"]), ("without-a", 0))
class TestToken(unittest.TestCase):
def test_a_whole_role_row_is_variant_0(self) -> None: