Skip to content

feat(serverpod_test): Support Object userIdentifier in AuthenticationOverride, matching AuthenticationInfo - #3672

Merged
tp merged 3 commits into
serverpod:mainfrom
tp:test-auth-user-identifier
Jun 18, 2025
Merged

tp merged 3 commits into
serverpod:mainfrom
tp:test-auth-user-identifier

Conversation

@tp

@tp tp commented Jun 18, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Added integration tests to verify authentication behavior with both integer and UUID user identifiers.
  • Documentation
    • Updated documentation to reflect changes in authentication parameter naming.
  • Refactor
    • Updated authentication methods to accept a generic user identifier instead of only integer user IDs.

@coderabbitai

coderabbitai Bot commented Jun 18, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The changes update the AuthenticationOverride.authenticationInfo method and its related constructor to accept a generic Object userIdentifier instead of an int userId. Additionally, a new test suite is added to verify the behavior of AuthenticationInfo when using both integer and UUID user identifiers.

Changes

File(s) Change Summary
packages/serverpod_test/lib/src/test_session_builder.dart Updated method and constructor signatures to accept Object userIdentifier instead of int userId. Updated documentation comments accordingly.
tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart Added new integration tests for AuthenticationInfo with integer and UUID user identifiers.

Sequence Diagram(s)

sequenceDiagram
    participant Test as Test Case
    participant Builder as TestSessionBuilder
    participant AuthOverride as AuthenticationOverride
    participant AuthInfo as AuthenticationInfo

    Test->>Builder: buildSession(authenticationInfo(userIdentifier, scopes))
    Builder->>AuthOverride: authenticationInfo(userIdentifier, scopes)
    AuthOverride->>AuthInfo: create AuthenticationInfo(userIdentifier, scopes)
    AuthInfo-->>Builder: AuthenticationInfo instance
    Builder-->>Test: Session with AuthenticationInfo
    Test->>AuthInfo: Access userId or userIdentifier
Loading

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b1bfe63 and b38b49b.

📒 Files selected for processing (2)
  • packages/serverpod_test/lib/src/test_session_builder.dart (2 hunks)
  • tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart
  • packages/serverpod_test/lib/src/test_session_builder.dart
