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.
Migrate test plugins ⇒ NP (kbn_tp_sample_panel_action) (elastic#60749)
* Migrated sample_action to NP. Panel action tests returned to the test flow. * fixed names Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Loading branch information
1 parent
e57ef04
commit 52ee957
Showing
12 changed files
with
87 additions
and
52 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
9 changes: 9 additions & 0 deletions
9
test/plugin_functional/plugins/kbn_sample_panel_action/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,9 @@ | ||
{ | ||
"id": "kbn_sample_panel_action", | ||
"version": "0.0.1", | ||
"kibanaVersion": "kibana", | ||
"configPath": ["kbn_sample_panel_action"], | ||
"server": false, | ||
"ui": true, | ||
"requiredPlugins": ["uiActions", "embeddable"] | ||
} |
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
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
47 changes: 47 additions & 0 deletions
47
test/plugin_functional/plugins/kbn_sample_panel_action/public/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,47 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { CoreSetup, Plugin } from 'kibana/public'; | ||
import { UiActionsSetup } from '../../../../../src/plugins/ui_actions/public'; | ||
import { CONTEXT_MENU_TRIGGER } from '../../../../../src/plugins/embeddable/public'; | ||
import { createSamplePanelAction } from './sample_panel_action'; | ||
import { createSamplePanelLink } from './sample_panel_link'; | ||
|
||
export class SampelPanelActionTestPlugin | ||
implements Plugin<SampelPanelActionTestPluginSetup, SampelPanelActionTestPluginStart> { | ||
public setup(core: CoreSetup, { uiActions }: { uiActions: UiActionsSetup }) { | ||
const samplePanelAction = createSamplePanelAction(core.getStartServices); | ||
|
||
uiActions.registerAction(samplePanelAction); | ||
uiActions.attachAction(CONTEXT_MENU_TRIGGER, samplePanelAction); | ||
|
||
const samplePanelLink = createSamplePanelLink(); | ||
|
||
uiActions.registerAction(samplePanelLink); | ||
uiActions.attachAction(CONTEXT_MENU_TRIGGER, samplePanelLink); | ||
|
||
return {}; | ||
} | ||
|
||
public start() {} | ||
public stop() {} | ||
} | ||
|
||
export type SampelPanelActionTestPluginSetup = ReturnType<SampelPanelActionTestPlugin['setup']>; | ||
export type SampelPanelActionTestPluginStart = ReturnType<SampelPanelActionTestPlugin['start']>; |
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
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
File renamed without changes.
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
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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
cd test/plugin_functional/plugins/kbn_sample_panel_action; | ||
if [[ ! -d "target" ]]; then | ||
checks-reporter-with-killswitch "Build kbn_sample_panel_action" yarn build; | ||
fi | ||
cd -; |
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