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.
Removing esArchiver in favor of testDataLoader for
bulk_get
Saved O…
…bjects integration tests (elastic#140998) * Removing esArchiver in favor of testDataLoader * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Adding test data for loader * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Adding generic TestDataLoader * Importing just the type per PR feedback * Changing testDataLoader function names to be more descriptive Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Larry Gregory <[email protected]> Co-authored-by: Thomas Watson <[email protected]>
- Loading branch information
1 parent
a2a2418
commit 4f130ad
Showing
9 changed files
with
401 additions
and
62 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
163 changes: 163 additions & 0 deletions
163
x-pack/test/saved_object_api_integration/common/fixtures/kbn_archiver/default_space.json
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,163 @@ | ||
{ | ||
"attributes": { | ||
"title": "logstash-*" | ||
}, | ||
"coreMigrationVersion": "8.4.0", | ||
"id": "defaultspace-index-pattern-id", | ||
"migrationVersion": { | ||
"index-pattern": "8.0.0" | ||
}, | ||
"originId": "cts_ip_1", | ||
"references": [], | ||
"type": "index-pattern", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzUyOCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "Count of requests", | ||
"uiStateJSON": "{\"spy\":{\"mode\":{\"name\":null,\"fill\":false}}}", | ||
"version": 1, | ||
"visState": "{\"title\":\"Count of requests\",\"type\":\"area\",\"params\":{\"type\":\"area\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Count\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"area\",\"mode\":\"stacked\",\"data\":{\"label\":\"Count\",\"id\":\"1\"},\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"interpolate\":\"linear\",\"valueAxis\":\"ValueAxis-1\"}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"@timestamp\",\"interval\":\"auto\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{}}}]}", | ||
"description": "", | ||
"kibanaSavedObjectMeta": { | ||
"searchSourceJSON": "{\"index\":\"defaultspace-index-pattern-id\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}" | ||
} | ||
}, | ||
"id": "defaultspace-isolatedtype-id", | ||
"references": [], | ||
"type": "isolatedtype", | ||
"updated_at": "2017-09-21T18:51:23.794Z", | ||
"version": "WzQ4NywxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "Requests", | ||
"kibanaSavedObjectMeta": { | ||
"searchSourceJSON": "{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[],\"highlightAll\":true,\"version\":true}" | ||
} | ||
}, | ||
"coreMigrationVersion": "8.4.0", | ||
"id": "defaultspace-dashboard-id", | ||
"migrationVersion": { | ||
"dashboard": "8.4.0" | ||
}, | ||
"type": "dashboard", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzUyMCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A share-capable (isolated) saved-object only in the default space" | ||
}, | ||
"id": "only_default_space", | ||
"type": "sharecapabletype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A shared saved-object in all spaces" | ||
}, | ||
"id": "all_spaces", | ||
"type": "sharedtype", | ||
"references": [], | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ5NywxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "My favorite global object" | ||
}, | ||
"id": "globaltype-id", | ||
"references": [], | ||
"type": "globaltype", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzQ4NywxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A shared saved-object in the default and space_1 spaces" | ||
}, | ||
"id": "default_and_space_1", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A sharedtype saved-object with id: conflict_1" | ||
}, | ||
"id": "conflict_1", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A sharedtype saved-object with id: conflict_2a" | ||
}, | ||
"id": "conflict_2a", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A sharedtype saved-object with id: conflict_2b" | ||
}, | ||
"id": "conflict_2b", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A sharedtype saved-object with id: conflict_3" | ||
}, | ||
"id": "conflict_3", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A sharedtype saved-object with id: conflict_4a" | ||
}, | ||
"id": "conflict_4a", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "Resolve outcome exactMatch" | ||
}, | ||
"id": "exact-match", | ||
"type": "resolvetype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "Resolve outcome aliasMatch" | ||
}, | ||
"id": "alias-match-newid", | ||
"type": "resolvetype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
72 changes: 72 additions & 0 deletions
72
x-pack/test/saved_object_api_integration/common/fixtures/kbn_archiver/space_1.json
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,72 @@ | ||
|
||
|
||
{ | ||
"attributes": { | ||
"title": "logstash-*" | ||
}, | ||
"coreMigrationVersion": "8.4.0", | ||
"id": "space1-index-pattern-id", | ||
"migrationVersion": { | ||
"index-pattern": "8.0.0" | ||
}, | ||
"references": [], | ||
"type": "index-pattern", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzUyOSwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"description": "", | ||
"kibanaSavedObjectMeta": { | ||
"searchSourceJSON": "{\"index\":\"space1-index-pattern-id\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}" | ||
}, | ||
"title": "Count of requests", | ||
"uiStateJSON": "{\"spy\":{\"mode\":{\"name\":null,\"fill\":false}}}", | ||
"version": 1, | ||
"visState": "{\"title\":\"Count of requests\",\"type\":\"area\",\"params\":{\"type\":\"area\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Count\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"area\",\"mode\":\"stacked\",\"data\":{\"label\":\"Count\",\"id\":\"1\"},\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"interpolate\":\"linear\",\"valueAxis\":\"ValueAxis-1\"}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"@timestamp\",\"interval\":\"auto\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{}}}]}" | ||
}, | ||
"id": "space1-isolatedtype-id", | ||
"references": [], | ||
"type": "isolatedtype", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzQ4NywxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "Requests", | ||
"kibanaSavedObjectMeta": { | ||
"searchSourceJSON": "{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[],\"highlightAll\":true,\"version\":true}" | ||
}, | ||
"version": 1 | ||
}, | ||
"coreMigrationVersion": "8.4.0", | ||
"id": "space1-dashboard-id", | ||
"migrationVersion": { | ||
"dashboard": "8.4.0" | ||
}, | ||
"type": "dashboard", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzUyMCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A shared saved-object only in space_1" | ||
}, | ||
"id": "only_space_1", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A share-capable (isolated) saved-object only in space_1" | ||
}, | ||
"id": "only_space_1", | ||
"type": "sharecapabletype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} |
58 changes: 58 additions & 0 deletions
58
x-pack/test/saved_object_api_integration/common/fixtures/kbn_archiver/space_2.json
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,58 @@ | ||
{ | ||
"attributes": { | ||
"title": "logstash-*" | ||
}, | ||
"coreMigrationVersion": "8.4.0", | ||
"id": "space2-index-pattern-id", | ||
"migrationVersion": { | ||
"index-pattern": "8.0.0" | ||
}, | ||
"references": [], | ||
"type": "index-pattern", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzUyOSwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"description": "", | ||
"kibanaSavedObjectMeta": { | ||
"searchSourceJSON": "{\"index\":\"space2-index-pattern-id\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}" | ||
}, | ||
"title": "Count of requests", | ||
"version": 1 | ||
}, | ||
"id": "space2-isolatedtype-id", | ||
"references": [], | ||
"type": "isolatedtype", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzQ4NywxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "Requests", | ||
"kibanaSavedObjectMeta": { | ||
"searchSourceJSON": "{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[],\"highlightAll\":true,\"version\":true}" | ||
}, | ||
"version": 1 | ||
}, | ||
"coreMigrationVersion": "8.4.0", | ||
"id": "space2-dashboard-id", | ||
"migrationVersion": { | ||
"dashboard": "8.4.0" | ||
}, | ||
"type": "dashboard", | ||
"updated_at": "2017-09-21T18:49:16.270Z", | ||
"version": "WzUyMCwxXQ==" | ||
} | ||
|
||
{ | ||
"attributes": { | ||
"title": "A shared saved-object only in space_2" | ||
}, | ||
"id": "only_space_2", | ||
"type": "sharedtype", | ||
"updated_at": "2017-09-21T18:59:16.270Z", | ||
"version": "WzQ4OCwxXQ==" | ||
} |
Oops, something went wrong.