test_cloud_metadata_rejected() — langchain Function Reference
Architecture documentation for the test_cloud_metadata_rejected() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 98c4e6e4_e732_1d4f_2344_2b66939aa404["test_cloud_metadata_rejected()"] 18fc85bc_da26_74db_45fa_4abec36050de["TestSSRFProtectedUrlType"] 98c4e6e4_e732_1d4f_2344_2b66939aa404 -->|defined in| 18fc85bc_da26_74db_45fa_4abec36050de style 98c4e6e4_e732_1d4f_2344_2b66939aa404 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 242–249
def test_cloud_metadata_rejected(self) -> None:
"""Test that cloud metadata is rejected by Pydantic schema."""
class WebhookSchema(BaseModel):
url: SSRFProtectedUrl
with pytest.raises(ValidationError):
WebhookSchema(url="http://169.254.169.254/latest/meta-data/")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_cloud_metadata_rejected() do?
test_cloud_metadata_rejected() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_cloud_metadata_rejected() defined?
test_cloud_metadata_rejected() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 242.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free