Skip to content

Test/impersonation lifecycle#535

Merged
Baskarayelu merged 10 commits into
CredenceOrg:mainfrom
OluRemiFour:test/impersonation-lifecycle
Jun 23, 2026
Merged

Test/impersonation lifecycle#535
Baskarayelu merged 10 commits into
CredenceOrg:mainfrom
OluRemiFour:test/impersonation-lifecycle

Conversation

@OluRemiFour

Copy link
Copy Markdown
Contributor

Close: #521

I have successfully added the comprehensive lifecycle and concurrency tests for the impersonation token service!

Here is what was completed:

Created src/services/impersonation/impersonation.test.ts matching your test suite conventions using Vitest.
Formally tested issueToken, validateToken, and revokeToken across all criteria, including TTL max bounds rules, rejecting empty reasons, invalid user paths, exactly-expired tokens via a fake clock, and unknown token resets.
Included a spy on the AuditLogService asserting the AuditAction properties appropriately record success / failure alongside the required meta elements like ipAddress parsing.
Cleared npm run build and npm run lint cleanly.
Checked out the new branch test/impersonation-lifecycle and successfully committed the work using your precise commit format!

@OluRemiFour

Copy link
Copy Markdown
Contributor Author

Done, Close: #535

@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@OluRemiFour Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Baskarayelu

Copy link
Copy Markdown
Contributor

impersonation lifecycle — great addition. merging 👍

@Baskarayelu Baskarayelu merged commit 8504141 into CredenceOrg:main Jun 23, 2026
0 of 2 checks passed
@Baskarayelu

Copy link
Copy Markdown
Contributor

impersonation lifecycle — rebased onto main and merged 👍

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.

Add lifecycle and concurrency tests for the impersonation token service

2 participants