You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maintnotifications/e2e/README_SCENARIOS.md
+46-6Lines changed: 46 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,36 @@ This directory contains comprehensive end-to-end test scenarios for Redis push n
7
7
8
8
## Introduction
9
9
10
-
To run those tests you would need a fault injector service, please review the client and feel free to implement your
11
-
fault injector of choice. Those tests are tailored for Redis Enterprise, but can be adapted to other Redis distributions where
12
-
a fault injector is available.
10
+
These tests support two modes:
13
11
14
-
Once you have fault injector service up and running, you can execute the tests by running the `run-e2e-tests.sh` script.
15
-
there are three environment variables that need to be set before running the tests:
12
+
### 1. Mock Proxy Mode (Default)
13
+
Uses a local Docker-based proxy ([cae-resp-proxy](https://github.com/redis-developer/cae-resp-proxy)) to simulate Redis Enterprise behavior. This mode:
14
+
- Runs entirely locally without external dependencies
15
+
- Provides fast feedback for development
16
+
- Simulates cluster topology changes
17
+
- Supports SMIGRATING and SMIGRATED notifications
16
18
19
+
To run in mock proxy mode:
20
+
```bash
21
+
make test.e2e
22
+
```
23
+
24
+
### 2. Real Fault Injector Mode
25
+
Uses a real Redis Enterprise fault injector service for comprehensive testing. This mode:
26
+
- Tests against actual Redis Enterprise clusters
27
+
- Validates real-world scenarios
28
+
- Requires external fault injector setup
29
+
30
+
To run with a real fault injector, set these environment variables:
17
31
-`REDIS_ENDPOINTS_CONFIG_PATH`: Path to Redis endpoints configuration
18
32
-`FAULT_INJECTION_API_URL`: URL of the fault injector server
19
33
-`E2E_SCENARIO_TESTS`: Set to `true` to enable scenario tests
0 commit comments