Skip to content

Commit 91b7343

Browse files
fix tests
1 parent d642350 commit 91b7343

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

redisinsight/api/test/api/database/constants.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
import { Joi } from '../../helpers/test';
22
import { caCertSchema, clientCertSchema } from '../certificate/constants';
33

4+
const providers = [
5+
'RE_CLUSTER',
6+
'RE_CLOUD',
7+
'REDIS_STACK',
8+
'REDIS_ENTERPRISE',
9+
'AZURE_CACHE',
10+
'AZURE_CACHE_REDIS_ENTERPRISE',
11+
'REDIS_COMMUNITY_EDITION',
12+
'AWS_ELASTICACHE',
13+
'AWS_MEMORYDB',
14+
'VALKEY',
15+
'MEMORYSTORE',
16+
'DRAGONFLY',
17+
'KEYDB',
18+
'GARNET',
19+
'KVROCKS',
20+
'REDICT',
21+
'UPSTASH',
22+
'UKNOWN_LOCALHOST',
23+
'UNKNOWN',
24+
];
25+
426
export const databaseSchema = Joi.object().keys({
527
id: Joi.string().required(),
628
name: Joi.string().required(),
@@ -14,7 +36,7 @@ export const databaseSchema = Joi.object().keys({
1436
compressor: Joi.string().valid('NONE', 'LZ4', 'GZIP', 'ZSTD', 'SNAPPY').required(),
1537
nameFromProvider: Joi.string().allow(null),
1638
lastConnection: Joi.string().isoDate().allow(null),
17-
provider: Joi.string().valid('LOCALHOST', 'UNKNOWN', 'RE_CLOUD', 'RE_CLUSTER'),
39+
provider: Joi.string().valid(...providers),
1840
new: Joi.boolean().allow(null),
1941
tls: Joi.boolean().allow(null),
2042
tlsServername: Joi.string().allow(null),

0 commit comments

Comments
 (0)