mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Archive Migrations] x-pack spaces-multi-space (#139552)
Replaces the old es archive with kbn archive. Change test to use new archive. Helps with: elastic#102552
This commit is contained in:
parent
09b2a49494
commit
114bc85ee2
8 changed files with 220 additions and 461 deletions
|
@ -1,24 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
# ??? Should we migrate
|
||||
# x-pack/test/functional/es_archives/dashboard/feature_controls/spaces
|
||||
# x-pack/test/functional/es_archives/spaces/multi_space
|
||||
# ### Yes, it needs migration
|
||||
# ### Saved Object type(s) that we care about:
|
||||
# dashboard
|
||||
# index-pattern
|
||||
# visualization
|
||||
# ### Test file(s) that use it:
|
||||
# x-pack/test/functional/apps/dashboard/group1/feature_controls/dashboard_spaces.ts
|
||||
# x-pack/test/functional/apps/discover/preserve_url.ts
|
||||
# x-pack/test/functional/apps/visualize/preserve_url.ts
|
||||
# x-pack/test/functional/apps/dashboard/group1/preserve_url.ts
|
||||
# ### Config(s) that govern the test file(s):
|
||||
# x-pack/test/functional/apps/dashboard/group1/config.ts
|
||||
# x-pack/test/functional/apps/discover/config.ts
|
||||
# x-pack/test/functional/apps/visualize/config.ts
|
||||
|
||||
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/dashboard/feature_controls/spaces"
|
||||
new_archive="x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space"
|
||||
newArchives=("x-pack/test/functional/fixtures/kbn_archiver/dashboard/feature_controls/custom_space")
|
||||
newArchives+=("x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce_kibana_non_timezone_space")
|
||||
orig_archive="x-pack/test/functional/es_archives/spaces/multi_space"
|
||||
new_archive="x-pack/test/functional/fixtures/kbn_archiver/spaces/multi_space"
|
||||
|
||||
# newArchives=("x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_space")
|
||||
# newArchives+=("x-pack/test/functional/fixtures/kbn_archiver/dashboard/session_in_another_space")
|
||||
|
||||
testFiles=("x-pack/test/functional/apps/discover/preserve_url.ts")
|
||||
testFiles+=("x-pack/test/functional/apps/visualize/preserve_url.ts")
|
||||
testFiles+=("x-pack/test/functional/apps/dashboard/group1/preserve_url.ts")
|
||||
|
||||
test_config="x-pack/test/functional/apps/dashboard/group1/config.ts"
|
||||
# test_config="x-pack/test/functional/apps/discover/config.ts"
|
||||
# test_config="x-pack/test/functional/apps/visualize/config.ts"
|
||||
|
||||
curl_so_count() {
|
||||
local so=${1:-search-session}
|
||||
|
@ -356,14 +368,7 @@ save_kbn() {
|
|||
|
||||
load_kbn() {
|
||||
local space=${1:-default}
|
||||
|
||||
set -x
|
||||
node scripts/kbn_archiver.js --config "$test_config" load "$new_archive" --space "$space"
|
||||
set +x
|
||||
}
|
||||
|
||||
load_kbns() {
|
||||
local space=${1:-default}
|
||||
local archive=${2:-${new_archive}}
|
||||
|
||||
for x in "${newArchives[@]}"; do
|
||||
set -x
|
||||
|
@ -379,8 +384,9 @@ load_created_kbn_archive() {
|
|||
}
|
||||
|
||||
unload_kbn() {
|
||||
local archive=${1:-${new_archive}}
|
||||
set -x
|
||||
node scripts/kbn_archiver.js --config "$test_config" unload "$new_archive"
|
||||
node scripts/kbn_archiver.js --config "$test_config" unload "$archive"
|
||||
set +x
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue