Skip to content

Conversation

kiryazovi-redis
Copy link
Contributor

@kiryazovi-redis kiryazovi-redis commented Aug 21, 2025

Pull Request check-list

Please make sure to review and check all of these items:

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

Description of change

Adding boilerplate for fault_injection_client.
This can and will be used and enlarged during the maintenence events and AA initiatives.

This commit introduces a comprehensive fault injector client that provides
a Python interface for interacting with Redis Enterprise fault injection
services. The client supports:

- Multiple action types (DMC restart, failover, reshard, network failure)
- Direct rladmin command execution
- Sequence of actions for complex testing scenarios
- Full HTTP API integration with proper error handling
- Debug output for troubleshooting test scenarios

The fault injector client enables automated testing of Redis Enterprise
cluster resilience and failover scenarios, supporting the CAE client
testing framework approach for real enterprise server integration.
- Fixed whitespace in blank lines (W293)
- Added trailing newline at end of file (W292)
- Applied ruff formatting for consistent code style:
  * Improved line breaks for long function signatures
  * Consistent quote style (single to double quotes)
  * Proper parameter alignment and indentation

All linting checks now pass:
- ruff check: ✅ All checks passed
- ruff format: ✅ Code properly formatted
- vulture: ✅ No dead code detected
@petyaslavova petyaslavova added the maintenance Maintenance (CI, Releases, etc) label Aug 21, 2025
@petyaslavova petyaslavova merged commit b5a8ef0 into redis:master Aug 25, 2025
69 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance (CI, Releases, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants