mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[ska][x-pack] relocate reporting tests (#225333)
## Summary Part of https://github.com/elastic/kibana-team/issues/1503 This PR is mostly about moving tests from x-pack/test/ Before: ``` x-pack/test/ | - reporting_api_integration/ | - reporting_functional/ ``` After: ``` x-pack/platform/test/ | - reporting_api_integration/ | - reporting_functional/ ``` Few page objects, required by functional tests, were relocated as well --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
37c930a542
commit
2e2576fbf5
48 changed files with 24 additions and 17 deletions
|
@ -278,10 +278,10 @@ enabled:
|
|||
- x-pack/test/licensing_plugin/config.public.ts
|
||||
- x-pack/test/licensing_plugin/config.ts
|
||||
- x-pack/test/plugin_functional/config.ts
|
||||
- x-pack/test/reporting_api_integration/reporting_and_security.config.ts
|
||||
- x-pack/test/reporting_api_integration/reporting_without_security.config.ts
|
||||
- x-pack/test/reporting_functional/reporting_and_security.config.ts
|
||||
- x-pack/test/reporting_functional/reporting_without_security.config.ts
|
||||
- x-pack/platform/test/reporting_api_integration/reporting_and_security.config.ts
|
||||
- x-pack/platform/test/reporting_api_integration/reporting_without_security.config.ts
|
||||
- x-pack/platform/test/reporting_functional/reporting_and_security.config.ts
|
||||
- x-pack/platform/test/reporting_functional/reporting_without_security.config.ts
|
||||
- x-pack/test/rule_registry/security_and_spaces/config_basic.ts
|
||||
- x-pack/test/rule_registry/security_and_spaces/config_trial.ts
|
||||
- x-pack/test/rule_registry/spaces_only/config_basic.ts
|
||||
|
|
8
.github/CODEOWNERS
vendored
8
.github/CODEOWNERS
vendored
|
@ -1300,15 +1300,15 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/
|
|||
/x-pack/test/functional/es_archives/lens/reporting/ @elastic/response-ops
|
||||
/x-pack/test/functional/es_archives/reporting/ @elastic/response-ops
|
||||
/x-pack/test/functional/fixtures/kbn_archiver/reporting/ @elastic/response-ops
|
||||
/x-pack/test/reporting_api_integration/ @elastic/response-ops
|
||||
/x-pack/test/reporting_functional/ @elastic/response-ops
|
||||
/x-pack/platform/test/reporting_api_integration/ @elastic/response-ops
|
||||
/x-pack/platform/test/reporting_functional/ @elastic/response-ops
|
||||
/x-pack/test/stack_functional_integration/apps/reporting/ @elastic/response-ops
|
||||
/docs/user/reporting @elastic/response-ops
|
||||
/docs/settings/reporting-settings.asciidoc @elastic/response-ops
|
||||
/docs/setup/configuring-reporting.asciidoc @elastic/response-ops
|
||||
/x-pack/test_serverless/**/test_suites/common/reporting/ @elastic/response-ops
|
||||
/x-pack/test/accessibility/apps/group3/reporting.ts @elastic/response-ops
|
||||
/x-pack/test/functional/page_objects/reporting_page.ts @elastic/response-ops
|
||||
/x-pack/platform/test/functional/page_objects/reporting_page.ts @elastic/response-ops
|
||||
/x-pack/test/upgrade/apps/reporting @elastic/response-ops
|
||||
/x-pack/test_serverless/functional/fixtures/kbn_archiver/reporting @elastic/response-ops
|
||||
|
||||
|
@ -1583,7 +1583,7 @@ src/platform/plugins/shared/discover/public/context_awareness/profile_providers/
|
|||
/src/platform/test/interpreter_functional/snapshots @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/54342
|
||||
/src/platform/test/functional/services/inspector.ts @elastic/kibana-presentation
|
||||
/x-pack/test/functional/services/canvas_element.ts @elastic/kibana-presentation
|
||||
/x-pack/test/functional/page_objects/canvas_page.ts @elastic/kibana-presentation
|
||||
/x-pack/platform/test/functional/page_objects/canvas_page.ts @elastic/kibana-presentation
|
||||
/x-pack/test/accessibility/apps/group3/canvas.ts @elastic/kibana-presentation
|
||||
/x-pack/test/upgrade/apps/canvas @elastic/kibana-presentation
|
||||
/x-pack/test/upgrade/apps/dashboard @elastic/kibana-presentation
|
||||
|
|
|
@ -12,6 +12,8 @@ import { SpaceSelectorPageObject } from './space_selector_page';
|
|||
import { CopySavedObjectsToSpacePageProvider } from './copy_saved_objects_to_space_page';
|
||||
import { MonitoringPageObject } from './monitoring_page';
|
||||
import { AccountSettingsPageObject } from './account_settings_page';
|
||||
import { ReportingPageObject } from './reporting_page';
|
||||
import { CanvasPageProvider } from './canvas_page';
|
||||
|
||||
// just like services, PageObjects are defined as a map of
|
||||
// names to Providers. Merge in Kibana's or pick specific ones
|
||||
|
@ -23,4 +25,6 @@ export const pageObjects = {
|
|||
copySavedObjectsToSpace: CopySavedObjectsToSpacePageProvider,
|
||||
monitoring: MonitoringPageObject,
|
||||
accountSetting: AccountSettingsPageObject,
|
||||
reporting: ReportingPageObject,
|
||||
canvas: CanvasPageProvider,
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ import { ReportingAPIProvider } from '../reporting_api_integration/services';
|
|||
import { ReportingFunctionalProvider } from './services';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const functionalConfig = await readConfigFile(require.resolve('../functional/config.base.js')); // Reporting API tests need a fully working UI
|
||||
const functionalConfig = await readConfigFile(require.resolve('../functional/config.base.ts')); // Reporting API tests need a fully working UI
|
||||
const apiConfig = await readConfigFile(require.resolve('../api_integration/config'));
|
||||
|
||||
return {
|
|
@ -66,7 +66,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
});
|
||||
|
||||
describe('Schedules', () => {
|
||||
it('does allow user with reporting privileges o navigate to the Schedules tab', async () => {
|
||||
it('does allow user with reporting privileges to navigate to the Schedules tab', async () => {
|
||||
await reportingFunctional.loginReportingUser();
|
||||
|
||||
await PageObjects.common.navigateToApp('reporting');
|
|
@ -105,6 +105,13 @@
|
|||
"@kbn/repo-info",
|
||||
"@kbn/dev-cli-errors",
|
||||
"@kbn/journeys",
|
||||
"@kbn/reporting-common",
|
||||
"@kbn/discover-plugin",
|
||||
"@kbn/reporting-export-types-csv-common",
|
||||
"@kbn/rison",
|
||||
"@kbn/reporting-export-types-pdf-common",
|
||||
"@kbn/reporting-export-types-png-common",
|
||||
"@kbn/reporting-server",
|
||||
"@kbn/lens-plugin",
|
||||
]
|
||||
}
|
||||
|
|
|
@ -12,10 +12,11 @@ import { SecurityPageObject } from '@kbn/test-suites-xpack-platform/functional/p
|
|||
import { CopySavedObjectsToSpacePageProvider } from '@kbn/test-suites-xpack-platform/functional/page_objects/copy_saved_objects_to_space_page';
|
||||
import { SpaceSelectorPageObject } from '@kbn/test-suites-xpack-platform/functional/page_objects/space_selector_page';
|
||||
import { RoleMappingsPageProvider } from '@kbn/test-suites-xpack-platform/functional/page_objects/role_mappings_page';
|
||||
import { CanvasPageProvider } from '@kbn/test-suites-xpack-platform/functional/page_objects/canvas_page';
|
||||
import { ReportingPageObject } from '@kbn/test-suites-xpack-platform/functional/page_objects/reporting_page';
|
||||
import { ApiKeysPageProvider } from './api_keys_page';
|
||||
import { AssetDetailsProvider } from './asset_details';
|
||||
import { BannersPageObject } from './banners_page';
|
||||
import { CanvasPageProvider } from './canvas_page';
|
||||
import { CrossClusterReplicationPageProvider } from './cross_cluster_replication_page';
|
||||
import { DetectionsPageObject } from '../../security_solution_ftr/page_objects/detections';
|
||||
import { EmbeddedConsoleProvider } from './embedded_console';
|
||||
|
@ -41,7 +42,6 @@ import { DatasetQualityPageObject } from './dataset_quality';
|
|||
import { ObservabilityPageProvider } from './observability_page';
|
||||
import { AlertControlsProvider } from './alert_controls';
|
||||
import { RemoteClustersPageProvider } from './remote_clusters_page';
|
||||
import { ReportingPageObject } from './reporting_page';
|
||||
import { RollupPageObject } from './rollup_page';
|
||||
import { SearchSessionsPageProvider } from './search_sessions_management_page';
|
||||
import { ShareSavedObjectsToSpacePageProvider } from './share_saved_objects_to_space_page';
|
||||
|
|
|
@ -10,9 +10,9 @@ import { services as kibanaApiIntegrationServices } from '@kbn/test-suites-src/a
|
|||
import { AceEditorProvider } from '@kbn/test-suites-xpack-platform/functional/services/ace_editor';
|
||||
import { UserMenuProvider } from '@kbn/test-suites-xpack-platform/functional/services/user_menu';
|
||||
import { SampleDataServiceProvider } from '@kbn/test-suites-xpack-platform/functional/services/sample_data';
|
||||
import { ReportingFunctionalProvider } from '@kbn/test-suites-xpack-platform/reporting_functional/services';
|
||||
import { services as kibanaXPackApiIntegrationServices } from '../../api_integration/services';
|
||||
import { services as commonServices } from '../../common/services';
|
||||
import { ReportingFunctionalProvider } from '../../reporting_functional/services';
|
||||
|
||||
import {
|
||||
MonitoringNoDataProvider,
|
||||
|
|
|
@ -107,9 +107,6 @@
|
|||
"@kbn/es",
|
||||
"@kbn/metrics-data-access-plugin",
|
||||
"@kbn/dataset-quality-plugin",
|
||||
"@kbn/reporting-export-types-csv-common",
|
||||
"@kbn/reporting-export-types-pdf-common",
|
||||
"@kbn/reporting-export-types-png-common",
|
||||
"@kbn/reporting-common",
|
||||
"@kbn/io-ts-utils",
|
||||
"@kbn/security-plugin-types-common",
|
||||
|
@ -124,7 +121,6 @@
|
|||
"@kbn/apm-data-view",
|
||||
"@kbn/search-types",
|
||||
"@kbn/alerting-comparators",
|
||||
"@kbn/reporting-server",
|
||||
"@kbn/data-quality-plugin",
|
||||
"@kbn/observability-synthetics-test-data",
|
||||
"@kbn/openapi-common",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue