Skip to content

Commit 8bf7895

Browse files
author
Artem
committed
#RI-4399 fix UTests + ITests (code)
1 parent bcd02bb commit 8bf7895

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

redisinsight/api/src/modules/bulk-actions/models/bulk-action.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const mockCreateBulkActionDto = {
3737

3838
const mockOverview = {
3939
...mockCreateBulkActionDto,
40-
duration: 0,
40+
duration: jasmine.any(Number),
4141
filter: { match: '*', type: null },
4242
progress: {
4343
scanned: 0,

redisinsight/api/test/api/bulk-actions/POST-databases-id-bulk_actions-import-tutorial_data.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('POST /databases/:id/bulk-actions/import/tutorial-data', () => {
5656
responseBody: {
5757
id: 'empty',
5858
databaseId: constants.TEST_INSTANCE_ID,
59-
type: 'import',
59+
type: 'upload',
6060
summary: { processed: 1, succeed: 1, failed: 0, errors: [] },
6161
progress: null,
6262
filter: null,
@@ -91,7 +91,7 @@ describe('POST /databases/:id/bulk-actions/import/tutorial-data', () => {
9191
responseBody: {
9292
id: 'empty',
9393
databaseId: constants.TEST_INSTANCE_ID,
94-
type: 'import',
94+
type: 'upload',
9595
summary: { processed: 1, succeed: 1, failed: 0, errors: [] },
9696
progress: null,
9797
filter: null,

redisinsight/api/test/api/bulk-actions/POST-databases-id-bulk_actions-import.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('POST /databases/:id/bulk-actions/import', () => {
2424
responseBody: {
2525
id: 'empty',
2626
databaseId: constants.TEST_INSTANCE_ID,
27-
type: 'import',
27+
type: 'upload',
2828
summary: { processed: 1, succeed: 0, failed: 1, errors: [] },
2929
progress: null,
3030
filter: null,
@@ -50,7 +50,7 @@ describe('POST /databases/:id/bulk-actions/import', () => {
5050
responseBody: {
5151
id: 'empty',
5252
databaseId: constants.TEST_INSTANCE_ID,
53-
type: 'import',
53+
type: 'upload',
5454
summary: { processed: 100, succeed: 100, failed: 0, errors: [] },
5555
progress: null,
5656
filter: null,
@@ -80,7 +80,7 @@ describe('POST /databases/:id/bulk-actions/import', () => {
8080
responseBody: {
8181
id: 'empty',
8282
databaseId: constants.TEST_INSTANCE_ID,
83-
type: 'import',
83+
type: 'upload',
8484
summary: { processed: 10_000, succeed: 10_000, failed: 0, errors: [] },
8585
progress: null,
8686
filter: null,
@@ -115,7 +115,7 @@ describe('POST /databases/:id/bulk-actions/import', () => {
115115
responseBody: {
116116
id: 'empty',
117117
databaseId: constants.TEST_INSTANCE_ID,
118-
type: 'import',
118+
type: 'upload',
119119
summary: { processed: 100, succeed: 50, failed: 50, errors: [] },
120120
progress: null,
121121
filter: null,
@@ -156,7 +156,7 @@ describe('POST /databases/:id/bulk-actions/import', () => {
156156
responseBody: {
157157
id: 'empty',
158158
databaseId: constants.TEST_INSTANCE_ID,
159-
type: 'import',
159+
type: 'upload',
160160
summary: { processed: 100_000, succeed: 100_000, failed: 0, errors: [] },
161161
progress: null,
162162
filter: null,

redisinsight/api/test/api/redisearch/POST-databases-id-redisearch-search.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const responseSchema = Joi.object({
3838
maxResults: Joi.number().integer().allow(null).required(),
3939
keys: Joi.array().items(Joi.object({
4040
name: JoiRedisString.required(),
41+
type: Joi.string(),
4142
})).required(),
4243
}).required().strict(true);
4344
const mainCheckFn = getMainCheckFn(endpoint);

0 commit comments

Comments
 (0)