Skip to content

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

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions