refactor(test): migrate E2E tests from gRPC to ConnectRPC clients by whoAbhishekSah · Pull Request #1389 · raystack/frontier
bot reviewed Feb 18, 2026
Replace gRPC client infrastructure with ConnectRPC in all E2E tests: - Add ContextWithHeaders helper and ConnectRPC interceptor in testbench - Switch TestBench client types to ConnectRPC interfaces - Connect to ConnectRPC port instead of gRPC port - Replace metadata.NewOutgoingContext with testbench.ContextWithHeaders - Wrap all RPC request args with connect.NewRequest() - Access responses via .Msg. prefix - Replace gRPC error codes (codes.X/status.Convert) with connect equivalents Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…kie auth Replace identity proxy header (X-Frontier-Email) authentication with proper mail OTP + session cookie auth flow using test_users config. This fixes all E2E test failures after migrating to ConnectRPC clients, since the ConnectRPC server doesn't support identity proxy headers. Key changes: - Add AuthenticateUser() and ContextWithAuth() helpers in testbench - Update all Bootstrap functions to accept session cookie instead of email - Configure test_users + mail OTP in all test suite configs - Add Session.Validity to prevent immediate session expiry - Fix authentication_test.go to use Set-Cookie and Bearer token headers - Fix non-raystack.org email domains to work with test_users config - Delete passthrough_header_test.go (no longer applicable) - Remove IdentityHeader constant (no longer needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add OrgId to CreateBillingUsage/RevertBillingUsage/CheckFeatureEntitlement calls that only provided ProjectId, since ConnectRPC handlers always resolve billing via GetOrgId(). Update webhook error assertion to match ConnectRPC's generic error wrapping. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
rsbh approved these changes Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters