2017-04-12 00:01:06 +02:00
|
|
|
import {
|
|
|
|
CommonPageProvider,
|
|
|
|
ConsolePageProvider,
|
|
|
|
ShieldPageProvider,
|
|
|
|
ContextPageProvider,
|
|
|
|
DiscoverPageProvider,
|
|
|
|
HeaderPageProvider,
|
2017-11-29 22:24:00 +01:00
|
|
|
HomePageProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
DashboardPageProvider,
|
|
|
|
VisualizePageProvider,
|
|
|
|
SettingsPageProvider,
|
|
|
|
MonitoringPageProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
PointSeriesPageProvider,
|
2017-08-31 08:57:34 +02:00
|
|
|
VisualBuilderPageProvider,
|
2017-11-28 16:51:11 +01:00
|
|
|
TimelionPageProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
} from './page_objects';
|
|
|
|
|
|
|
|
import {
|
|
|
|
RemoteProvider,
|
2017-05-18 12:05:38 +02:00
|
|
|
FilterBarProvider,
|
2017-08-01 00:24:46 +02:00
|
|
|
QueryBarProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
FindProvider,
|
|
|
|
TestSubjectsProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
DocTableProvider,
|
|
|
|
ScreenshotsProvider,
|
2017-11-07 20:59:18 +01:00
|
|
|
DashboardVisualizationProvider,
|
2017-11-17 20:59:16 +01:00
|
|
|
DashboardExpectProvider,
|
2018-03-13 22:46:56 +01:00
|
|
|
FailureDebuggingProvider,
|
2018-05-01 15:12:36 +02:00
|
|
|
VisualizeListingTableProvider,
|
|
|
|
DashboardAddPanelProvider,
|
2018-05-24 20:53:42 +02:00
|
|
|
DashboardPanelActionsProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
} from './services';
|
|
|
|
|
2017-05-18 03:53:45 +02:00
|
|
|
export default async function ({ readConfigFile }) {
|
|
|
|
const commonConfig = await readConfigFile(require.resolve('../common/config'));
|
2017-04-12 00:01:06 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
testFiles: [
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/console'),
|
2018-03-14 21:42:48 +01:00
|
|
|
require.resolve('./apps/getting_started'),
|
2018-04-13 19:19:21 +02:00
|
|
|
// require.resolve('./apps/context'),
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/dashboard'),
|
|
|
|
require.resolve('./apps/discover'),
|
2017-11-29 22:24:00 +01:00
|
|
|
require.resolve('./apps/home'),
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/management'),
|
|
|
|
require.resolve('./apps/status_page'),
|
2017-11-28 16:51:11 +01:00
|
|
|
require.resolve('./apps/timelion'),
|
2017-05-18 03:53:45 +02:00
|
|
|
require.resolve('./apps/visualize'),
|
|
|
|
require.resolve('./apps/xpack'),
|
2017-04-12 00:01:06 +02:00
|
|
|
],
|
|
|
|
pageObjects: {
|
|
|
|
common: CommonPageProvider,
|
|
|
|
console: ConsolePageProvider,
|
|
|
|
shield: ShieldPageProvider,
|
|
|
|
context: ContextPageProvider,
|
|
|
|
discover: DiscoverPageProvider,
|
|
|
|
header: HeaderPageProvider,
|
2017-11-29 22:24:00 +01:00
|
|
|
home: HomePageProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
dashboard: DashboardPageProvider,
|
|
|
|
visualize: VisualizePageProvider,
|
|
|
|
settings: SettingsPageProvider,
|
|
|
|
monitoring: MonitoringPageProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
pointSeries: PointSeriesPageProvider,
|
2017-08-31 08:57:34 +02:00
|
|
|
visualBuilder: VisualBuilderPageProvider,
|
2017-11-28 16:51:11 +01:00
|
|
|
timelion: TimelionPageProvider
|
2017-04-12 00:01:06 +02:00
|
|
|
},
|
|
|
|
services: {
|
2017-05-18 03:53:45 +02:00
|
|
|
es: commonConfig.get('services.es'),
|
|
|
|
esArchiver: commonConfig.get('services.esArchiver'),
|
|
|
|
kibanaServer: commonConfig.get('services.kibanaServer'),
|
2017-07-19 18:27:16 +02:00
|
|
|
retry: commonConfig.get('services.retry'),
|
2017-04-12 00:01:06 +02:00
|
|
|
remote: RemoteProvider,
|
2017-05-18 12:05:38 +02:00
|
|
|
filterBar: FilterBarProvider,
|
2017-08-01 00:24:46 +02:00
|
|
|
queryBar: QueryBarProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
find: FindProvider,
|
|
|
|
testSubjects: TestSubjectsProvider,
|
2017-05-11 21:07:23 +02:00
|
|
|
docTable: DocTableProvider,
|
|
|
|
screenshots: ScreenshotsProvider,
|
2017-11-07 20:59:18 +01:00
|
|
|
dashboardVisualizations: DashboardVisualizationProvider,
|
2017-11-17 20:59:16 +01:00
|
|
|
dashboardExpect: DashboardExpectProvider,
|
2018-03-13 22:46:56 +01:00
|
|
|
failureDebugging: FailureDebuggingProvider,
|
2018-05-01 15:12:36 +02:00
|
|
|
visualizeListingTable: VisualizeListingTableProvider,
|
|
|
|
dashboardAddPanel: DashboardAddPanelProvider,
|
2018-05-24 20:53:42 +02:00
|
|
|
dashboardPanelActions: DashboardPanelActionsProvider,
|
2017-04-12 00:01:06 +02:00
|
|
|
},
|
2017-05-18 03:53:45 +02:00
|
|
|
servers: commonConfig.get('servers'),
|
2018-05-10 01:23:49 +02:00
|
|
|
|
|
|
|
env: commonConfig.get('env'),
|
|
|
|
|
|
|
|
esTestCluster: commonConfig.get('esTestCluster'),
|
|
|
|
|
2018-05-21 15:31:30 +02:00
|
|
|
kbnTestServer: {
|
|
|
|
...commonConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...commonConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
'--oss',
|
|
|
|
],
|
|
|
|
},
|
2018-05-10 01:23:49 +02:00
|
|
|
|
2017-05-18 03:53:45 +02:00
|
|
|
apps: {
|
|
|
|
status_page: {
|
|
|
|
pathname: '/status',
|
|
|
|
},
|
|
|
|
discover: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/discover',
|
|
|
|
},
|
|
|
|
context: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/context',
|
|
|
|
},
|
|
|
|
visualize: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/visualize',
|
|
|
|
},
|
|
|
|
dashboard: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/dashboards',
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/management',
|
|
|
|
},
|
2017-11-28 16:51:11 +01:00
|
|
|
timelion: {
|
|
|
|
pathname: '/app/timelion',
|
|
|
|
},
|
2017-05-18 03:53:45 +02:00
|
|
|
console: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/dev_tools/console',
|
|
|
|
},
|
Kibana Home page - phase two (#14749)
* add tutorial directory and home promo section
* tutorial components
* use KuiCodeEditor for displaying instruction code
* move spec files to server so joi can be used. Fetch via rest API
* Adding more tutorials (#4)
* More edits on the Apache logs tutorial
* Added nginx, mysql, and sytem modules for FB
* Moved apache to apacheLogs and added an apacheMetrics tutorial
* Added mysqlMetrics, nginxMetrics, systemMetrics tutorials
* Reduce duplication in the tutorials
This uses common objects for the install and start steps for Filebeat.
Same can be done for MB.
* fix windows path for config file
* add markdown parsing
* use mustache to replace config.kibana.version with kibana version
* add image preview to tutorial introduction
* fix css class name
* add param types constants
* add docs variables
* [WIP] Logstash Netflow module tutorial (#5)
* First draft of Logstash Netflow module tutorial
* Incorporated writing style suggestions
* pass params to template replace logic
* parameter inputs
* use isReadOnly flag from ui-framework for KuiCodeEditor
* dedemorton commits on netflow
* remove trailing slash from base links
* add config.docs.logstash and fix vertical spacing between Content component and commands
* Use logstash docs config variable
* Starting to add Deb instructions
* Fix Logstash documentation link
* Make commands optional
* Refactor: extract common LS instructions
* Edits for the existing tutorials
* change schema to support three instruction types
* [Netflow tutorial] Simplify OSX instructions
* replace axios with fetch
* pass credentials to tutorial fetch
* display cloud instructions when cloud set
* RadioButtonGroup component
* update copy
* add tutorial component jest tests
* content component test
* load isCloudEnabled in home_app
* add functional test ensuring add data tutorials are fetch and displayed
* rename card btns to 'Add data', fix type in tutorial directory tab, remove 'Set up index pattern from tutorial directory'
* move parameters form to right of instruction set title
* add copy snippet button, remove line numbers from command block
* add breadcrumb to tutorial view
* update tutorial jest snapshot
* use componentDidMount and ignore async results if componenent has been unmounted
* define shape of prop for instructionVariants and params. Create NumberParameter and StringParameter components
* add bread crumb to add data directory page
* Add cloud version of the apache_logs tutorial (#16)
* Add cloud version of the apache_logs tutorial
* Added onprem-cloud version as well
* fix styling broken by EUI rebase
* add artifacts to tutorial schema
* fix styling for code block
* [Tutorials] Netflow: instructions for onPremCloud (#18)
* Extract common on-prem cloud instructions so LS and Beats can share them
* Extracting common instructions; adding onPremCloud instructions
* fix copy bug where copy would only contain previously selected text
* make string parameter input type be text
* Implementing Elastic Cloud tutorial for Netflow module (#19)
* More tutorial edits (#20)
* More tutorial edits
This updates the on prem instructions with a step that installs the GeoIP and
UA plugins in ES. It also makes the on-prem steps more consistent with the cloud
instructions which results in less redundancy in the code.
* Show config step for all variants
* More DRY in the tutorial content
* Updated screenshot for apache_logs
* wrap markdown content in markdown-body class
* use EuiFlexGroup to remove wasted space with 'copy snippet' button and instruction text
* change OSX to macOS, use Computed property names for instruction_variant DISPLAY_MAP, replace /app/kibana with kbnBaseUrl, remove unneeded if check in copy_to_clippboard, put getTutorials mixin on server instead of request
* capitilize 'C' in Elastic Cloud
* remove try/catch from copy_to_clipboard
* Removing unrelated instructions
* Copy editing fixes
* Multiply edits to the Beats tutorials (#21)
* Updated Nginx module
* Updated MySQL logs module
* Updated system logs module
* Correct the on_prem_cloud enable steps
* Updated the Nginx metrics tutorial and added screenshot
* Updated the Apache metrics module + screenshot
* Updated the MySQL metrics module + screenshot
* Updated the system metrics module + screenshot
* prevent 'Copy snippet' button text from wrapping
* [Netflow tutorial] Windows instructions (#22)
* [Netflow tutorial] Adding onPrem instructions for Windows
* Removing unrelated/superfluous instructions
* Adding Windows instructions for onPremElasticCloud and elasticCloud
* use EuiImage so tutorial images are clickable to view in full screen
* fix jest tests
* set fullScreenIconColor and alt options for EuiImage, add space between command block and instruction text
2018-01-10 15:20:38 +01:00
|
|
|
home: {
|
|
|
|
pathname: '/app/kibana',
|
|
|
|
hash: '/home',
|
|
|
|
},
|
2017-04-12 00:01:06 +02:00
|
|
|
},
|
2017-12-06 01:29:48 +01:00
|
|
|
junit: {
|
|
|
|
reportName: 'UI Functional Tests'
|
|
|
|
}
|
2017-04-12 00:01:06 +02:00
|
|
|
};
|
|
|
|
}
|