Skip to content

test: use generic claims in tests and mocks #117

Open

Description

@uniqueg

Problem

Tests and mocks use values of one identity provider:

  • src/lib/oidc/oidc.test.ts uses the claim name eduperson_entitlement as groupsClaim in the LOGIN_PROVIDERS parsing tests.
  • e2e/mock/server.ts gives the test user a sub in that provider's domain ([email protected]).

Expected

  • Tests and mocks use generic, clearly fictitious values, e.g. groupsClaim: "groups" and sub: "[email protected]" (or an opaque ID such as "alice-0001", which also shows that sub need not be an email address).
  • Tests keep covering group values with special characters and subgroups (groupSubgroupSeparator), with generic URN-style values (e.g. urn:example:group:krini-compute:project-a#login.example.org), in src/lib/oidc/ tests if not already covered.
  • No behaviour change; bun run test and bun run test:e2e pass.

Activity

  1. added
    priority: low
    type: testing
    workload: minutes
    status: triage
    on Nov 19, 2026
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

    priority: lowstatus: triagetype: testingworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions