Skip to content

armgit / ARES

Public Imported from GitHub
0

ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.

fix: make ASREPRoast failure test hermetic

Mafifrizide6599c4fdf9
diff --git a/tests/unit/test_ad_bind_behavior.py b/tests/unit/test_ad_bind_behavior.py
index 62554e0..0960f41 100644
--- a/tests/unit/test_ad_bind_behavior.py
+++ b/tests/unit/test_ad_bind_behavior.py
@@ -764,6 +764,7 @@ async def test_asreproast_candidate_kerberos_failure_is_candidate_aware(monkeypa
import ares.modules.ad.asreproast as asreproast_mod
from ares.modules.ad.asreproast import ASREPRoastModule
+ _install_fake_kerberos(monkeypatch)
monkeypatch.setattr(asreproast_mod, "ensure_ad_dependencies", lambda *args, **kwargs: None)
module, _ = _make_module(ASREPRoastModule)