Skip to content

Commit cb36b15

Browse files
committed
add a functional test
1 parent 41b96a1 commit cb36b15

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/plugin_functional/plugins/core_plugin_deprecations/server/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ async function getDeprecations({
1818
message: `CorePluginDeprecationsPlugin is a deprecated feature for testing.`,
1919
documentationUrl: 'test-url',
2020
level: 'warning',
21+
deprecationType: 'feature',
2122
correctiveActions: {
2223
manualSteps: ['Step a', 'Step b'],
2324
},

test/plugin_functional/test_suites/core/deprecations.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
1717
const PageObjects = getPageObjects(['common']);
1818
const browser = getService('browser');
1919

20-
const CorePluginDeprecationsPluginDeprecations = [
20+
const CorePluginDeprecationsPluginDeprecations: DomainDeprecationDetails[] = [
2121
{
2222
level: 'critical',
2323
message:
@@ -27,6 +27,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
2727
'Replace "corePluginDeprecations.oldProperty" with "corePluginDeprecations.newProperty" in the Kibana config file, CLI flag, or environment variable (in Docker only).',
2828
],
2929
},
30+
deprecationType: 'config',
3031
domainId: 'corePluginDeprecations',
3132
},
3233
{
@@ -37,6 +38,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
3738
'Remove "corePluginDeprecations.noLongerUsed" from the Kibana config file, CLI flag, or environment variable (in Docker only)',
3839
],
3940
},
41+
deprecationType: 'config',
4042
domainId: 'corePluginDeprecations',
4143
},
4244
{
@@ -45,6 +47,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
4547
'Kibana plugin functional tests will no longer allow corePluginDeprecations.secret config to be set to anything except 42.',
4648
correctiveActions: {},
4749
documentationUrl: 'config-secret-doc-url',
50+
deprecationType: 'config',
4851
domainId: 'corePluginDeprecations',
4952
},
5053
{
@@ -54,6 +57,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
5457
correctiveActions: {
5558
manualSteps: ['Step a', 'Step b'],
5659
},
60+
deprecationType: 'feature',
5761
domainId: 'corePluginDeprecations',
5862
},
5963
{

0 commit comments

Comments
 (0)