maintnotifications/e2e/README_SCENARIOS.md
This directory contains comprehensive end-to-end test scenarios for Redis push notifications and maintenance notifications functionality. Each scenario tests different aspects of the system under various conditions.
Maintenance notifications are currently supported only in standalone Redis clients. Cluster clients (ClusterClient, FailoverClient, etc.) do not yet support maintenance notifications functionality.
These tests support two modes:
Uses a local Docker-based proxy (cae-resp-proxy) to simulate Redis Enterprise behavior. This mode:
To run in mock proxy mode:
make test.e2e
Uses a real Redis Enterprise fault injector service for comprehensive testing. This mode:
To run with a real fault injector, set these environment variables:
REDIS_ENDPOINTS_CONFIG_PATH: Path to Redis endpoints configurationFAULT_INJECTION_API_URL: URL of the fault injector serverE2E_SCENARIO_TESTS: Set to true to enable scenario testsThen run:
./scripts/run-e2e-tests.sh
scenario_push_notifications_test.go)Original template scenario
scenario_endpoint_types_test.go)Different endpoint resolution strategies
scenario_unified_injector_test.go)Mock proxy-based notification testing
scenario_database_management_test.go)Dynamic database creation and deletion
See DATABASE_MANAGEMENT.md for detailed documentation on database management endpoints.
scenario_timeout_configs_test.go)Various timeout strategies
scenario_tls_configs_test.go)Security and encryption testing framework
scenario_stress_test.go)Extreme load and concurrent operations
E2E_SCENARIO_TESTS=true# Run a specific scenario
E2E_SCENARIO_TESTS=true go test -v ./maintnotifications/e2e -run TestEndpointTypesPushNotifications
# Run with timeout
E2E_SCENARIO_TESTS=true go test -v -timeout 30m ./maintnotifications/e2e -run TestStressPushNotifications
./scripts/run-e2e-tests.sh
dump = true to see full log analysis