Skip to content

Commit 2b0a1f6

Browse files
committed
tests: rename maint options
according to the latest client options
1 parent f33568e commit 2b0a1f6

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

packages/client/lib/tests/test-scenario/configuration.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "./test-scenario.util";
1212
import { createClient } from "../../..";
1313
import { FaultInjectorClient } from "./fault-injector-client";
14-
import { MovingEndpointType } from "../../../dist/lib/client/enterprise-maintenance-manager";
14+
import { MovingEndpointType } from "../../../lib/client/enterprise-maintenance-manager";
1515
import { RedisTcpSocketOptions } from "../../client/socket";
1616

1717
describe("Client Configuration and Handshake", () => {
@@ -59,7 +59,7 @@ describe("Client Configuration and Handshake", () => {
5959
it(`clientHandshakeWithEndpointType '${endpointType}'`, async () => {
6060
try {
6161
client = await createTestClient(clientConfig, {
62-
maintMovingEndpointType: endpointType,
62+
maintEndpointType: endpointType
6363
});
6464
client.on("error", () => {});
6565

@@ -154,7 +154,7 @@ describe("Client Configuration and Handshake", () => {
154154
describe("Feature Enablement", () => {
155155
it("connectionHandshakeIncludesEnablingNotifications", async () => {
156156
client = await createTestClient(clientConfig, {
157-
maintPushNotifications: "enabled",
157+
maintNotifications: "enabled"
158158
});
159159

160160
const { action_id } = await faultInjectorClient.migrateAndBindAction({
@@ -180,7 +180,7 @@ describe("Client Configuration and Handshake", () => {
180180
it("disabledDontReceiveNotifications", async () => {
181181
try {
182182
client = await createTestClient(clientConfig, {
183-
maintPushNotifications: "disabled",
183+
maintNotifications: "disabled",
184184
socket: {
185185
reconnectStrategy: false
186186
}

packages/client/lib/tests/test-scenario/connection-handoff.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,25 @@ describe("Connection Handoff", () => {
8686
{
8787
name: "external-ip",
8888
clientOptions: {
89-
maintMovingEndpointType: "external-ip",
89+
maintEndpointType: "external-ip",
9090
},
9191
},
9292
{
9393
name: "external-fqdn",
9494
clientOptions: {
95-
maintMovingEndpointType: "external-fqdn",
95+
maintEndpointType: "external-fqdn",
9696
},
9797
},
9898
{
9999
name: "auto",
100100
clientOptions: {
101-
maintMovingEndpointType: "auto",
101+
maintEndpointType: "auto",
102102
},
103103
},
104104
{
105105
name: "none",
106106
clientOptions: {
107-
maintMovingEndpointType: "none",
107+
maintEndpointType: "none",
108108
},
109109
},
110110
];

packages/client/lib/tests/test-scenario/negative-tests.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe("Negative tests", () => {
77
() =>
88
createClient({
99
RESP: 2,
10-
maintPushNotifications: "enabled",
10+
maintNotifications: "enabled",
1111
}),
1212
"Error: Graceful Maintenance is only supported with RESP3",
1313
);

packages/client/lib/tests/test-scenario/push-notification.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe("Push Notifications", () => {
140140
describe("Push Notifications Disabled - Client", () => {
141141
beforeEach(async () => {
142142
client = await createTestClient(clientConfig, {
143-
maintPushNotifications: "disabled",
143+
maintNotifications: "disabled",
144144
});
145145

146146
client.on("error", (_err) => {

packages/client/lib/tests/test-scenario/test-scenario.util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ export async function createTestClient(
163163
password: clientConfig.password,
164164
username: clientConfig.username,
165165
RESP: 3,
166-
maintPushNotifications: "auto",
167-
maintMovingEndpointType: "auto",
166+
maintNotifications: "auto",
167+
maintEndpointType: "auto",
168168
...options,
169169
});
170170

0 commit comments

Comments
 (0)