Skip to content

Commit adcc466

Browse files
committed
Try with 100k docs
1 parent 9ec7857 commit adcc466

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/core/server/integration_tests/saved_objects/migrations/group3/actions/actions_test_suite.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,22 @@ export const runActionTestSuite = ({
117117

118118
await createIndex({
119119
client,
120-
indexName: 'existing_index_with_10k_docs',
121-
aliases: ['existing_index_with_10k_docs_alias'],
120+
indexName: 'existing_index_with_100k_docs',
121+
aliases: ['existing_index_with_100k_docs_alias'],
122122
esCapabilities,
123123
mappings: {
124124
dynamic: true,
125125
properties: {},
126126
},
127127
})();
128-
const docs10k = new Array(10000).fill({
128+
const docs100k = new Array(100000).fill({
129129
_source: { title: new Array(1000).fill('a').join(), type: 'large' },
130-
}) as unknown as SavedObjectsRawDoc[]; // 10k "large" saved objects
130+
}) as unknown as SavedObjectsRawDoc[]; // 100k "large" saved objects
131131

132132
await bulkOverwriteTransformedDocuments({
133133
client,
134-
index: 'existing_index_with_10k_docs',
135-
operations: docs10k.map((doc) => createBulkIndexOperationTuple(doc)),
134+
index: 'existing_index_with_100k_docs',
135+
operations: docs100k.map((doc) => createBulkIndexOperationTuple(doc)),
136136
refresh: 'wait_for',
137137
})();
138138

@@ -1144,7 +1144,7 @@ export const runActionTestSuite = ({
11441144
it('resolves left wait_for_task_completion_timeout when the task does not finish within the timeout', async () => {
11451145
const readyTaskRes = await waitForIndexStatus({
11461146
client,
1147-
index: 'existing_index_with_10k_docs',
1147+
index: 'existing_index_with_100k_docs',
11481148
status: 'yellow',
11491149
timeout: '300s',
11501150
})();
@@ -1153,7 +1153,7 @@ export const runActionTestSuite = ({
11531153

11541154
const res = (await reindex({
11551155
client,
1156-
sourceIndex: 'existing_index_with_10k_docs',
1156+
sourceIndex: 'existing_index_with_100k_docs',
11571157
targetIndex: 'reindex_target',
11581158
reindexScript: Option.none,
11591159
requireAlias: false,
@@ -1491,7 +1491,7 @@ export const runActionTestSuite = ({
14911491
it('resolves left wait_for_task_completion_timeout when the task does not complete within the timeout', async () => {
14921492
const res = (await pickupUpdatedMappings(
14931493
client,
1494-
'existing_index_with_10k_docs',
1494+
'existing_index_with_100k_docs',
14951495
1000
14961496
)()) as Either.Right<UpdateByQueryResponse>;
14971497

0 commit comments

Comments
 (0)