[PM-39455] Organization user v2 upgrade token repository tests - #8168
mzieniukbw merged 4 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8168 +/- ##
==========================================
+ Coverage 63.29% 68.71% +5.41%
==========================================
Files 2383 2383
Lines 103921 103921
Branches 9403 9403
==========================================
+ Hits 65779 71411 +5632
+ Misses 35898 30168 -5730
- Partials 2244 2342 +98 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Cover OrganizationUserRepository.UpdateForKeyRotation across all four providers: it persists the reset password key and the V2 upgrade token together, clears a token left over from an earlier upgrade, and leaves another member's membership untouched. These need both the V2UpgradeToken column and the shared rotation transaction, so they are kept out of the branches that add each.
…en-repository-tests
0967486 to
45a6aa2
Compare
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This is a test-only change adding database integration tests for I traced each assertion against both the Dapper ( Code Review DetailsNo findings. Notes considered and intentionally not raised as findings:
|
JaredSnider-Bitwarden
left a comment
There was a problem hiding this comment.
Auth changes are only a test file - approving.
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-39455
📔 Objective
Adds database integration tests for organization user v2 upgrade token added in #8158, that would otherwise be not possible, without #8165 first.
This will be used as a baseline for regression testing of key rotation, which includes both changes from both PRs.
Also adds emergency access key rotation integration tests.
📸 Screenshots