Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /langflow-ai_langflow /src /bundles /ibm /tests /conftest.py
| """Shared fixtures for the ``lfx-ibm`` bundle tests. | |
| The connector SSRF policy resolves host names through DNS, so the synthetic | |
| watsonx.data host names used by the watsonx.data tests are allow-listed for | |
| the duration of each test. Literal private / metadata IPs are *not* | |
| allow-listed, so the SSRF-rejection tests still exercise the real policy. | |
| """ | |
| from __future__ import annotations | |
| import pytest | |
| _TEST_HOSTS = ( | |
| "presto.example.lakehouse.cloud.ibm.com", | |
| "my-instance.lakehouse.cloud.ibm.com", | |
| "other.example.com", | |
| "iam.cloud.ibm.com", | |
| ) | |
| def _allowlist_test_hosts(monkeypatch): | |
| monkeypatch.setenv("LANGFLOW_SSRF_ALLOWED_HOSTS", ",".join(_TEST_HOSTS)) | |
| monkeypatch.setenv("LANGFLOW_CONNECTOR_SSRF_VALIDATION_ENABLED", "true") | |
Xet Storage Details
- Size:
- 788 Bytes
- Xet hash:
- a9c4f4d1a91ed4e439e896a26bf4ff9c7c64a9b2760c3f246c1940c6bdbb2e24
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.