Skip to content

Commit 523ad83

Browse files
committed
Add additional MCP authentication configurations and update scenario handling
- Added new configurations for invalid, Kubernetes, client, and OAuth MCP authentication methods. - Updated scenario handling to reference the new configuration paths for Kubernetes, client, and OAuth authentication. - Enhanced the testing environment to support the new authentication configurations.
1 parent 8fe30ba commit 523ad83

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

tests/e2e/features/environment.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@
5858
"tests/e2e/configuration/{mode_dir}/lightspeed-stack-mcp-file-auth.yaml",
5959
"tests/e2e-prow/rhoai/configs/lightspeed-stack-mcp-file-auth.yaml",
6060
),
61+
"invalid-mcp-file-auth": (
62+
"tests/e2e/configuration/{mode_dir}/lightspeed-stack-invalid-mcp-file-auth.yaml",
63+
"tests/e2e-prow/rhoai/configs/lightspeed-stack-invalid-mcp-file-auth.yaml",
64+
),
65+
"mcp-kubernetes-auth": (
66+
"tests/e2e/configuration/{mode_dir}/lightspeed-stack-mcp-kubernetes-auth.yaml",
67+
"tests/e2e-prow/rhoai/configs/lightspeed-stack-mcp-kubernetes-auth.yaml",
68+
),
69+
"mcp-client-auth": (
70+
"tests/e2e/configuration/{mode_dir}/lightspeed-stack-mcp-client-auth.yaml",
71+
"tests/e2e-prow/rhoai/configs/lightspeed-stack-mcp-client-auth.yaml",
72+
),
73+
"mcp-oauth-auth": (
74+
"tests/e2e/configuration/{mode_dir}/lightspeed-stack-mcp-oauth-auth.yaml",
75+
"tests/e2e-prow/rhoai/configs/lightspeed-stack-mcp-oauth-auth.yaml",
76+
),
6177
}
6278

6379

@@ -219,17 +235,17 @@ def before_scenario(context: Context, scenario: Scenario) -> None:
219235
switch_config(context.scenario_config)
220236
restart_container("lightspeed-stack")
221237
if "MCPKubernetesAuthConfig" in scenario.effective_tags:
222-
context.scenario_config = _get_config_path("mcp-kubernetes", mode_dir)
238+
context.scenario_config = _get_config_path("mcp-kubernetes-auth", mode_dir)
223239
unregister_mcp_toolgroups()
224240
switch_config(context.scenario_config)
225241
restart_container("lightspeed-stack")
226242
if "MCPClientAuthConfig" in scenario.effective_tags:
227-
context.scenario_config = _get_config_path("mcp-client", mode_dir)
243+
context.scenario_config = _get_config_path("mcp-client-auth", mode_dir)
228244
unregister_mcp_toolgroups()
229245
switch_config(context.scenario_config)
230246
restart_container("lightspeed-stack")
231247
if "MCPOAuthAuthConfig" in scenario.effective_tags:
232-
context.scenario_config = _get_config_path("mcp-oauth", mode_dir)
248+
context.scenario_config = _get_config_path("mcp-oauth-auth", mode_dir)
233249
unregister_mcp_toolgroups()
234250
switch_config(context.scenario_config)
235251
restart_container("lightspeed-stack")

0 commit comments

Comments
 (0)