-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generators: add option to specify HTTP codes to skip generation on, f…
…or `RestGenerator` (#999) Some prompts are difficult for some endpoints to respond to. This patch offers a way for garak to skip those prompts, if the generation failure is expressed in an endpoint HTTP response code (e.g. `400`) ## Verification - [ ] Run the tests and ensure they pass `python -m pytest tests/` - [ ] Run a restgenerator against an endpoint that returns 400; there should be a `None` returned by the generator and the probe should present as SKIP on the CLI - [ ] Docs added in PR ## Context Targets issue raised in https://discord.com/channels/1121536128269422654/1121536129099907190/1305844548181692416
- Loading branch information
Showing
3 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters