Skip to content

Commit 4e3b299

Browse files
committed
fix
1 parent d8b6cef commit 4e3b299

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

tests/e2e/features/steps/tls.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -250,23 +250,9 @@ def configure_mtls_expired_client_cert(context: Context) -> None:
250250
_write_config(config, _LLAMA_STACK_CONFIG)
251251

252252

253-
@given('Llama Stack is configured with TLS minimum version "{version}"')
254-
def configure_tls_min_version(context: Context, version: str) -> None:
255-
"""Configure run.yaml with TLS minimum version.
256-
257-
Parameters:
258-
context: Behave test context.
259-
version: The TLS version (e.g., "TLSv1.2", "TLSv1.3").
260-
"""
261-
config, provider = _prepare_tls_provider()
262-
provider["config"]["network"]["tls"] = {
263-
"verify": "/certs/ca.crt",
264-
"min_version": version,
265-
}
266-
_write_config(config, _LLAMA_STACK_CONFIG)
267-
268-
269-
@given('Llama Stack is configured with TLS minimum version "{version}" and CA certificate path "{path}"')
253+
@given(
254+
'Llama Stack is configured with TLS minimum version "{version}" and CA certificate path "{path}"'
255+
)
270256
def configure_tls_min_version_with_ca_path(
271257
context: Context, version: str, path: str
272258
) -> None:

tests/e2e/features/tls.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Feature: TLS configuration for remote inference providers
117117
And The body of the response does not contain Hello from the TLS mock inference server
118118

119119
Scenario: Inference succeeds with TLS minimum version TLSv1.3
120-
Given Llama Stack is configured with TLS minimum version "TLSv1.3"
120+
Given Llama Stack is configured with TLS minimum version "TLSv1.3" and CA certificate path "/certs/ca.crt"
121121
And Llama Stack is restarted
122122
And Lightspeed Stack is restarted
123123
When I use "query" to ask question

0 commit comments

Comments
 (0)