forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.17][Rollup] Unskip 7.17 rollup functional tests (elastic#187350)
Fixes elastic#184229 Fixes elastic#184230 Fixes elastic#184277 Fixes elastic#184278 Fixes elastic#184357 Fixes elastic#57065 ## Summary This PR unskips the 7.17 rollup functional tests which failed during the 7.17 ES 8.15 forward compatibility tests. To run the tests locally with ES 8.15: ``` ES_SNAPSHOT_MANIFEST="https://storage.googleapis.com/kibana-ci-es-snapshots-daily/8.15.0/manifest-latest-verified.json" node scripts/functional_tests_server.js --config x-pack/test/functional/config.js ``` ``` ES_SNAPSHOT_MANIFEST="https://storage.googleapis.com/kibana-ci-es-snapshots-daily/8.15.0/manifest-latest-verified.json" node scripts/functional_test_runner.js --config x-pack/test/functional/config.js --grep="rollup job" ``` --------- Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Alison Goryachev <[email protected]>
- Loading branch information
Showing
4 changed files
with
73 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const MOCK_ROLLUP_INDEX_NAME = 'mock-rollup-index'; | ||
|
||
export const createMockRollupIndex = async (es) => { | ||
await es.indices.create({ | ||
index: MOCK_ROLLUP_INDEX_NAME, | ||
body: { | ||
mappings: { | ||
_meta: { | ||
_rollup: { | ||
logs_job: { | ||
id: 'mockRollupJob', | ||
index_pattern: MOCK_ROLLUP_INDEX_NAME, | ||
rollup_index: 'rollup_index', | ||
cron: '0 0 0 ? * 7', | ||
page_size: 1000, | ||
groups: { | ||
date_histogram: { | ||
interval: '24h', | ||
delay: '1d', | ||
time_zone: 'UTC', | ||
field: 'testCreatedField', | ||
}, | ||
terms: { | ||
fields: ['testTotalField', 'testTagField'], | ||
}, | ||
histogram: { | ||
interval: '7', | ||
fields: ['testTotalField'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
'rollup-version': '', | ||
}, | ||
}, | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters