-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate security and spaces integration test plugins to Kibana Platfo…
…rm (#66415)
- Loading branch information
Showing
22 changed files
with
144 additions
and
288 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
27 changes: 0 additions & 27 deletions
27
x-pack/test/saved_object_api_integration/common/fixtures/hidden_type_plugin/index.js
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
x-pack/test/saved_object_api_integration/common/fixtures/hidden_type_plugin/mappings.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
x-pack/test/saved_object_api_integration/common/fixtures/hidden_type_plugin/package.json
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
x-pack/test/saved_object_api_integration/common/fixtures/isolated_type_plugin/index.js
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
x-pack/test/saved_object_api_integration/common/fixtures/isolated_type_plugin/mappings.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
x-pack/test/saved_object_api_integration/common/fixtures/isolated_type_plugin/package.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...t/saved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/kibana.json
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
...ved_object_api_integration/common/fixtures/namespace_agnostic_type_plugin/server/index.ts
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...ck/test/saved_object_api_integration/common/fixtures/saved_object_test_plugin/kibana.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,6 @@ | ||
{ | ||
"id": "savedObjectTestPlugin", | ||
"version": "kibana", | ||
"server": true, | ||
"ui": false | ||
} |
11 changes: 11 additions & 0 deletions
11
...est/saved_object_api_integration/common/fixtures/saved_object_test_plugin/server/index.ts
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,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { Plugin } from './plugin'; | ||
|
||
export function plugin() { | ||
return new Plugin(); | ||
} |
75 changes: 75 additions & 0 deletions
75
...st/saved_object_api_integration/common/fixtures/saved_object_test_plugin/server/plugin.ts
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,75 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { CoreSetup, SavedObject } from 'kibana/server'; | ||
|
||
export class Plugin { | ||
constructor() {} | ||
|
||
public setup(core: CoreSetup) { | ||
// called when plugin is setting up during Kibana's startup sequence | ||
const management = { | ||
importableAndExportable: true, | ||
getTitle(obj: SavedObject<any>) { | ||
return obj.attributes.title; | ||
}, | ||
}; | ||
const mappings = { | ||
properties: { | ||
title: { type: 'text' }, | ||
}, | ||
}; | ||
|
||
core.savedObjects.registerType({ | ||
name: 'isolatedtype', | ||
hidden: false, | ||
namespaceType: 'single', | ||
management, | ||
mappings: { | ||
properties: { | ||
description: { type: 'text' }, | ||
kibanaSavedObjectMeta: { | ||
properties: { | ||
searchSourceJSON: { type: 'text' }, | ||
}, | ||
}, | ||
savedSearchId: { type: 'keyword' }, | ||
title: { type: 'text' }, | ||
uiStateJSON: { type: 'text' }, | ||
version: { type: 'integer' }, | ||
visState: { type: 'text' }, | ||
}, | ||
}, | ||
}); | ||
core.savedObjects.registerType({ | ||
name: 'sharedtype', | ||
hidden: false, | ||
namespaceType: 'multiple', | ||
mappings, | ||
}); | ||
core.savedObjects.registerType({ | ||
name: 'globaltype', | ||
hidden: false, | ||
namespaceType: 'agnostic', | ||
management, | ||
mappings, | ||
}); | ||
core.savedObjects.registerType({ | ||
name: 'hiddentype', | ||
hidden: true, | ||
namespaceType: 'single', | ||
mappings, | ||
}); | ||
} | ||
|
||
public start() { | ||
// called after all plugins are set up | ||
} | ||
|
||
public stop() { | ||
// called when plugin is torn down during Kibana's shutdown sequence | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
x-pack/test/saved_object_api_integration/common/fixtures/shared_type_plugin/index.js
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
x-pack/test/saved_object_api_integration/common/fixtures/shared_type_plugin/mappings.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
x-pack/test/saved_object_api_integration/common/fixtures/shared_type_plugin/package.json
This file was deleted.
Oops, something went wrong.
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
27 changes: 0 additions & 27 deletions
27
x-pack/test/spaces_api_integration/common/fixtures/shared_type_plugin/index.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.