Skip to content

Commit 76d9df1

Browse files
author
Artem
committed
fix ITests
1 parent 860be16 commit 76d9df1

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

redisinsight/api/test/api/database/GET-databases.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const responseSchema = Joi.array().items(Joi.object().keys({
1313
name: Joi.string().required(),
1414
provider: Joi.string().required(),
1515
new: Joi.boolean().allow(null).required(),
16-
timeout: Joi.number().integer().required(),
16+
timeout: Joi.number().integer().allow(null),
1717
compressor: Joi.string().valid('NONE', 'LZ4', 'GZIP', 'ZSTD', 'SNAPPY').allow(null),
1818
connectionType: Joi.string().valid('STANDALONE', 'SENTINEL', 'CLUSTER', 'NOT CONNECTED').required(),
1919
lastConnection: Joi.string().isoDate().allow(null).required(),

redisinsight/api/test/api/database/PATCH-databases-id.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ describe(`PATCH /databases/:id`, () => {
854854
});
855855
describe('TLS AUTH', function () {
856856
requirements('rte.tls', 'rte.tlsAuth');
857-
857+
858858
it('Should update database with partial sshOptions', async () => {
859859
await validateApiCall({
860860
endpoint,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const databaseSchema = Joi.object().keys({
1010
connectionType: Joi.string().valid('STANDALONE', 'CLUSTER', 'SENTINEL').required(),
1111
username: Joi.string().allow(null),
1212
password: Joi.boolean().allow(null),
13-
timeout: Joi.number().integer().required(),
13+
timeout: Joi.number().integer().allow(null),
1414
compressor: Joi.string().valid('NONE', 'LZ4', 'GZIP', 'ZSTD', 'SNAPPY').required(),
1515
nameFromProvider: Joi.string().allow(null),
1616
lastConnection: Joi.string().isoDate().allow(null),

redisinsight/api/test/helpers/local-db.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,20 @@ export const createDatabaseInstances = async () => {
371371
name: constants.TEST_INSTANCE_NAME_2,
372372
host: constants.TEST_INSTANCE_HOST_2,
373373
db: constants.TEST_REDIS_DB_INDEX,
374+
timeout: 30000,
374375
},
375376
{
376377
id: constants.TEST_INSTANCE_ID_3,
377378
name: constants.TEST_INSTANCE_NAME_3,
378379
host: constants.TEST_INSTANCE_HOST_3,
380+
timeout: 30000,
379381
},
380382
{
381383
id: constants.TEST_INSTANCE_ID_4,
382384
name: constants.TEST_INSTANCE_NAME_4,
383385
host: constants.TEST_INSTANCE_HOST_4,
384386
port: constants.TEST_INSTANCE_PORT_4,
387+
timeout: 30000,
385388
}
386389
];
387390

0 commit comments

Comments
 (0)