Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /langflow-ai_langflow /src /bundles /datastax /tests /conftest.py
| """Shared fixtures for the DataStax bundle tests.""" | |
| import pytest | |
| # Placeholder hosts used by the offline unit tests. They do not resolve, so the connector SSRF | |
| # guard on the Astra/HCD endpoint boundary would reject them before the mocked client is reached. | |
| # Allowlisting them keeps the guard switched ON (blocked-host coverage lives in | |
| # ``test_astradb_connector_ssrf.py``) while letting endpoint-agnostic tests use fake URLs. | |
| PLACEHOLDER_ENDPOINT_HOSTS = ( | |
| "test.endpoint.com", | |
| "custom.endpoint.com", | |
| "x.apps.astra.datastax.com", | |
| ) | |
| def allow_placeholder_endpoints(monkeypatch): | |
| """Allowlist the fake API endpoints used by tests that are not about SSRF.""" | |
| monkeypatch.setenv("LANGFLOW_SSRF_ALLOWED_HOSTS", ",".join(PLACEHOLDER_ENDPOINT_HOSTS)) | |
Xet Storage Details
- Size:
- 789 Bytes
- Xet hash:
- 7791c35f427a38db895eb42cbb74a54245332dd026233bb7448ceab719ff53b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.