Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auth Service] Add test coverage for new database functions in CQRS implementation #4518

Open
coderabbitai bot opened this issue Mar 3, 2025 · 0 comments

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 3, 2025

Background

In PR #4512, we introduced CQRS pattern support with dual database connections in the Auth Service. CodeRabbit identified that several of the new database functions lack test coverage.

Required Action

Add thorough tests for the following new database functions:

  • getCommandTenantDB
  • getQueryTenantDB
  • getCommandModelByTenant
  • getQueryModelByTenant

Importance

Since database operations are critical to the application, these functions must be comprehensively covered with tests that validate both successful paths (e.g., correct database connection and model registration) and failure conditions (e.g., when a connection is not established).

References

Requested by

@Baalmart

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

No branches or pull requests

0 participants