Skip to content

Set Up Authentication Mock for System Tests #676

Closed

Description

@ZohebShaikh

Description:

Our current system tests include authentication, but to further enhance test coverage and reliability, we need to replicate the existing authentication infrastructure in a controlled environment. This will give us more confidence in the system’s performance and behavior before deploying to production.

Requirements:

Implement a mock authentication service that replicates the current authentication configuration (realms, clients, roles, etc.).
The mock service should be flexible to ensure it can be run both locally and in CI pipelines.
Ensure system tests authenticate against this mock service in the same way they would against production infrastructure.
Long-term, this solution should be easily integrated into our GitHub CI pipeline.

Long-Term Vision #630:

The ultimate goal is to have this authentication mock service as part of our GitHub CI pipeline, allowing us to automatically run system tests with authentication in a consistent and isolated environment during every build.
This will help streamline the development process, catch potential issues earlier, and increase confidence that the system behaves as expected across different environments.

Acceptance Criteria:

A mock authentication service is available for local development and CI.
System tests are updated to authenticate against this mock service.
All system tests pass when using the mock service.
Documentation on how to run tests with the mock authentication setup(if any ,Can be part of devcontainer?)
Should be able to run on Github CI

Activity

  1. ZohebShaikh commented on Oct 22, 2024

    @ZohebShaikh
    ContributorAuthor

    This is a part of this ticket #630

  2. ZohebShaikh commented on Jan 7, 2026

    @ZohebShaikh
    ContributorAuthor

    closed by #1287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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