-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Added Red Team tests and pushed new recordings #42711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Red Team tests and pushed new recordings #42711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive Red Team testing functionality to the Azure AI Projects SDK, implementing both synchronous and asynchronous test cases for security vulnerability scanning. The changes include new test files with complete test coverage for Red Team operations and updated test recordings.
- Adds Red Team security testing capabilities with create, get, and list operations
- Implements both sync and async test variants for comprehensive coverage
- Includes robust validation logic for Azure ML properties and Red Team response structure
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
test_redteams_async.py | New async test file implementing Red Team scan operations with proper async/await patterns |
test_redteams.py | New sync test file implementing Red Team scan operations for synchronous client usage |
test_base.py | Enhanced base test class with Red Team validation methods and test parameters |
assets.json | Updated test recording assets tag to include new Red Team test recordings |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines