feat(agent-call): implement remediation plan

This commit is contained in:
2026-09-13 19:20:28 +08:00
parent d30314c7d1
commit b95d2aee81
25 changed files with 3159 additions and 535 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import base64
import copy
import ipaddress
import json
import tempfile
import unittest
@@ -293,10 +294,10 @@ class AsteriskTests(unittest.TestCase):
def test_reject_injection_public_ari_and_our_ip_as_provider(self):
for update in (
{"ari_bind": ".".join(("0", "0", "0", "0"))},
{"ari_bind": str(ipaddress.IPv4Address(0))},
{"ari_bind": "8.8.8.8"},
{"local_net": "0.0.0.0/0"},
): # noqa: S104 — negative fixtures; renderer must reject them.
):
cfg = self.cfg()
cfg.update(update)
with self.assertRaises(ValueError):