Skip to content

Fix to complete CI issue: /fix/session timezone and rotation test#262

Open
steadhac wants to merge 3 commits intoGenAI-Security-Project:mainfrom
steadhac:steadhac/fix/session-timezone-and-rotation-test
Open

Fix to complete CI issue: /fix/session timezone and rotation test#262
steadhac wants to merge 3 commits intoGenAI-Security-Project:mainfrom
steadhac:steadhac/fix/session-timezone-and-rotation-test

Conversation

@steadhac
Copy link
Contributor

fix: resolve timezone and stale-assertion gaps missed by 39073eb

  • Apply timezone-naive guard to get_security_status() — same pattern
    already used in should_rotate() and is_too_old() but was missed here
  • Update test_session_rotation_preserves_hmac to match current rotation
    behavior: old session is kept alive briefly (≤60s) for concurrent
    requests, not deleted immediately

…ity-Project#27)

New test files covering definition loading, registry, primitives,
and all six detector implementations. Includes bug-exposing tests
for 13 confirmed production defects (GenAI-Security-Project#117, GenAI-Security-Project#119, GenAI-Security-Project#122GenAI-Security-Project#127, GenAI-Security-Project#128GenAI-Security-Project#131, GenAI-Security-Project#135).

Tests follow established pattern: Title, Basically question, Steps,
Expected Results, Impact.

Parent: Unit tests creation for CD001 GenAI-Security-Project#27
… 57 tests for 6 detector implementations with 5 bug-documenting tests

  (DET-RCE-011, DET-INF-009, DET-TPX-011, DET-TPD-010, DET-IEX-009)
- 27 evaluator tests including 2 bugs (EVAL-IA-006, EVAL-VC-007)
- Route test_evaluators.py
- Apply timezone-naive guard to get_security_status() — same pattern
  already used in should_rotate() and is_too_old() but was missed here
- Update test_session_rotation_preserves_hmac to match current rotation
  behavior: old session is kept alive briefly (≤60s) for concurrent
  requests, not deleted immediately
@saikishu
Copy link
Collaborator

this PR #210 does the same and resolved the issue. Please revisit the change and make adjustments.

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.

2 participants