Skip to content

fix(seed): add login identity for other-tenant persona - #2206

Merged
aleksdotbar merged 2 commits into
mainfrom
fix/test-stand-other-tenant-login
Aug 5, 2026
Merged

fix(seed): add login identity for other-tenant persona#2206
aleksdotbar merged 2 commits into
mainfrom
fix/test-stand-other-tenant-login

Conversation

@aleksdotbar

@aleksdotbar aleksdotbar commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What

Seed the Keycloak login identity for the cross-tenant test persona under its own tenant.

The persona existed in the generated realm and identity roster, but lacked the value_type=id observation required by login bootstrap. Its callback was therefore rejected as an unknown person, failing the stand API suite.

Test

  • python3 -m unittest deploy/seed/test_identity.py -v
  • ruff check deploy/seed/identity.py

Summary by CodeRabbit

  • Bug Fixes
    • Improved seeded identity data by including login-ID records for secondary tenant scenarios.
  • Tests
    • Updated identity operation coverage to reflect the removal of an obsolete email-based lookup path.
    • Adjusted operation catalogs and validation expectations accordingly.

@aleksdotbar
aleksdotbar requested a review from a team as a code owner August 5, 2026 03:24
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1bec77c9-cf99-46a0-bf2f-70fcaa31560f

📥 Commits

Reviewing files that changed from the base of the PR and between 25ca9bd and 3732446.

📒 Files selected for processing (2)
  • deploy/seed/identity.py
  • tests/stand/api/operations.py

📝 Walkthrough

Walkthrough

The secondary-tenant seed flow now inserts login-ID observations. The identity operation catalog removes the email-based operation and its stand-in parameter, reducing the catalog count from 18 to 17.

Changes

Identity updates

Layer / File(s) Summary
Secondary-tenant login-ID seeding
deploy/seed/identity.py
The secondary-tenant seed flow calls seed_login_ids and adds its inserted-row count to n_login_id.
Identity operation catalog cleanup
tests/stand/api/operations.py
The email stand-in, {email} mapping, and GET /internal/persons/by-email/{email} operation are removed. The catalog count changes to 17.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: cyberantonz, ktursunov

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: adding a login identity for the other-tenant persona.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/test-stand-other-tenant-login

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aleksdotbar
aleksdotbar enabled auto-merge August 5, 2026 03:28
@aleksdotbar
aleksdotbar added this pull request to the merge queue Aug 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Aug 5, 2026
@aleksdotbar
aleksdotbar enabled auto-merge August 5, 2026 04:16
Signed-off-by: Aleksandr Barkhatov <pm@aleks.bar>
Signed-off-by: Aleksandr Barkhatov <pm@aleks.bar>
@aleksdotbar
aleksdotbar force-pushed the fix/test-stand-other-tenant-login branch from ee67f9d to 3732446 Compare August 5, 2026 04:26
@aleksdotbar
aleksdotbar added this pull request to the merge queue Aug 5, 2026
Merged via the queue into main with commit ed1d7ac Aug 5, 2026
43 checks passed
@aleksdotbar
aleksdotbar deleted the fix/test-stand-other-tenant-login branch August 5, 2026 05:29
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.

3 participants