|
1 | | -import os |
2 | 1 | from collections.abc import Callable, Generator |
3 | 2 | from typing import Any |
4 | 3 |
|
|
22 | 21 | HTTPS_PROXY, |
23 | 22 | IS_DISCONNECTED_CLUSTER, |
24 | 23 | LLAMA_STACK_DISTRIBUTION_SECRET_DATA, |
| 24 | + LLS_CLIENT_VERIFY_SSL, |
25 | 25 | LLS_CORE_EMBEDDING_MODEL, |
26 | 26 | LLS_CORE_EMBEDDING_PROVIDER_MODEL_ID, |
27 | 27 | LLS_CORE_INFERENCE_MODEL, |
@@ -248,7 +248,7 @@ def test_with_remote_milvus(llama_stack_server_config): |
248 | 248 | env_vars.extend(env_vars_vector_io) |
249 | 249 |
|
250 | 250 | if IS_DISCONNECTED_CLUSTER and HTTPS_PROXY: |
251 | | - LOGGER.info(f"Setting proxy and tlsconfig configuration (https_proxy:{HTTPS_PROXY}") |
| 251 | + LOGGER.info(f"Setting proxy and tlsconfig configuration (https_proxy:{HTTPS_PROXY})") |
252 | 252 | env_vars.append({"name": "HTTPS_PROXY", "value": HTTPS_PROXY}) |
253 | 253 |
|
254 | 254 | # The operator sets SSL_CERT_FILE automatically when tlsConfig.caBundle is |
@@ -641,9 +641,7 @@ def llama_stack_test_route( |
641 | 641 | def _create_llama_stack_client( |
642 | 642 | route: Route, |
643 | 643 | ) -> Generator[LlamaStackClient, Any, Any]: |
644 | | - # LLS_CLIENT_VERIFY_SSL is false by default to be able to test with Self-Signed certificates |
645 | | - verifySSL = os.getenv("LLS_CLIENT_VERIFY_SSL", "false").lower() == "true" |
646 | | - http_client = httpx.Client(verify=verifySSL, timeout=300) |
| 644 | + http_client = httpx.Client(verify=LLS_CLIENT_VERIFY_SSL, timeout=300) |
647 | 645 | try: |
648 | 646 | client = LlamaStackClient( |
649 | 647 | base_url=f"https://{route.host}", |
|
0 commit comments