Home / Function/ test_cloud_metadata_always_unsafe() — langchain Function Reference

test_cloud_metadata_always_unsafe() — langchain Function Reference

Architecture documentation for the test_cloud_metadata_always_unsafe() function in test_ssrf_protection.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ba3859ce_74f8_4384_f1a4_96ae4be52cdd["test_cloud_metadata_always_unsafe()"]
  886e7128_47aa_f2cd_0c79_bd8c13e47c94["TestIsSafeUrl"]
  ba3859ce_74f8_4384_f1a4_96ae4be52cdd -->|defined in| 886e7128_47aa_f2cd_0c79_bd8c13e47c94
  style ba3859ce_74f8_4384_f1a4_96ae4be52cdd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_ssrf_protection.py lines 206–209

    def test_cloud_metadata_always_unsafe(self) -> None:
        """Test that cloud metadata is always unsafe."""
        assert is_safe_url("http://169.254.169.254") is False
        assert is_safe_url("http://169.254.169.254", allow_private=True) is False

Domain

Subdomains

Frequently Asked Questions

What does test_cloud_metadata_always_unsafe() do?
test_cloud_metadata_always_unsafe() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_cloud_metadata_always_unsafe() defined?
test_cloud_metadata_always_unsafe() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 206.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free