mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[QA] Fixup flaky test (#156373)
## Summary Resolves https://github.com/elastic/kibana/issues/136856 - Add async keyword where it should have been. - Split archive into kbn and es archives... instigated by Pierre's comment: https://github.com/elastic/kibana/issues/136856#issuecomment-1253609280 - Note: Had to use both archive types as one archive is "hidden", and cannot be accessed via the kbn client. - Unload via Pierre's "new" clean method. - Add shell fn to print out server's currently loaded so's, with user and pass hardcoded for local dev.
This commit is contained in:
parent
6df32fd23b
commit
d1feb43722
10 changed files with 138 additions and 85 deletions
|
@ -19,12 +19,11 @@
|
|||
|
||||
standard_list="url,index-pattern,query,graph-workspace,tag,visualization,canvas-element,canvas-workpad,dashboard,search,lens,map,cases,uptime-dynamic-settings,osquery-saved-query,osquery-pack,infrastructure-ui-source,metrics-explorer-view,inventory-view,infrastructure-monitoring-log-view,apm-indices"
|
||||
|
||||
orig_archive="x-pack/test/functional/es_archives/security_solution/timelines/7.15.0_space"
|
||||
new_archive="x-pack/test/functional/fixtures/kbn_archiver/security_solution/timelines/7.15.0_space"
|
||||
orig_archive="test/functional/fixtures/es_archiver/saved_objects_management/hidden_saved_objects"
|
||||
new_archive="x-pack/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_saved_objects"
|
||||
testFiles=("test/plugin_functional/test_suites/saved_objects_management/scroll_count.ts")
|
||||
|
||||
testFiles=("x-pack/test/api_integration/apis/security_solution/timeline_migrations.ts")
|
||||
|
||||
test_config="x-pack/test/api_integration/config.ts"
|
||||
test_config="test/plugin_functional/config.ts"
|
||||
|
||||
list_stragglers() {
|
||||
|
||||
|
@ -387,13 +386,27 @@ load_kbn() {
|
|||
local space=${1:-default}
|
||||
local archive=${2:-${new_archive}}
|
||||
|
||||
set -x
|
||||
node scripts/kbn_archiver.js --config "$test_config" load "$archive" --space "$space"
|
||||
set +x
|
||||
}
|
||||
|
||||
load_kbn_list() {
|
||||
local space=${1:-default}
|
||||
local archive=${2:-${new_archive}}
|
||||
local newArchives=("${:-${archive}}")
|
||||
|
||||
for x in "${newArchives[@]}"; do
|
||||
set -x
|
||||
node scripts/kbn_archiver.js --config "$test_config" load "$x" --space "$space"
|
||||
set +x
|
||||
load_kbn default "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
print_so_types() {
|
||||
set -x
|
||||
node scripts/saved_objs_info.js --esUrl http://elastic:changeme@localhost:9220
|
||||
set +x
|
||||
}
|
||||
|
||||
load_created_kbn_archive() {
|
||||
set -x
|
||||
node scripts/kbn_archiver.js --config "$test_config" load "$new_archive"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue