kibana/test/functional
Dzmitry Lemechko 6698810958
[esArchiver] restrict from modifying saved objects indexes (#169852)
## Summary

Related to #161882

The goal is to prevent FTR tests from new esArchives that overrides SO
indexes.

This PR adds the existing archives that re-create Saved Objects indexes
into temporary exception list, located in
`packages/kbn-es-archiver/src/fixtures/override_saved_objects_index/exception_list.json`.
Whenever tests/archives are updated to not modify SO indexes, archive is
expected to be removed from the list (progress can be tracked in
#169075, #168973, #168969, #168926 )

Load action has a check if index is SO index and if the archive is in
the exception list. This will throw error for the new archives, but
still work as usual for the existing ones while teams updating the
tests.

Whenever test is loading archive listed in the exception list, the
following warning message is logged:
```
warn x-pack/test/functional/es_archives/data/search_sessions overrides Saved Objects index(es) and placed temporary in the exception list.
Please fix the archive and remove it from /Users/dmle/github/kibana/packages/kbn-es-archiver/src/fixtures/override_saved_objects_index/exception_list.json.
For more details see: https://github.com/elastic/kibana/issues/161882
```

If the test loads a newly added archive that modifies a Saved Object
index (e.g. `.kibana`), esArchiver will throw the error:
```
 Error: esArchiver doesn't support modifying the existing Saved Objects index: '.kibana_1',
 please update its definition in mappings.json
```
2023-10-27 11:27:10 -07:00
..
apps [Serverless] Fix "Discover" breadcrumb preserve context (#169789) 2023-10-27 04:05:02 -07:00
firefox [Discover] Unskip flaky field token tests (#168130) 2023-10-10 11:25:12 +02:00
fixtures [esArchiver] restrict from modifying saved objects indexes (#169852) 2023-10-27 11:27:10 -07:00
page_objects [DataView] View mapping conflicts (#169381) 2023-10-27 03:35:10 -07:00
screenshots Update dependency @elastic/charts to v60 (main) (#166799) 2023-10-02 11:42:24 -04:00
services unskips application leave confirm & application deep links tests (#168741) 2023-10-19 06:03:24 -07:00
config.base.js [Fleet] Task to publish Agent metrics (#168435) 2023-10-18 13:49:16 +02:00
config.ccs.ts Getting started ccs tests (#144656) 2022-11-07 18:30:07 -05:00
config.edge.js [ftr] create config file for each tested plugin with firefox tests (#150873) 2023-02-11 00:51:57 +01:00
ftr_provider_context.ts [ftr] implement FtrService classes and migrate common services (#99546) 2021-05-25 09:25:09 -07:00
jest.config.js Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
README.md Fix dead links to functional testing docs (#85097) 2020-12-14 17:00:53 +01:00

Kibana Functional Testing

See our Functional Testing Guide