mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[FTR - esArchiver] Update encrypted_saved_objects_api_integration
test archives to reduce flakiness (#162321)
## Summary Part of https://github.com/elastic/kibana/issues/161882 Updates all archives of the `encrypted_saved_objects_api_integration` test suite: * Removing SO index definitions. * Updating documents defined in `data.json`.
This commit is contained in:
parent
aa93368a3a
commit
c3a5da8825
8 changed files with 183 additions and 7377 deletions
|
@ -11,7 +11,7 @@ import {
|
|||
MAIN_SAVED_OBJECT_INDEX,
|
||||
ANALYTICS_SAVED_OBJECT_INDEX,
|
||||
} from '@kbn/core-saved-objects-server';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import type { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
|
@ -22,8 +22,8 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
|
||||
describe('/deprecations/_delete_unknown_types', () => {
|
||||
before(async () => {
|
||||
// we are injecting unknown types in this test, so we need to relax the mappings restrictions
|
||||
await es.indices.putMapping({ index: '.kibana', dynamic: true });
|
||||
// we are injecting unknown types in this archive, so we need to relax the mappings restrictions
|
||||
await es.indices.putMapping({ index: MAIN_SAVED_OBJECT_INDEX, dynamic: true });
|
||||
await esArchiver.load(
|
||||
'test/api_integration/fixtures/es_archiver/saved_objects/delete_unknown_types'
|
||||
);
|
||||
|
|
|
@ -2,43 +2,19 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "config:8.0.0",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"config": {
|
||||
"buildNum": 9007199254740991
|
||||
},
|
||||
"migrationVersion": {
|
||||
"config": "7.9.0"
|
||||
},
|
||||
"references": [
|
||||
],
|
||||
"references": [],
|
||||
"type": "config",
|
||||
"updated_at": "2020-06-17T15:03:14.532Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id": "space:default",
|
||||
"index": ".kibana_1",
|
||||
"source": {
|
||||
"migrationVersion": {
|
||||
"space": "6.6.0"
|
||||
},
|
||||
"references": [
|
||||
"updated_at": "2020-06-17T15:03:14.532Z",
|
||||
"namespaces": [
|
||||
"default"
|
||||
],
|
||||
"space": {
|
||||
"_reserved": true,
|
||||
"color": "#00bfb3",
|
||||
"description": "This is your default space!",
|
||||
"disabledFeatures": [
|
||||
],
|
||||
"name": "Default"
|
||||
},
|
||||
"type": "space",
|
||||
"updated_at": "2020-06-17T15:03:27.426Z"
|
||||
"coreMigrationVersion": "8.8.0",
|
||||
"typeMigrationVersion": "7.9.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,11 +23,10 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "apm-telemetry:apm-telemetry",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"apm-telemetry": {
|
||||
"agents": {
|
||||
},
|
||||
"agents": {},
|
||||
"cardinality": {
|
||||
"transaction": {
|
||||
"name": {
|
||||
|
@ -194,10 +169,10 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"references": [
|
||||
],
|
||||
"references": [],
|
||||
"type": "apm-telemetry",
|
||||
"updated_at": "2020-06-17T15:03:47.184Z"
|
||||
"updated_at": "2020-06-17T15:03:47.184Z",
|
||||
"coreMigrationVersion": "8.8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -206,17 +181,14 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "saved-object-with-migration:74f3e6d7-b7bb-477d-ac28-92ee22728e6e",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-migration": {
|
||||
"encryptedAttribute": "JuDwwSjflpKmPKUIfjgo04E0DW9iyhp8C94hwvflgkS0SUUPt+862FQ1eja4VEfEG7HVUt7xxj+BWeZv9vrf4olxgbr4/f5RrT8BVic0EOVS9nhspiDVEv12mV0uDWGtdneB/UWyaZg+0Qr0tPrwceSl8BS///U=",
|
||||
"nonEncryptedAttribute": "elastic"
|
||||
},
|
||||
"migrationVersion": {
|
||||
"saved-object-with-migration": "7.7.0"
|
||||
},
|
||||
"references": [
|
||||
],
|
||||
"typeMigrationVersion": "7.7.0",
|
||||
"references": [],
|
||||
"type": "saved-object-with-migration",
|
||||
"updated_at": "2020-06-17T15:35:39.839Z"
|
||||
}
|
||||
|
@ -227,7 +199,7 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "custom-space:saved-object-with-migration:a67c6950-eed8-11eb-9a62-032b4e4049d1",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-migration": {
|
||||
"encryptedAttribute": "BIOBsx5SjLq3ZQdOJv06XeCAMY9ZrYj8K5bcGa5+wpd3TeT2sqln1+9AGblnfxT7LXRI3sLWQ900+wRQzBhJYx8PNKH+Yw+GdeESpu73PFHdWt/52cJKr+b4EPALFc00tIMEDHdT9FyQhqJ7nV8UpwtjcuTp9SA=",
|
||||
|
@ -236,9 +208,7 @@
|
|||
"type": "saved-object-with-migration",
|
||||
"references": [],
|
||||
"namespace": "custom-space",
|
||||
"migrationVersion": {
|
||||
"saved-object-with-migration": "7.7.0"
|
||||
},
|
||||
"typeMigrationVersion": "7.7.0",
|
||||
"updated_at": "2021-07-27T12:46:23.881Z"
|
||||
}
|
||||
}
|
||||
|
@ -248,7 +218,7 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "saved-object-with-migration:362828f0-eef2-11eb-9073-11359682300a",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-migration": {
|
||||
"encryptedAttribute": "wWDAtF/5PkCb5BxjfWyRxoIoHbJXlb5cGAKg9ztZ1Bz9Zwo0/xf2yTa3Gq/CbYrvey/F9FZkZOUk03USPaqa5mfFO8FhORkfmNLQaPhgCIDNd6SbIhN8RYkqWVTYSVgcZrwes+VwiTUZ29mCJprVSHwXdyAOy4g=",
|
||||
|
@ -257,9 +227,7 @@
|
|||
},
|
||||
"type": "saved-object-with-migration",
|
||||
"references": [],
|
||||
"migrationVersion": {
|
||||
"saved-object-with-migration": "7.9.0"
|
||||
},
|
||||
"typeMigrationVersion": "7.9.0",
|
||||
"updated_at": "2021-07-27T15:49:22.324Z"
|
||||
}
|
||||
}
|
||||
|
@ -269,7 +237,7 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "custom-space:saved-object-with-migration:36448a90-eef2-11eb-9073-11359682300a",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-migration": {
|
||||
"encryptedAttribute": "33lfpnBI136UfkdcQLzovzBXdUaeDouN0Z32qkVutgZJ5SU60hMtaHWXNkaU9DGy9jtr0ptwm6FCYmZbyDrlGMwyZP2n0PzMhwW9fRcBh7he12Cm1mImWTrxgYoRtc1MX20/orbINx5VnuNl1Ide7htAm1oPRjM=",
|
||||
|
@ -279,9 +247,7 @@
|
|||
"type": "saved-object-with-migration",
|
||||
"references": [],
|
||||
"namespace": "custom-space",
|
||||
"migrationVersion": {
|
||||
"saved-object-with-migration": "7.9.0"
|
||||
},
|
||||
"typeMigrationVersion": "7.9.0",
|
||||
"updated_at": "2021-07-27T15:49:22.509Z"
|
||||
}
|
||||
}
|
||||
|
@ -291,15 +257,15 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "ui-metric:kibana-user_agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"references": [
|
||||
],
|
||||
"references": [],
|
||||
"type": "ui-metric",
|
||||
"ui-metric": {
|
||||
"count": 1
|
||||
},
|
||||
"updated_at": "2020-06-17T15:36:23.487Z"
|
||||
"updated_at": "2020-06-17T15:36:23.487Z",
|
||||
"coreMigrationVersion": "8.8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -308,13 +274,14 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "ui-metric:Kibana_home:sampleDataDecline",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"type": "ui-metric",
|
||||
"ui-metric": {
|
||||
"count": 1
|
||||
},
|
||||
"updated_at": "2020-06-17T15:36:23.488Z"
|
||||
"updated_at": "2020-06-17T15:36:23.488Z",
|
||||
"coreMigrationVersion": "8.8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -323,13 +290,14 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "ui-metric:Kibana_home:welcomeScreenMount",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"type": "ui-metric",
|
||||
"ui-metric": {
|
||||
"count": 1
|
||||
},
|
||||
"updated_at": "2020-06-17T15:36:23.488Z"
|
||||
"updated_at": "2020-06-17T15:36:23.488Z",
|
||||
"coreMigrationVersion": "8.8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -338,17 +306,17 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "telemetry:telemetry",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"references": [
|
||||
],
|
||||
"references": [],
|
||||
"telemetry": {
|
||||
"lastReported": 1592408310031,
|
||||
"reportFailureCount": 0,
|
||||
"userHasSeenNotice": true
|
||||
},
|
||||
"type": "telemetry",
|
||||
"updated_at": "2020-06-17T15:38:30.031Z"
|
||||
"updated_at": "2020-06-17T15:38:30.031Z",
|
||||
"coreMigrationVersion": "8.8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -357,7 +325,7 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "maps-telemetry:maps-telemetry",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"maps-telemetry": {
|
||||
"attributesPerMap": {
|
||||
|
@ -366,10 +334,8 @@
|
|||
"max": 0,
|
||||
"min": 0
|
||||
},
|
||||
"emsVectorLayersCount": {
|
||||
},
|
||||
"layerTypesCount": {
|
||||
},
|
||||
"emsVectorLayersCount": {},
|
||||
"layerTypesCount": {},
|
||||
"layersCount": {
|
||||
"avg": 0,
|
||||
"max": 0,
|
||||
|
@ -385,8 +351,7 @@
|
|||
},
|
||||
"timeCaptured": "2020-06-17T16:29:27.563Z"
|
||||
},
|
||||
"references": [
|
||||
],
|
||||
"references": [],
|
||||
"type": "maps-telemetry",
|
||||
"updated_at": "2020-06-17T16:29:27.563Z"
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -2,57 +2,59 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "alert:a0d18560-e985-11eb-b1e3-5b27f0de1e72",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana_alerting_cases",
|
||||
"source": {
|
||||
"alert" : {
|
||||
"params" : {
|
||||
"aggType" : "count",
|
||||
"termSize" : 5,
|
||||
"thresholdComparator" : ">",
|
||||
"timeWindowSize" : 5,
|
||||
"timeWindowUnit" : "m",
|
||||
"groupBy" : "all",
|
||||
"threshold" : [
|
||||
"alert": {
|
||||
"params": {
|
||||
"aggType": "count",
|
||||
"termSize": 5,
|
||||
"thresholdComparator": ">",
|
||||
"timeWindowSize": 5,
|
||||
"timeWindowUnit": "m",
|
||||
"groupBy": "all",
|
||||
"threshold": [
|
||||
1000
|
||||
],
|
||||
"index" : [
|
||||
"index": [
|
||||
".kibana-event-log-8.0.0"
|
||||
],
|
||||
"timeField" : "@timestamp"
|
||||
"timeField": "@timestamp"
|
||||
},
|
||||
"consumer" : "alerts",
|
||||
"schedule" : {
|
||||
"interval" : "1m"
|
||||
"consumer": "alerts",
|
||||
"schedule": {
|
||||
"interval": "1m"
|
||||
},
|
||||
"tags" : [ ],
|
||||
"name" : "test rule",
|
||||
"actions" : [ ],
|
||||
"enabled" : true,
|
||||
"throttle" : null,
|
||||
"alertTypeId" : ".index-threshold",
|
||||
"apiKeyOwner" : "elastic",
|
||||
"apiKey" : "XpJzeSrg3p/zB+Xz8CcrylW7q5/NVlgC1de0xbbm5E0FbhcT9DskOoUH8jmmyCMOEn7SiPKm62LXbuuLknUmd0EKBDCecK0Mf8NMcqZbTusgWLmQDu5DDx+xAXcI3wsI2KD/wqLhE+RAbiBVuNtFcfm+gBwAKNikei7qtcGL5TzfmC1Cqhn2RjrnTfzCQ0csZwHrKpbBlMhUDA==",
|
||||
"createdBy" : "elastic",
|
||||
"updatedBy" : "elastic",
|
||||
"createdAt" : "2021-07-20T18:09:31.067Z",
|
||||
"muteAll" : false,
|
||||
"mutedInstanceIds" : [ ],
|
||||
"executionStatus" : {
|
||||
"status" : "ok",
|
||||
"lastExecutionDate" : "2021-07-20T18:09:34.970Z",
|
||||
"error" : null
|
||||
"tags": [],
|
||||
"name": "test rule",
|
||||
"actions": [],
|
||||
"enabled": true,
|
||||
"throttle": null,
|
||||
"alertTypeId": ".index-threshold",
|
||||
"apiKeyOwner": "elastic",
|
||||
"apiKey": "XpJzeSrg3p/zB+Xz8CcrylW7q5/NVlgC1de0xbbm5E0FbhcT9DskOoUH8jmmyCMOEn7SiPKm62LXbuuLknUmd0EKBDCecK0Mf8NMcqZbTusgWLmQDu5DDx+xAXcI3wsI2KD/wqLhE+RAbiBVuNtFcfm+gBwAKNikei7qtcGL5TzfmC1Cqhn2RjrnTfzCQ0csZwHrKpbBlMhUDA==",
|
||||
"createdBy": "elastic",
|
||||
"updatedBy": "elastic",
|
||||
"createdAt": "2021-07-20T18:09:31.067Z",
|
||||
"muteAll": false,
|
||||
"mutedInstanceIds": [],
|
||||
"executionStatus": {
|
||||
"status": "ok",
|
||||
"lastExecutionDate": "2021-07-20T18:09:34.970Z",
|
||||
"error": null
|
||||
},
|
||||
"meta" : {
|
||||
"versionApiKeyLastmodified" : "8.0.0"
|
||||
"meta": {
|
||||
"versionApiKeyLastmodified": "8.0.0"
|
||||
},
|
||||
"scheduledTaskId" : "a1b4b970-e985-11eb-b1e3-5b27f0de1e72"
|
||||
"scheduledTaskId": "a1b4b970-e985-11eb-b1e3-5b27f0de1e72"
|
||||
},
|
||||
"type" : "alert",
|
||||
"references" : [ ],
|
||||
"migrationVersion" : {
|
||||
"alert" : "7.10.0"
|
||||
},
|
||||
"updated_at" : "2021-07-20T18:09:35.093Z"
|
||||
"type": "alert",
|
||||
"references": [],
|
||||
"updated_at": "2021-07-20T18:09:35.093Z",
|
||||
"namespaces": [
|
||||
"default"
|
||||
],
|
||||
"coreMigrationVersion": "8.8.0",
|
||||
"typeMigrationVersion": "7.10.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,26 +63,28 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "action:b9127990-e985-11eb-b1e3-5b27f0de1e72",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana_alerting_cases",
|
||||
"source": {
|
||||
"action" : {
|
||||
"actionTypeId" : ".email",
|
||||
"name" : "email connector",
|
||||
"config" : {
|
||||
"from" : "admin@company.com",
|
||||
"host" : "mail.company.com",
|
||||
"port" : 465,
|
||||
"service" : null,
|
||||
"secure" : null
|
||||
"action": {
|
||||
"actionTypeId": ".email",
|
||||
"name": "email connector",
|
||||
"config": {
|
||||
"from": "admin@company.com",
|
||||
"host": "mail.company.com",
|
||||
"port": 465,
|
||||
"service": null,
|
||||
"secure": null
|
||||
},
|
||||
"secrets" : "NGVraK7+8QRoKXp4++g8mtwf8WxqFQn+RXn35Pa1gZSq/M8E2/yCycUbTEfzmhRm35It4dn9C0AQeFmlL/3nzY8fZgen4HGRVmn+FGSIoFbVY65Rkiy7v3neigO9NcZlFZ7UQAHn+mubdYrVRjFGwEzN9YbG9zK5zsCVUmVZ8w=="
|
||||
"secrets": "NGVraK7+8QRoKXp4++g8mtwf8WxqFQn+RXn35Pa1gZSq/M8E2/yCycUbTEfzmhRm35It4dn9C0AQeFmlL/3nzY8fZgen4HGRVmn+FGSIoFbVY65Rkiy7v3neigO9NcZlFZ7UQAHn+mubdYrVRjFGwEzN9YbG9zK5zsCVUmVZ8w=="
|
||||
},
|
||||
"type" : "action",
|
||||
"references" : [ ],
|
||||
"migrationVersion" : {
|
||||
"alert" : "7.13.0"
|
||||
},
|
||||
"updated_at" : "2021-07-20T18:10:11.024Z"
|
||||
"type": "action",
|
||||
"references": [],
|
||||
"updated_at": "2021-07-20T18:10:11.024Z",
|
||||
"namespaces": [
|
||||
"default"
|
||||
],
|
||||
"coreMigrationVersion": "8.8.0",
|
||||
"typeMigrationVersion": "7.13.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -2,18 +2,19 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "config:8.0.0",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"config": {
|
||||
"buildNum": 9007199254740991
|
||||
},
|
||||
"migrationVersion": {
|
||||
"config": "7.9.0"
|
||||
},
|
||||
"references": [
|
||||
],
|
||||
"references": [],
|
||||
"type": "config",
|
||||
"updated_at": "2020-06-17T15:03:14.532Z"
|
||||
"updated_at": "2020-06-17T15:03:14.532Z",
|
||||
"namespaces": [
|
||||
"default"
|
||||
],
|
||||
"coreMigrationVersion": "8.8.0",
|
||||
"typeMigrationVersion": "7.9.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -21,44 +22,18 @@
|
|||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id": "space:default",
|
||||
"index": ".kibana_1",
|
||||
"id": "space:a",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"migrationVersion": {
|
||||
"space": "6.6.0"
|
||||
},
|
||||
"references": [
|
||||
],
|
||||
"space": {
|
||||
"_reserved": true,
|
||||
"color": "#00bfb3",
|
||||
"description": "This is your default space!",
|
||||
"disabledFeatures": [
|
||||
],
|
||||
"name": "Default"
|
||||
"name": "a",
|
||||
"disabledFeatures": []
|
||||
},
|
||||
"type": "space",
|
||||
"updated_at": "2020-06-17T15:03:27.426Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id" : "space:a",
|
||||
"index" : ".kibana_1",
|
||||
"source" : {
|
||||
"space" : {
|
||||
"name" : "a",
|
||||
"disabledFeatures" : [ ]
|
||||
},
|
||||
"type" : "space",
|
||||
"references" : [ ],
|
||||
"migrationVersion" : {
|
||||
"space" : "6.6.0"
|
||||
},
|
||||
"updated_at" : "2020-10-01T06:13:23.484Z"
|
||||
"references": [],
|
||||
"updated_at": "2020-10-01T06:13:23.484Z",
|
||||
"coreMigrationVersion": "8.8.0",
|
||||
"typeMigrationVersion": "6.6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +42,7 @@
|
|||
"type": "doc",
|
||||
"value": {
|
||||
"id": "saved-object-with-secret:cd9272b2-6a15-4295-bb7b-15f6347e267b",
|
||||
"index": ".kibana_1",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-secret": {
|
||||
"publicProperty": "some-public-property-0",
|
||||
|
@ -85,22 +60,22 @@
|
|||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id" : "saved-object-with-secret-and-multiple-spaces:6b388d9b-6d8f-4e20-ba38-d9477370729d",
|
||||
"index" : ".kibana_1",
|
||||
"source" : {
|
||||
"saved-object-with-secret-and-multiple-spaces" : {
|
||||
"publicProperty" : "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD" : "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted" : "iA3mnPhS4k1I9SOhguDGb52dq/VsFNlNepxdpAdjXUeHyxV9tXkdX98wDRwSMRgD5esGcdaA8A/QdbAP/pSUnGwMXNAAwmyVrDlC/vAPrZStm/nNVhI6ibl+ItjBEGmV0sueZhU49K8uctrrnctWcSk4u0ZFijQbMvN53Obgeg7p9g==",
|
||||
"privateProperty" : "oAvCdNvgs4B/BJT5Rc6pNM1uSZ9EeMbjQPK10jAFWQE+hheZHpbXjTqaYxStZC+L/kr5ahRtWyWmOguissMLanx8vhfUWMvpZTxR8VG5rTgnXJ/XNwyRWsBCiIzpRmQHyBQgZJ84jeh/kaRskM1atv+Rm8Sc"
|
||||
"id": "saved-object-with-secret-and-multiple-spaces:6b388d9b-6d8f-4e20-ba38-d9477370729d",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-secret-and-multiple-spaces": {
|
||||
"publicProperty": "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD": "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted": "iA3mnPhS4k1I9SOhguDGb52dq/VsFNlNepxdpAdjXUeHyxV9tXkdX98wDRwSMRgD5esGcdaA8A/QdbAP/pSUnGwMXNAAwmyVrDlC/vAPrZStm/nNVhI6ibl+ItjBEGmV0sueZhU49K8uctrrnctWcSk4u0ZFijQbMvN53Obgeg7p9g==",
|
||||
"privateProperty": "oAvCdNvgs4B/BJT5Rc6pNM1uSZ9EeMbjQPK10jAFWQE+hheZHpbXjTqaYxStZC+L/kr5ahRtWyWmOguissMLanx8vhfUWMvpZTxR8VG5rTgnXJ/XNwyRWsBCiIzpRmQHyBQgZJ84jeh/kaRskM1atv+Rm8Sc"
|
||||
},
|
||||
"type" : "saved-object-with-secret-and-multiple-spaces",
|
||||
"references" : [ ],
|
||||
"namespaces" : [
|
||||
"type": "saved-object-with-secret-and-multiple-spaces",
|
||||
"references": [],
|
||||
"namespaces": [
|
||||
"default",
|
||||
"a"
|
||||
],
|
||||
"updated_at" : "2020-10-01T06:14:33.842Z"
|
||||
"updated_at": "2020-10-01T06:14:33.842Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -108,18 +83,18 @@
|
|||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id" : "hidden-saved-object-with-secret:8d90daef-f992-443c-ab78-053c6a7b0e9c",
|
||||
"index" : ".kibana_1",
|
||||
"source" : {
|
||||
"hidden-saved-object-with-secret" : {
|
||||
"publicProperty" : "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD" : "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted" : "raJcA4T4lOKuNMFOQC26dp6ToA7iBhUURh7ep4E6ZWGBbot/dpAvjccVBqYcLNCk7Qub2MKY2w7B4dhibJoVaBks8bl5EesKcxFIQ2llU+t8rtKk+x08kB5pOl2IPk4jXkNgkv/zZvwKMM+ot2lE4JG8IKbmuJmrbjmKbGLglIs2mg==",
|
||||
"privateProperty" : "rYnHH52YWJWPv1jJ++oQAzVK2UUVJr6LSn+IU1LszAzhE3+pC7uAnHnW5KzOqaKtf71Gtc+yxwqu0w8Pnh1/aZqE7GVNVbRYAKDoJS0rpG/0SQXH8Inwl0Q+pTle6UJUvfS3PnwBVBkHGCtIiX4Oo+jXZIku"
|
||||
"id": "hidden-saved-object-with-secret:8d90daef-f992-443c-ab78-053c6a7b0e9c",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"hidden-saved-object-with-secret": {
|
||||
"publicProperty": "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD": "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted": "raJcA4T4lOKuNMFOQC26dp6ToA7iBhUURh7ep4E6ZWGBbot/dpAvjccVBqYcLNCk7Qub2MKY2w7B4dhibJoVaBks8bl5EesKcxFIQ2llU+t8rtKk+x08kB5pOl2IPk4jXkNgkv/zZvwKMM+ot2lE4JG8IKbmuJmrbjmKbGLglIs2mg==",
|
||||
"privateProperty": "rYnHH52YWJWPv1jJ++oQAzVK2UUVJr6LSn+IU1LszAzhE3+pC7uAnHnW5KzOqaKtf71Gtc+yxwqu0w8Pnh1/aZqE7GVNVbRYAKDoJS0rpG/0SQXH8Inwl0Q+pTle6UJUvfS3PnwBVBkHGCtIiX4Oo+jXZIku"
|
||||
},
|
||||
"type" : "hidden-saved-object-with-secret",
|
||||
"references" : [ ],
|
||||
"updated_at" : "2020-10-01T06:26:55.367Z"
|
||||
"type": "hidden-saved-object-with-secret",
|
||||
"references": [],
|
||||
"updated_at": "2020-10-01T06:26:55.367Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -127,18 +102,18 @@
|
|||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id" : "saved-object-with-secret:4336f782-450f-4142-aecd-b46ed092af52",
|
||||
"index" : ".kibana_1",
|
||||
"source" : {
|
||||
"saved-object-with-secret" : {
|
||||
"publicProperty" : "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD" : "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted" : "ZzRNcMUBDo59TxZxhfvsIx5fNdwHKUXuqBzRJTuGCeiHzTETxX5/uM/L8oUfKRW4BqslRrqnbKMoew6v3dmd+8q5M1OGikX+hDLF06enuZTJi2OD8rcvvBds716hVxoE6aZvWQ4oybO06617wCPwaI2JUV6peA4/4Tz4wnony3TbCA==",
|
||||
"privateProperty" : "NhxZiOueUmizr9QOxnJqgUIkQvM7NbARU9cGl7J6aoB5BZPQRGASHekFHfyy2PAiQX7bAVOo/C4XYxSgAmgzs6sSK4SqMKljZzRkh1IUss2hPZoEGq3yuyGlJusSPRMTuIgnzbvdSmSqlDoew6or+nRXOD55"
|
||||
"id": "saved-object-with-secret:4336f782-450f-4142-aecd-b46ed092af52",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-secret": {
|
||||
"publicProperty": "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD": "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted": "ZzRNcMUBDo59TxZxhfvsIx5fNdwHKUXuqBzRJTuGCeiHzTETxX5/uM/L8oUfKRW4BqslRrqnbKMoew6v3dmd+8q5M1OGikX+hDLF06enuZTJi2OD8rcvvBds716hVxoE6aZvWQ4oybO06617wCPwaI2JUV6peA4/4Tz4wnony3TbCA==",
|
||||
"privateProperty": "NhxZiOueUmizr9QOxnJqgUIkQvM7NbARU9cGl7J6aoB5BZPQRGASHekFHfyy2PAiQX7bAVOo/C4XYxSgAmgzs6sSK4SqMKljZzRkh1IUss2hPZoEGq3yuyGlJusSPRMTuIgnzbvdSmSqlDoew6or+nRXOD55"
|
||||
},
|
||||
"type" : "saved-object-with-secret",
|
||||
"references" : [ ],
|
||||
"updated_at" : "2020-10-01T06:31:36.578Z"
|
||||
"type": "saved-object-with-secret",
|
||||
"references": [],
|
||||
"updated_at": "2020-10-01T06:31:36.578Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -146,22 +121,22 @@
|
|||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id" : "saved-object-with-secret-and-multiple-spaces:2ee1bede-400d-4767-b3f0-09a7064bec14",
|
||||
"index" : ".kibana_1",
|
||||
"source" : {
|
||||
"saved-object-with-secret-and-multiple-spaces" : {
|
||||
"publicProperty" : "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD" : "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted" : "eRXGrN833HNDpyw4aglw9RVyaVnOZo4BK6sAIWjbH49kITuGlmWBNPTBXyXR59VqgEtxeKJFcoCndkYMlYTc/NRNtoOBfLIIYoyfrPNMLwJb7MShRL/z4ykq/be+lU5mi6Uylnt3XXJSVv6pfQJYdTdZUMULQVUhSzn0DSj3i9k2qg==",
|
||||
"privateProperty" : "ro8iLGcH4i4/XqadjfuKBET7+fdso8+IXMSWyyq0F+OS1t7oH7MsRuTS2xnraN4eXMF0cfj+jJPSKD7o5oD9539H4GdXXwBg6cEWMy1bTff/g8ixSS9BcuEG0JFX+Id10CoUVq0oY0O7acf1b/yRnpB7C9yi"
|
||||
"id": "saved-object-with-secret-and-multiple-spaces:2ee1bede-400d-4767-b3f0-09a7064bec14",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"saved-object-with-secret-and-multiple-spaces": {
|
||||
"publicProperty": "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD": "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted": "eRXGrN833HNDpyw4aglw9RVyaVnOZo4BK6sAIWjbH49kITuGlmWBNPTBXyXR59VqgEtxeKJFcoCndkYMlYTc/NRNtoOBfLIIYoyfrPNMLwJb7MShRL/z4ykq/be+lU5mi6Uylnt3XXJSVv6pfQJYdTdZUMULQVUhSzn0DSj3i9k2qg==",
|
||||
"privateProperty": "ro8iLGcH4i4/XqadjfuKBET7+fdso8+IXMSWyyq0F+OS1t7oH7MsRuTS2xnraN4eXMF0cfj+jJPSKD7o5oD9539H4GdXXwBg6cEWMy1bTff/g8ixSS9BcuEG0JFX+Id10CoUVq0oY0O7acf1b/yRnpB7C9yi"
|
||||
},
|
||||
"type" : "saved-object-with-secret-and-multiple-spaces",
|
||||
"references" : [ ],
|
||||
"namespaces" : [
|
||||
"type": "saved-object-with-secret-and-multiple-spaces",
|
||||
"references": [],
|
||||
"namespaces": [
|
||||
"default",
|
||||
"a"
|
||||
],
|
||||
"updated_at" : "2020-10-01T06:31:53.192Z"
|
||||
"updated_at": "2020-10-01T06:31:53.192Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -169,18 +144,18 @@
|
|||
{
|
||||
"type": "doc",
|
||||
"value": {
|
||||
"id" : "hidden-saved-object-with-secret:506038a1-ec71-42b5-bce2-99661b29c62b",
|
||||
"index" : ".kibana_1",
|
||||
"source" : {
|
||||
"hidden-saved-object-with-secret" : {
|
||||
"publicProperty" : "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD" : "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted" : "nkYREB/Uqtc1btk1ieaoFvtU/sZPlHVuCICkDkBrIzkK/K6kaaDAV1AephRH9m3xpyQkhQjdE0PO7OvR0vxjIl4D+huteM0W8Iezzov0MT4r9xfhFodLamsAPAMwRlUmxSnTq6T0LiiNdRIF+LdSc0tb4Qi6mZuY7B8cI5t+uklRcQ==",
|
||||
"privateProperty" : "vHce4ivOenygNl50dpuXAuBmKGoGMFoDOCvIEQXj02sYrzW8RjbV9xvrZo9PQNMlJOZeedseqJcjRO54J1fJ6MkQ0KmMtkRaMJSWLdvO23OstTmgOyaHQ6z6pg4REdtTG56vEotq6NzBE0w2PPIo/aNW5rl+"
|
||||
"id": "hidden-saved-object-with-secret:506038a1-ec71-42b5-bce2-99661b29c62b",
|
||||
"index": ".kibana",
|
||||
"source": {
|
||||
"hidden-saved-object-with-secret": {
|
||||
"publicProperty": "some-public-property-0",
|
||||
"publicPropertyExcludedFromAAD": "some-public-property-excluded-from-aad-0",
|
||||
"publicPropertyStoredEncrypted": "nkYREB/Uqtc1btk1ieaoFvtU/sZPlHVuCICkDkBrIzkK/K6kaaDAV1AephRH9m3xpyQkhQjdE0PO7OvR0vxjIl4D+huteM0W8Iezzov0MT4r9xfhFodLamsAPAMwRlUmxSnTq6T0LiiNdRIF+LdSc0tb4Qi6mZuY7B8cI5t+uklRcQ==",
|
||||
"privateProperty": "vHce4ivOenygNl50dpuXAuBmKGoGMFoDOCvIEQXj02sYrzW8RjbV9xvrZo9PQNMlJOZeedseqJcjRO54J1fJ6MkQ0KmMtkRaMJSWLdvO23OstTmgOyaHQ6z6pg4REdtTG56vEotq6NzBE0w2PPIo/aNW5rl+"
|
||||
},
|
||||
"type" : "hidden-saved-object-with-secret",
|
||||
"references" : [ ],
|
||||
"updated_at" : "2020-10-01T06:32:01.476Z"
|
||||
"type": "hidden-saved-object-with-secret",
|
||||
"references": [],
|
||||
"updated_at": "2020-10-01T06:32:01.476Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -6,8 +6,9 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { SavedObject } from '@kbn/core/server';
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
import type { SavedObject } from '@kbn/core/server';
|
||||
import { MAIN_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
|
||||
import type { FtrProviderContext } from '../ftr_provider_context';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
const es = getService('es');
|
||||
|
@ -575,6 +576,8 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
|
||||
describe('migrations', () => {
|
||||
before(async () => {
|
||||
// we are injecting unknown types in this archive, so we need to relax the mappings restrictions
|
||||
await es.indices.putMapping({ index: MAIN_SAVED_OBJECT_INDEX, dynamic: true });
|
||||
await esArchiver.load(
|
||||
'x-pack/test/encrypted_saved_objects_api_integration/fixtures/es_archiver/encrypted_saved_objects'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue