Skip to content

Retrofit MessageStoreRole registration tests to all relational providers (#3351 follow-up) - #3354

Merged
jeremydmiller merged 1 commit into
mainfrom
chore/3351-role-tests-all-providers
Jul 10, 2026
Merged

Retrofit MessageStoreRole registration tests to all relational providers (#3351 follow-up)#3354
jeremydmiller merged 1 commit into
mainfrom
chore/3351-role-tests-all-providers

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

What

Follow-up to #3351, which fixed the MessageStoreRole-ignored-on-tenanted-paths defect in all five relational providers (PostgreSQL, Sql Server, Sqlite, MySql, Oracle) but only added regression tests for PostgreSQL.

This retrofits the same three-case test to the other four providers:

  • SqlServerTests/message_store_role_registration.cs
  • SqliteTests/message_store_role_registration.cs
  • MySqlTests/message_store_role_registration.cs
  • OracleTests/message_store_role_registration.cs

Each covers: ancillary single-database, ancillary with statically registered tenants, and the Main default with statically registered tenants. All are pure configuration tests over BuildMessageStore() — no database connection is opened, so they run without docker infrastructure. The SQLite variant uses throwaway file-based connection strings via the existing SqliteTests.Servers helper because SQLite persistence rejects non-file connection strings.

Verification

All 12 new tests pass locally. Mutation-checked on Sql Server: reverting the Role propagation in buildMainDatabaseSettings() fails both ancillary tests and leaves the Main-default test green — same kill pattern as the original PostgreSQL tests.

🤖 Generated with Claude Code

…Sql, and Oracle (#3351 follow-up)

PR #3351 fixed the same tenanted-store Role defect in all five relational
providers but only added regression tests for PostgreSQL. This adds the
equivalent three-case test (ancillary single-database, ancillary with static
tenants, Main default with static tenants) to the other four providers'
test suites. All are configuration-only tests that never touch a database.

Mutation-checked on SqlServer: reverting the Role propagation in
buildMainDatabaseSettings fails both ancillary tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jeremydmiller
jeremydmiller merged commit d3112d4 into main Jul 10, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant