Skip to content

test(user): Add unit tests for user profile, switch primary key to UUID#38

Merged
RandomProgramm3r merged 2 commits intomainfrom
develop
May 2, 2025
Merged

test(user): Add unit tests for user profile, switch primary key to UUID#38
RandomProgramm3r merged 2 commits intomainfrom
develop

Conversation

@RandomProgramm3r
Copy link
Owner

BREAKING CHANGE: changes User.id from integer to UUID.

  • Cover profile retrieval (GET) and detailed field assertions
  • Validate error responses for empty names, invalid avatar URLs, and weak passwords
  • Test full CRUD flow: update name, avatar URL, password change with persistence checks
  • Ensure legacy JWT remains valid after password update
  • Verify authentication rejects old password and accepts new password

- Cover profile retrieval (GET) and detailed field assertions
- Validate error responses for empty names, invalid avatar URLs, and weak passwords
- Test full CRUD flow: update name, avatar URL, password change with persistence checks
- Ensure legacy JWT remains valid after  password update
- Verify authentication rejects old password and accepts new password
BREAKING CHANGE: changes User.id from integer to UUID.
@RandomProgramm3r RandomProgramm3r merged commit 101ef91 into main May 2, 2025
2 checks passed
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.

1 participant