|
11 | 11 |
|
12 | 12 | from utilities.constants import Timeout |
13 | 13 | from utilities.infra import s3_endpoint_secret |
14 | | -from utilities.llmd_utils import create_gateway, create_llmisvc |
| 14 | +from utilities.llmd_utils import create_llmd_gateway, create_llmisvc |
15 | 15 | from utilities.llmd_constants import ( |
16 | 16 | DEFAULT_GATEWAY_NAMESPACE, |
17 | 17 | VLLM_STORAGE_OCI, |
@@ -68,21 +68,22 @@ def llmd_gateway( |
68 | 68 | gateway_namespace: str, |
69 | 69 | ) -> Generator[Gateway, None, None]: |
70 | 70 | """ |
71 | | - Pytest fixture for LLMD Gateway management. |
72 | | -
|
73 | | - Implements persistent gateway strategy: |
74 | | - - Reuses existing gateways if available |
| 71 | + Pytest fixture for LLMD Gateway management using create_llmd_gateway. |
| 72 | + |
| 73 | + Implements persistent LLMD gateway strategy: |
| 74 | + - Reuses existing gateways if available |
75 | 75 | - Creates new gateway only if needed |
76 | 76 | - Does not delete gateway in teardown |
| 77 | + - Uses LLMD-specific gateway configuration |
77 | 78 | """ |
78 | 79 | if isinstance(request.param, str): |
79 | 80 | gateway_class_name = request.param |
80 | 81 | kwargs = {} |
81 | 82 | else: |
82 | 83 | gateway_class_name = request.param.get("gateway_class_name", "openshift-default") |
83 | 84 | kwargs = {k: v for k, v in request.param.items() if k != "gateway_class_name"} |
84 | | - |
85 | | - with create_gateway( |
| 85 | + |
| 86 | + with create_llmd_gateway( |
86 | 87 | client=admin_client, |
87 | 88 | namespace=gateway_namespace, |
88 | 89 | gateway_class_name=gateway_class_name, |
|
0 commit comments