diff --git a/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/data.json b/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/data.json index 9c6854603d594..5da6fb43ff1d4 100644 --- a/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/data.json +++ b/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/data.json @@ -337,12 +337,12 @@ "value": { "index": ".kibana", "type": "doc", - "id": "chapo:8121a00-8efd-21e7-1cb3-34ab966434445", + "id": "globaltype:8121a00-8efd-21e7-1cb3-34ab966434445", "source": { - "type": "chapo", + "type": "globaltype", "updated_at": "2017-09-21T18:59:16.270Z", - "chapo": { - "name": "El Chapo" + "globaltype": { + "name": "My favorite global object" } } } diff --git a/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json b/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json index 8f77fccf872de..6cd530559c8f2 100644 --- a/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json +++ b/x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json @@ -303,7 +303,7 @@ } } }, - "chapo": { + "globaltype": { "properties": { "name": { "type": "text", diff --git a/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/index.js b/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/index.js index 7598fe587af7f..1417444df0661 100644 --- a/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/index.js +++ b/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/index.js @@ -12,7 +12,7 @@ export default function (kibana) { name: 'namespace_agnostic_type_plugin', uiExports: { savedObjectsSchema: { - chapo: { + globaltype: { isNamespaceAgnostic: true } }, diff --git a/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/mappings.json b/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/mappings.json index 4a11c97b6432d..b30a2c3877b88 100644 --- a/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/mappings.json +++ b/x-pack/test/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/mappings.json @@ -1,5 +1,5 @@ { - "chapo": { + "globaltype": { "properties": { "name": { "type": "text", diff --git a/x-pack/test/saved_object_api_integration/common/suites/saved_objects/create.js b/x-pack/test/saved_object_api_integration/common/suites/saved_objects/create.js index 0f9f02d30db9a..ebf2d367ee579 100644 --- a/x-pack/test/saved_object_api_integration/common/suites/saved_objects/create.js +++ b/x-pack/test/saved_object_api_integration/common/suites/saved_objects/create.js @@ -9,7 +9,7 @@ import { DEFAULT_SPACE_ID } from '../../../../../plugins/spaces/common/constants export function createTestSuiteFactory(es, esArchiver, supertest) { const spaceAwareType = 'visualization'; - const notSpaceAwareType = 'chapo'; + const notSpaceAwareType = 'globaltype'; const makeCreateTest = (describeFn) => (description, { auth = { diff --git a/x-pack/test/saved_object_api_integration/common/suites/saved_objects/delete.ts b/x-pack/test/saved_object_api_integration/common/suites/saved_objects/delete.ts index a9050b34dd308..3f54b4238399b 100644 --- a/x-pack/test/saved_object_api_integration/common/suites/saved_objects/delete.ts +++ b/x-pack/test/saved_object_api_integration/common/suites/saved_objects/delete.ts @@ -53,7 +53,9 @@ export function deleteTestSuiteFactory(esArchiver: any, supertest: SuperTest await supertest .delete( - `${getUrlPrefix(spaceId)}/api/saved_objects/chapo/8121a00-8efd-21e7-1cb3-34ab966434445` + `${getUrlPrefix( + spaceId + )}/api/saved_objects/globaltype/8121a00-8efd-21e7-1cb3-34ab966434445` ) .auth(auth.username, auth.password) .expect(tests.notSpaceAware.statusCode) @@ -114,7 +116,7 @@ export function deleteTestSuiteFactory(esArchiver: any, supertest: SuperTest { await supertest .put( - `${getUrlPrefix(spaceId)}/api/saved_objects/chapo/8121a00-8efd-21e7-1cb3-34ab966434445` + `${getUrlPrefix( + spaceId + )}/api/saved_objects/globaltype/8121a00-8efd-21e7-1cb3-34ab966434445` ) .auth(auth.username, auth.password) .send({ @@ -132,7 +134,7 @@ export function updateTestSuiteFactory(esArchiver: any, supertest: SuperTest