Repository navigation
Split VMM identity tests by concern - #11543
Merged
Merged
Conversation
Co-authored-by: lpcox <[email protected]>
Copilot
AI
changed the title
[WIP] Refactor vmm-identity tests by splitting concerns
Split VMM identity tests by concern
Nov 13, 2026
lpcox
marked this pull request as ready for review
November 13, 2026 15:44
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Human verification is needed to ensure the security-sensitive test and stateful mock refactor preserves account-lock lifecycle behavior under the repository’s actual Jest/ts-jest execution.
No open issues 🎉
What changed in this PR
This test-only refactor splits the VMM identity suite into focused classification, lifecycle, and locking suites while preserving all 47 test declarations and leaving production code unchanged.
Changes:
- Extracts shared tool paths and dependency mocks into a reusable test utility.
- Separates identity classification, lifecycle, and locking coverage into focused files.
- Keeps lifecycle-specific fixtures local and groups lock and stale-lock scenarios together.
| File | Description |
|---|---|
| src/cloud-hypervisor/vmm-identity.test-utils.ts | Provides shared VMM tool-path constants and dependency mock factories. |
| src/cloud-hypervisor/vmm-identity-lock.test.ts | Contains account-lock, stale-lock, reaper, ownership, and concurrency tests. |
| src/cloud-hypervisor/vmm-identity-lifecycle.test.ts | Contains account, ACL, cleanup, and resource lifecycle tests using shared fixtures. |
| src/cloud-hypervisor/vmm-identity-classification.test.ts | Contains focused VMM ACL identity classification and validation tests. |
Review effort: Lite (dynamic)
Contributor
|
✅ Copilot review passed with no inline comments. @copilot Add the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 1,678-line VMM identity suite interleaved classification, account/ACL lifecycle, and lock-race coverage. This refactor separates those concerns while preserving all 47 test declarations unchanged.
vmm-identity.test-utils.ts; keep lifecycle-only fixtures local.