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

   ### What changes were proposed in this PR?
   
   Add unit test coverage for three `common/auth` classes, selected from the 
Codecov report. No production-code changes.
   
   | File | Codecov before | What the tests pin |
   | --- | --- | --- |
   | `JwtAuth.scala` | 55% | `jwtClaims` maps every `User` field onto its 
claim; expiry is derived from `AuthConfig` (the `expireInDays` arg is ignored — 
a real quirk); token round-trips back through `JwtParser`; null optional fields 
don't error |
   | `RequestLoggingFilter.scala` | 0% | `doFilter` delegates to the chain and 
logs the request line; `register` wires the filter onto the servlet context for 
all dispatch types (mockito for the servlet/jetty types) |
   | `UserActivityTracker.scala` | 28.6% | extends the existing spec to cover 
the `markActive` and `evictStale` catch blocks (via a throwing clock) |
   
   ### Any related issues, documentation, discussions?
   
   Follow-up to the review feedback on #6043: prioritize tests that fill 
uncovered code paths.
   
   ### How was this PR tested?
   
   - `sbt "Auth/testOnly *JwtAuthSpec *RequestLoggingFilterSpec 
*UserActivityTrackerSpec"` — 15 tests, all green
   - `sbt "Auth/Test/scalafmtCheck"` and `sbt "Auth/scalafixAll --check"` — 
clean
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
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