1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Add Redis transparent proxy test utilities (#3019)

This commit is contained in:
Bobby I.
2025-07-23 18:21:13 +03:00
committed by GitHub
parent 0541b32f34
commit 4ae14bb558
5 changed files with 509 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import TestUtils from './index'
export const testUtils = TestUtils.createFromConfig({
dockerImageName: 'redislabs/client-libs-test',
dockerImageVersionArgument: 'redis-version',
defaultDockerVersion: '8.2-M01-pre'
});
export const DEBUG_MODE_ARGS = testUtils.isVersionGreaterThan([7]) ?
['--enable-debug-command', 'yes'] :
[];
export const GLOBAL = {
SERVERS: {
OPEN_RESP_3: {
serverArguments: [...DEBUG_MODE_ARGS],
clientOptions: {
RESP: 3,
}
},
}
}