diff --git a/tests/server/login_flow/test_scope_authorization.py b/tests/server/login_flow/test_scope_authorization.py index 549c9532..679c2206 100644 --- a/tests/server/login_flow/test_scope_authorization.py +++ b/tests/server/login_flow/test_scope_authorization.py @@ -415,24 +415,27 @@ async def test_jwt_with_no_custom_scopes_returns_zero_tools( tool_names = [tool.name for tool in result.tools] logger.info( - f"JWT token with no custom scopes sees {len(tool_names)} tools (should be 4 OAuth tools)" + f"JWT token with no custom scopes sees {len(tool_names)} tools (should be 7 auth tools)" ) - # Only OAuth provisioning tools should be visible (they require 'openid' scope) - expected_oauth_tools = [ + # Only auth/provisioning tools should be visible (they require 'openid' scope) + expected_auth_tools = [ "provision_nextcloud_access", "revoke_nextcloud_access", "check_provisioning_status", "check_logged_in", # Login elicitation tool (ADR-006) + "nc_auth_provision_access", # Login Flow v2 (ADR-022) + "nc_auth_check_status", # Login Flow v2 + "nc_auth_update_scopes", # Login Flow v2 ] - assert set(tool_names) == set(expected_oauth_tools), ( - f"Expected only OAuth provisioning tools {expected_oauth_tools} " + assert set(tool_names) == set(expected_auth_tools), ( + f"Expected only auth/provisioning tools {expected_auth_tools} " f"but got {tool_names}" ) logger.info( - f"✅ JWT token with only openid scope correctly shows {len(tool_names)} OAuth provisioning tools, " + f"✅ JWT token with only openid scope correctly shows {len(tool_names)} auth tools, " "resource tools filtered out" )