kibana/x-pack/test/reporting_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
..
reporting_and_deprecated_security [esArchiver] restrict from modifying saved objects indexes (#169852) 2023-10-27 11:27:10 -07:00
reporting_and_security [esArchiver] restrict from modifying saved objects indexes (#169852) 2023-10-27 11:27:10 -07:00
reporting_without_security [Reporting] Remove PNG V1 (#162517) 2023-08-02 14:30:41 -06:00
services [Canvas] Fix flaky test failures when navigating to Canvas app (#164376) 2023-09-19 13:10:36 -07:00
ftr_provider_context.d.ts
reporting_and_deprecated_security.config.ts
reporting_and_security.config.ts [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
reporting_without_security.config.ts Remove deprecated xpack.security.enabled config option (#111681) 2021-10-25 14:12:05 -04:00