feat(agent-call): implement remediation plan
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user