1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-12 21:21:15 +03:00

tests: Adjust scenario tests according to latest maint naming changes (#3090)

* rename maint options according to the latest client options
* adjust env variables
cae repo uses RE_FAULT_INJECTOR_URL for fault injector
DATABASE_NAME is needed to choose from the many databases in cae
* fix connection cleanup test
This commit is contained in:
Nikolay Karadzhov
2025-10-06 18:30:18 +03:00
committed by GitHub
parent 0438865b8a
commit adb19c5c5f
9 changed files with 419 additions and 209 deletions

View File

@@ -11,7 +11,7 @@ import {
} from "./test-scenario.util";
import { createClient } from "../../..";
import { FaultInjectorClient } from "./fault-injector-client";
import { MovingEndpointType } from "../../../dist/lib/client/enterprise-maintenance-manager";
import { MovingEndpointType } from "../../../lib/client/enterprise-maintenance-manager";
import { RedisTcpSocketOptions } from "../../client/socket";
describe("Client Configuration and Handshake", () => {
@@ -59,7 +59,7 @@ describe("Client Configuration and Handshake", () => {
it(`clientHandshakeWithEndpointType '${endpointType}'`, async () => {
try {
client = await createTestClient(clientConfig, {
maintMovingEndpointType: endpointType,
maintEndpointType: endpointType
});
client.on("error", () => {});
@@ -154,7 +154,7 @@ describe("Client Configuration and Handshake", () => {
describe("Feature Enablement", () => {
it("connectionHandshakeIncludesEnablingNotifications", async () => {
client = await createTestClient(clientConfig, {
maintPushNotifications: "enabled",
maintNotifications: "enabled"
});
const { action_id } = await faultInjectorClient.migrateAndBindAction({
@@ -180,7 +180,7 @@ describe("Client Configuration and Handshake", () => {
it("disabledDontReceiveNotifications", async () => {
try {
client = await createTestClient(clientConfig, {
maintPushNotifications: "disabled",
maintNotifications: "disabled",
socket: {
reconnectStrategy: false
}