Skip to content

Commit c9f0507

Browse files
Moving the endpoint functional tests to their own directory to avoid enabling ingest in the base tests
1 parent 7c7eaee commit c9f0507

14 files changed

Lines changed: 42 additions & 12 deletions

File tree

x-pack/plugins/endpoint/public/applications/endpoint/mocks/dependencies_start_mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { IngestManagerStart } from '../../../../ingest_manager/public';
7+
import { IngestManagerStart } from '../../../../../ingest_manager/public';
88
import {
99
dataPluginMock,
1010
Start as DataPublicStartMock,

x-pack/scripts/functional_tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const onlyNotInCoverageTests = [
4444
require.resolve('../test/licensing_plugin/config.public.ts'),
4545
require.resolve('../test/licensing_plugin/config.legacy.ts'),
4646
require.resolve('../test/functional_endpoint_ingest_failure/config.ts'),
47+
require.resolve('../test/functional_endpoint/config.ts'),
4748
];
4849

4950
require('@kbn/plugin-helpers').babelRegister();

x-pack/test/api_integration/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export async function getApiIntegrationConfig({ readConfigFile }) {
2626
...xPackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
2727
'--xpack.security.session.idleTimeout=3600000', // 1 hour
2828
'--optimize.enabled=false',
29+
'--xpack.endpoint.enabled=true',
30+
'--xpack.ingestManager.enabled=true',
31+
'--xpack.ingestManager.fleet.enabled=true',
2932
'--xpack.endpoint.alertResultListDefaultDateRange.from=2018-01-10T00:00:00.000Z',
3033
],
3134
},

x-pack/test/functional/config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ export default async function({ readConfigFile }) {
8888
'--xpack.encryptedSavedObjects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"',
8989
'--telemetry.banner=false',
9090
'--timelion.ui.enabled=true',
91-
'--xpack.endpoint.enabled=true',
92-
'--xpack.ingestManager.enabled=true',
93-
'--xpack.ingestManager.fleet.enabled=true',
9491
],
9592
},
9693
uiSettings: {

x-pack/test/functional/apps/endpoint/alerts.ts renamed to x-pack/test/functional_endpoint/apps/endpoint/alerts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66
import expect from '@kbn/expect';
7-
import { FtrProviderContext } from '../../ftr_provider_context';
7+
import { FtrProviderContext } from '../../../functional/ftr_provider_context';
88

99
export default function({ getPageObjects, getService }: FtrProviderContext) {
1010
const pageObjects = getPageObjects(['common', 'endpointAlerts']);

x-pack/test/functional/apps/endpoint/feature_controls/endpoint_spaces.ts renamed to x-pack/test/functional_endpoint/apps/endpoint/feature_controls/endpoint_spaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66
import expect from '@kbn/expect';
7-
import { FtrProviderContext } from '../../../ftr_provider_context';
7+
import { FtrProviderContext } from '../../../../functional/ftr_provider_context';
88

99
export default function({ getPageObjects, getService }: FtrProviderContext) {
1010
const pageObjects = getPageObjects(['common']);

x-pack/test/functional/apps/endpoint/feature_controls/index.ts renamed to x-pack/test/functional_endpoint/apps/endpoint/feature_controls/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* or more contributor license agreements. Licensed under the Elastic License;
44
* you may not use this file except in compliance with the Elastic License.
55
*/
6-
import { FtrProviderContext } from '../../../ftr_provider_context';
6+
import { FtrProviderContext } from '../../../../functional/ftr_provider_context';
77

88
export default function({ loadTestFile }: FtrProviderContext) {
99
describe('feature controls', function() {

x-pack/test/functional/apps/endpoint/header_nav.ts renamed to x-pack/test/functional_endpoint/apps/endpoint/header_nav.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import expect from '@kbn/expect';
8-
import { FtrProviderContext } from '../../ftr_provider_context';
8+
import { FtrProviderContext } from '../../../functional/ftr_provider_context';
99

1010
export default ({ getPageObjects, getService }: FtrProviderContext) => {
1111
const pageObjects = getPageObjects(['common', 'endpoint']);

x-pack/test/functional/apps/endpoint/host_list.ts renamed to x-pack/test/functional_endpoint/apps/endpoint/host_list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import expect from '@kbn/expect';
8-
import { FtrProviderContext } from '../../ftr_provider_context';
8+
import { FtrProviderContext } from '../../../functional/ftr_provider_context';
99

1010
export default ({ getPageObjects, getService }: FtrProviderContext) => {
1111
const pageObjects = getPageObjects(['common', 'endpoint', 'header']);

x-pack/test/functional/apps/endpoint/index.ts renamed to x-pack/test/functional_endpoint/apps/endpoint/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* or more contributor license agreements. Licensed under the Elastic License;
44
* you may not use this file except in compliance with the Elastic License.
55
*/
6-
import { FtrProviderContext } from '../../ftr_provider_context';
6+
import { FtrProviderContext } from '../../../functional/ftr_provider_context';
77

88
export default function({ loadTestFile }: FtrProviderContext) {
99
describe('endpoint', function() {

0 commit comments

Comments
 (0)