test_private_ip_blocked_by_default() — langchain Function Reference
Architecture documentation for the test_private_ip_blocked_by_default() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 92be9769_371c_422e_221a_e08d07b64a48["test_private_ip_blocked_by_default()"] 55eb5d18_546a_f8ab_e6ce_af072e9c336d["TestValidateSafeUrl"] 92be9769_371c_422e_221a_e08d07b64a48 -->|defined in| 55eb5d18_546a_f8ab_e6ce_af072e9c336d style 92be9769_371c_422e_221a_e08d07b64a48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 118–127
def test_private_ip_blocked_by_default(self) -> None:
"""Test that private IPs are blocked by default."""
with pytest.raises(ValueError, match="private IP"):
validate_safe_url("http://192.168.1.1/webhook")
with pytest.raises(ValueError, match="private IP"):
validate_safe_url("http://10.0.0.1/webhook")
with pytest.raises(ValueError, match="private IP"):
validate_safe_url("http://172.16.0.1/webhook")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_private_ip_blocked_by_default() do?
test_private_ip_blocked_by_default() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_private_ip_blocked_by_default() defined?
test_private_ip_blocked_by_default() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 118.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free