Skip to content

test: harden red-team scorecard coverage and add PyRIT Crescendo unit tests - #76

Merged
ikrispin merged 3 commits into
RHEcosystemAppEng:mainfrom
ikrispin:test/redteam-unit-coverage
Sep 8, 2026
Merged

test: harden red-team scorecard coverage and add PyRIT Crescendo unit tests#76
ikrispin merged 3 commits into
RHEcosystemAppEng:mainfrom
ikrispin:test/redteam-unit-coverage

Conversation

@ikrispin

Copy link
Copy Markdown
Contributor

Summary

  • Harden red-team unit tests: call real aggregate_scorecard() for the security gate (no mirrored logic), and cover get_plugins() defaults / custom policy / smoke↔full parity
  • Add tests/test_pyrit_crescendo.py for deferred feat: add PyRIT Crescendo adaptive multi-turn to red-team task #66 coverage: objective resolution, enabled: false / ASE / MCP skips, judge parse + fail-open, A2A contextId threading, MCP send_to_target skip

Test plan

  • pytest tests/test_redteam.py tests/test_pyrit_crescendo.py
  • ruff check / ruff format on those files

@ikrispin
ikrispin requested a review from GuyZivRH August 13, 2026 09:04
@ikrispin
ikrispin force-pushed the test/redteam-unit-coverage branch from 08a6097 to 93dbae3 Compare September 8, 2026 06:59
… tests

Exercise real aggregate_scorecard() for the red_team gate, cover get_plugins,
and add deferred runner/judge/skip-path tests for scripts/pyrit_crescendo.
CI collects tests/test_pyrit_crescendo.py which imports a2a_client/httpx.
@ikrispin
ikrispin force-pushed the test/redteam-unit-coverage branch from 93dbae3 to b3db5ef Compare September 8, 2026 09:25
@ikrispin
ikrispin merged commit a81630a into RHEcosystemAppEng:main Sep 8, 2026
4 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.

2 participants