⏰ Context from checks skipped due to timeout of 90000ms (58)
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.32.1
  • GitHub Check: Unit tests Web (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests Web (3.24.0, ubuntu-latest)
  • GitHub Check: Unit tests Web (3.32.1, windows-latest)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.24.0
  • GitHub Check: Unit tests Web (3.24.0, windows-latest)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.24.0
  • GitHub Check: Version change test
  • GitHub Check: Flutter unit tests (3.32.1, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.24.0
  • GitHub Check: update pubspecs (3.32.1)
  • GitHub Check: serverpod generate (3.24.0)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.32.1
  • GitHub Check: CLI e2e tests (3.32.1, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: Bootstrap tests (3.32.1, windows-latest, tests/bootstrap_project)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.24.0
  • GitHub Check: update pubspecs (3.24.0)
  • GitHub Check: Serverpod concurrent integration tests (server) (3.32.1)
  • GitHub Check: Serverpod concurrent integration tests (server) (3.24.0)
  • GitHub Check: Serverpod integration tests (server) (3.32.1)
  • GitHub Check: Bootstrap tests (3.24.0, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: CLI e2e tests (3.24.0, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: Flutter unit tests (3.32.1, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.24.0
  • GitHub Check: Serverpod integration tests (flutter)
  • GitHub Check: Serverpod integration tests (3.24.0, packages/serverpod_shared)
  • GitHub Check: Bootstrap tests (3.32.1, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: serverpod generate (3.32.1)
  • GitHub Check: Flutter unit tests (3.24.0, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Serverpod integration tests (server) (3.24.0)
  • GitHub Check: Flutter unit tests (3.24.0, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: dart analyze downgrade (3.32.1, windows-latest)
  • GitHub Check: Migration e2e tests (3.32.1)
  • GitHub Check: Migration e2e tests (3.24.0)
  • GitHub Check: Serverpod E2E IO tests (3.24.0)
  • GitHub Check: Serverpod integration tests (3.32.1, packages/serverpod_shared)
  • GitHub Check: Unit tests IO (3.32.1, ubuntu-latest)
  • GitHub Check: Bootstrap tests (3.24.0, windows-latest, tests/bootstrap_project)
  • GitHub Check: dart analyze downgrade (3.24.0, windows-latest)
  • GitHub Check: Serverpod E2E IO tests (3.32.1)
  • GitHub Check: dart analyze downgrade (3.32.1, ubuntu-latest)
  • GitHub Check: Serverpod E2E web tests (3.24.0)
  • GitHub Check: Unit tests IO (3.24.0, windows-latest)
  • GitHub Check: Unit tests IO (3.24.0, ubuntu-latest)
  • GitHub Check: Serverpod E2E web tests (3.32.1)
  • GitHub Check: Unit tests IO (3.32.1, windows-latest)
  • GitHub Check: dart analyze downgrade (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze latest (3.32.1, ubuntu-latest)
  • GitHub Check: dart format (3.5.0)
  • GitHub Check: dart analyze (3.24.0, windows-latest)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@tp
tp marked this pull request as ready for review June 18, 2025 11:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
packages/serverpod_test/lib/src/test_session_builder.dart (2)

7-14: Doc comment out-of-sync with signature

The sentence still refers to a singular scope, while the parameter is now Set<Scope> scopes. Minor, but worth fixing to avoid confusion.

-/// Sets the session to be authenticated with the provided `userIdentifier` and `scope`.
+/// Sets the session to be authenticated with the provided `userIdentifier` and `scopes`.

111-119: Update constructor doc to match new parameter name

userIdentifier replaced userId, yet the preceding comment line 110 doesn’t mention it. Aligning the doc keeps the API self-describing.

-/// Creates a new AuthenticationInfoOverride with the provided authentication info.
+/// Creates a new AuthenticationInfoOverride for the supplied `userIdentifier`, `scopes`, and optional `authId`.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fe3dcae and 7dbef1d.

📒 Files selected for processing (1)
  • packages/serverpod_test/lib/src/test_session_builder.dart (2 hunks)

@tp
tp requested review from SandPod June 18, 2025 11:40
…ionOverride`, matching `AuthenticationInfo`
@tp
tp force-pushed the test-auth-user-identifier branch from 7dbef1d to c36ef0a Compare June 18, 2025 11:41

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test for this change.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
packages/serverpod_test/test/test_session_builder_test.dart (3)

7-10: Avoid brittle hard-cast – assert type first or leverage pattern matching.

Casting the return value with as AuthenticationInfoOverride will throw at runtime if the factory implementation ever changes.
A safer pattern:

final authOverride = AuthenticationOverride.authenticationInfo(123, {});
expect(authOverride, isA<AuthenticationInfoOverride>());
final authenticationOverride = authOverride as AuthenticationInfoOverride;

or, in Dart ≥3.0, use pattern matching:

switch (AuthenticationOverride.authenticationInfo(123, {}) ) {
  case AuthenticationInfoOverride(:var authenticationInfo):
    // use authenticationInfo here
}

27-33: Nit: consolidate repetitive setup via parameterised test data.

The two group blocks differ only in the identifier type. You could drive both scenarios from a single list of tuples:

for (final (description, identifier, expectedUserId, expectThrows) in [
  ('int', 123, 123, false),
  ('UUID', UuidValue.fromString(uuidString), null, true),
]) { … }

This reduces duplication and keeps future cases easy to add.


35-42: Explicitly assert the thrown FormatException message (optional).

Verifying just the exception type is fine, but checking the message ensures the failure mode remains user-friendly if the implementation changes.

expect(
  () => authenticationOverride.authenticationInfo.userId,
  throwsA(predicate((e) =>
      e is FormatException &&
      e.message.contains('non-integer userIdentifier')))
);
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7dbef1d and 8e2e6f7.

📒 Files selected for processing (2)
  • packages/serverpod_test/lib/src/test_session_builder.dart (3 hunks)
  • packages/serverpod_test/test/test_session_builder_test.dart (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/serverpod_test/lib/src/test_session_builder.dart
⏰ Context from checks skipped due to timeout of 90000ms (58)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.24.0
  • GitHub Check: Bootstrap tests (3.32.1, windows-latest, tests/bootstrap_project)
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.24.0
  • GitHub Check: Bootstrap tests (3.32.1, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: Migration e2e tests (3.32.1)
  • GitHub Check: Bootstrap tests (3.24.0, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: CLI e2e tests (3.32.1, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: CLI e2e tests (3.24.0, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: Unit tests Web (3.32.1, windows-latest)
  • GitHub Check: Serverpod integration tests (server) (3.32.1)
  • GitHub Check: Migration e2e tests (3.24.0)
  • GitHub Check: Unit tests Web (3.24.0, windows-latest)
  • GitHub Check: Flutter unit tests (3.32.1, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Bootstrap tests (3.24.0, windows-latest, tests/bootstrap_project)
  • GitHub Check: Flutter unit tests (3.24.0, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Flutter unit tests (3.32.1, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Unit tests Web (3.32.1, ubuntu-latest)
  • GitHub Check: Flutter unit tests (3.24.0, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Serverpod integration tests (server) (3.24.0)
  • GitHub Check: Version change test
  • GitHub Check: Unit tests Web (3.24.0, ubuntu-latest)
  • GitHub Check: Serverpod integration tests (3.32.1, packages/serverpod_shared)
  • GitHub Check: Serverpod concurrent integration tests (server) (3.32.1)
  • GitHub Check: Serverpod E2E IO tests (3.32.1)
  • GitHub Check: Serverpod concurrent integration tests (server) (3.24.0)
  • GitHub Check: Serverpod integration tests (3.24.0, packages/serverpod_shared)
  • GitHub Check: Serverpod E2E web tests (3.32.1)
  • GitHub Check: Serverpod E2E web tests (3.24.0)
  • GitHub Check: Serverpod E2E IO tests (3.24.0)
  • GitHub Check: Serverpod integration tests (flutter)
  • GitHub Check: Unit tests IO (3.32.1, windows-latest)
  • GitHub Check: Unit tests IO (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests IO (3.24.0, windows-latest)
  • GitHub Check: Unit tests IO (3.24.0, ubuntu-latest)
  • GitHub Check: update pubspecs (3.24.0)
  • GitHub Check: dart analyze downgrade (3.32.1, windows-latest)
  • GitHub Check: update pubspecs (3.32.1)
  • GitHub Check: dart analyze downgrade (3.24.0, ubuntu-latest)
  • GitHub Check: serverpod generate (3.24.0)
  • GitHub Check: dart analyze latest (3.32.1, ubuntu-latest)
  • GitHub Check: dart analyze downgrade (3.32.1, ubuntu-latest)
  • GitHub Check: dart analyze (3.24.0, ubuntu-latest)
  • GitHub Check: serverpod generate (3.32.1)
  • GitHub Check: dart analyze downgrade (3.24.0, windows-latest)
  • GitHub Check: dart analyze latest (3.32.1, windows-latest)
  • GitHub Check: dart analyze (3.24.0, windows-latest)
🔇 Additional comments (1)
packages/serverpod_test/test/test_session_builder_test.dart (1)

1-3: Imports look good.

The selected imports give the test access to all required types (AuthenticationOverride, AuthenticationInfoOverride, UuidValue, test helpers).
No missing or unused imports detected.

@tp

tp commented Jun 18, 2025

Copy link
Copy Markdown
Contributor Author

Please add a test for this change.

@SandPod Done. I had to expose the low-level class though (for testing).

I just did a minimal update, though I think we could also make this a proper sealed union.
In the end this could really just be achieved with a AuthOverride class having just a nullable AuthenticationInfo? get authenticationInfo interface, no need for case-specific classes at all right now.

Let me know if I should further refactor this or if we better leave it as is for now.

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this implementation be aligned to validate the actual code?

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8e2e6f7 and b1bfe63.

📒 Files selected for processing (2)
  • packages/serverpod_test/lib/src/test_session_builder.dart (2 hunks)
  • tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/serverpod_test/lib/src/test_session_builder.dart
⏰ Context from checks skipped due to timeout of 90000ms (58)
  • GitHub Check: Bootstrap tests (3.32.1, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: Bootstrap tests (3.32.1, windows-latest, tests/bootstrap_project)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.24.0
  • GitHub Check: Serverpod integration tests (flutter)
  • GitHub Check: CLI e2e tests (3.24.0, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.24.0
  • GitHub Check: CLI e2e tests (3.32.1, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: Version change test
  • GitHub Check: Serverpod concurrent integration tests (server) (3.24.0)
  • GitHub Check: Migration e2e tests (3.32.1)
  • GitHub Check: Bootstrap tests (3.24.0, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: Migration e2e tests (3.24.0)
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.32.1
  • GitHub Check: dart analyze downgrade (3.32.1, ubuntu-latest)
  • GitHub Check: Serverpod concurrent integration tests (server) (3.32.1)
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.32.1
  • GitHub Check: serverpod generate (3.32.1)
  • GitHub Check: Bootstrap tests (3.24.0, windows-latest, tests/bootstrap_project)
  • GitHub Check: Unit tests Web (3.32.1, windows-latest)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.32.1
  • GitHub Check: Unit tests Web (3.24.0, windows-latest)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.24.0
  • GitHub Check: update pubspecs (3.24.0)
  • GitHub Check: Unit tests Web (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests Web (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze (3.24.0, ubuntu-latest)
  • GitHub Check: update pubspecs (3.32.1)
  • GitHub Check: Flutter unit tests (3.32.1, windows-latest, packages/serverpod_flutter)
  • GitHub Check: dart analyze downgrade (3.32.1, windows-latest)
  • GitHub Check: Serverpod E2E IO tests (3.24.0)
  • GitHub Check: serverpod generate (3.24.0)
  • GitHub Check: dart analyze downgrade (3.24.0, windows-latest)
  • GitHub Check: Unit tests IO (3.24.0, windows-latest)
  • GitHub Check: dart analyze downgrade (3.24.0, ubuntu-latest)
  • GitHub Check: Flutter unit tests (3.32.1, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: dart analyze latest (3.32.1, ubuntu-latest)
  • GitHub Check: Flutter unit tests (3.24.0, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Serverpod integration tests (server) (3.24.0)
  • GitHub Check: Unit tests IO (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests IO (3.24.0, ubuntu-latest)
  • GitHub Check: Unit tests IO (3.32.1, windows-latest)
  • GitHub Check: Flutter unit tests (3.24.0, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: dart analyze latest (3.32.1, windows-latest)
  • GitHub Check: Serverpod integration tests (3.32.1, packages/serverpod_shared)
  • GitHub Check: Serverpod integration tests (3.24.0, packages/serverpod_shared)
  • GitHub Check: dart analyze (3.24.0, windows-latest)
  • GitHub Check: Serverpod E2E web tests (3.24.0)
  • GitHub Check: Serverpod integration tests (server) (3.32.1)
  • GitHub Check: Serverpod E2E IO tests (3.32.1)
  • GitHub Check: Serverpod E2E web tests (3.32.1)
🔇 Additional comments (1)
tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart (1)

47-50: Verify that UuidValue is in the re-export chain

UuidValue.fromString compiles only if UuidValue is re-exported by package:serverpod/serverpod.dart.
If not, add an explicit import:

import 'package:serverpod_serialization/serverpod_serialization.dart' show UuidValue;

Please confirm with a quick build or grep that the symbol is reachable.

@tp
tp force-pushed the test-auth-user-identifier branch from b1bfe63 to b38b49b Compare June 18, 2025 14:48

@SandPod SandPod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 👍

@tp
tp merged commit b2fad01 into serverpod:main Jun 18, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants