Arq0n opened a new pull request, #5785:
URL: https://github.com/apache/texera/pull/5785

   ## Purpose
   
   Add dedicated unit coverage for `SessionUser`, which wraps a generated jOOQ 
`User` POJO and exposes it as a `java.security.Principal`.
   
   ## Summary of Changes
   
   - Added `SessionUserSpec.scala` under 
`common/auth/src/test/scala/org/apache/texera/auth/`.
   - Verifies that `SessionUser`:
     - delegates `Principal#getName` to the wrapped user
     - delegates `getUid`, `getEmail`, and `getGoogleId`
     - returns the same wrapped `User` instance from `getUser`
     - checks roles by exact `UserRoleEnum` equality through `isRoleOf`
   
   ## How Was This PR Tested?
   
   ```bash
   sbt "Auth / testOnly org.apache.texera.auth.SessionUserSpec"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to