test_is_cloud_metadata_safe() — langchain Function Reference
Architecture documentation for the test_is_cloud_metadata_safe() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 521167f2_0dfd_1660_b090_a183a40137c9["test_is_cloud_metadata_safe()"] 5d0af313_84be_a251_2294_d136a0904196["TestIPValidation"] 521167f2_0dfd_1660_b090_a183a40137c9 -->|defined in| 5d0af313_84be_a251_2294_d136a0904196 style 521167f2_0dfd_1660_b090_a183a40137c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 62–65
def test_is_cloud_metadata_safe(self) -> None:
"""Test that normal URLs are not flagged as cloud metadata."""
assert is_cloud_metadata("example.com", "8.8.8.8") is False
assert is_cloud_metadata("google.com") is False
Domain
Subdomains
Source
Frequently Asked Questions
What does test_is_cloud_metadata_safe() do?
test_is_cloud_metadata_safe() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_is_cloud_metadata_safe() defined?
test_is_cloud_metadata_safe() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 62.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free