mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Connectors] Split functional tests by connector type (#141956)
* Renaming folder * Renaming folder * Moving xmatters to stack * Moving xmatters to stack Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
f1f2107584
commit
f80fd78b28
37 changed files with 107 additions and 103 deletions
4
.github/CODEOWNERS
vendored
4
.github/CODEOWNERS
vendored
|
@ -337,6 +337,10 @@ x-pack/examples/files_example @elastic/kibana-app-services
|
|||
/x-pack/plugins/stack_connectors/public/connector_types/cases/ @elastic/response-ops-cases
|
||||
/x-pack/plugins/stack_connectors/server/connector_types/cases/ @elastic/response-ops-cases
|
||||
/x-pack/test/alerting_api_integration/ @elastic/response-ops
|
||||
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/stack/ @elastic/response-ops-execution
|
||||
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/cases/ @elastic/response-ops-cases
|
||||
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/stack/ @elastic/response-ops-execution
|
||||
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases/ @elastic/response-ops-cases
|
||||
/x-pack/test/plugin_api_integration/test_suites/task_manager/ @elastic/response-ops
|
||||
/x-pack/plugins/triggers_actions_ui/ @elastic/response-ops
|
||||
/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/ @elastic/response-ops
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function casesWebhookTest({ getService }: FtrProviderContext) {
|
|
@ -5,12 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function jiraTest({ getService }: FtrProviderContext) {
|
|
@ -5,12 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function resilientTest({ getService }: FtrProviderContext) {
|
|
@ -5,12 +5,12 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function servicenowTest({ getService }: FtrProviderContext) {
|
|
@ -5,11 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function swimlaneTest({ getService }: FtrProviderContext) {
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function emailTest({ getService }: FtrProviderContext) {
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function indexTest({ getService }: FtrProviderContext) {
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function pagerdutyTest({ getService }: FtrProviderContext) {
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function serverLogTest({ getService }: FtrProviderContext) {
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
import http from 'http';
|
||||
import getPort from 'get-port';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
import { getSlackServer } from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { getSlackServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function slackTest({ getService }: FtrProviderContext) {
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import http from 'http';
|
||||
import getPort from 'get-port';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { getWebhookServer } from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getWebhookServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function webhookTest({ getService }: FtrProviderContext) {
|
|
@ -8,17 +8,17 @@
|
|||
import { FtrProviderContext } from '../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function actionsTests({ loadTestFile }: FtrProviderContext) {
|
||||
describe('Actions', () => {
|
||||
loadTestFile(require.resolve('./builtin_action_types/cases_webhook'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/email'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/es_index'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/jira'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/pagerduty'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/swimlane'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/server_log'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/servicenow'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/slack'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/webhook'));
|
||||
export default function connectorsTests({ loadTestFile }: FtrProviderContext) {
|
||||
describe('Connectors', () => {
|
||||
loadTestFile(require.resolve('./connector_types/cases/cases_webhook'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/jira'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/servicenow'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/swimlane'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/email'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/es_index'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/pagerduty'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/server_log'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/slack'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/webhook'));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function casesWebhookTest({ getService }: FtrProviderContext) {
|
|
@ -8,13 +8,13 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function jiraTest({ getService }: FtrProviderContext) {
|
|
@ -8,13 +8,13 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function resilientTest({ getService }: FtrProviderContext) {
|
|
@ -11,9 +11,9 @@ import { asyncForEach } from '@kbn/std';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function serviceNowITOMTest({ getService }: FtrProviderContext) {
|
|
@ -11,9 +11,9 @@ import { asyncForEach } from '@kbn/std';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function serviceNowITSMTest({ getService }: FtrProviderContext) {
|
|
@ -11,9 +11,9 @@ import { asyncForEach } from '@kbn/std';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import { getServiceNowServer } from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function serviceNowSIRTest({ getService }: FtrProviderContext) {
|
|
@ -10,9 +10,9 @@ import expect from '@kbn/expect';
|
|||
import getPort from 'get-port';
|
||||
import http from 'http';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getSwimlaneServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import { getSwimlaneServer } from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function swimlaneTest({ getService }: FtrProviderContext) {
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
ExternalServiceSimulator,
|
||||
getExternalServiceSimulatorPath,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function emailTest({ getService }: FtrProviderContext) {
|
|
@ -7,7 +7,7 @@
|
|||
import type { Client } from '@elastic/elasticsearch';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
const ES_TEST_INDEX_NAME = 'functional-test-actions-index';
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import expect from '@kbn/expect';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
// from: x-pack/test/alerting_api_integration/common/config.ts
|
||||
const ACTION_ID = 'preconfigured-es-index-action';
|
|
@ -8,13 +8,13 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function pagerdutyTest({ getService }: FtrProviderContext) {
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function serverLogTest({ getService }: FtrProviderContext) {
|
|
@ -9,10 +9,10 @@ import httpProxy from 'http-proxy';
|
|||
import expect from '@kbn/expect';
|
||||
import http from 'http';
|
||||
import getPort from 'get-port';
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
import { getSlackServer } from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { getSlackServer } from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function slackTest({ getService }: FtrProviderContext) {
|
|
@ -10,13 +10,13 @@ import http from 'http';
|
|||
import expect from '@kbn/expect';
|
||||
import { URL, format as formatUrl } from 'url';
|
||||
import getPort from 'get-port';
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
getWebhookServer,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
const defaultValues: Record<string, any> = {
|
||||
headers: null,
|
|
@ -8,13 +8,13 @@
|
|||
import httpProxy from 'http-proxy';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { getHttpProxyServer } from '../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getHttpProxyServer } from '../../../../../../common/lib/get_proxy_server';
|
||||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
|
||||
import {
|
||||
getExternalServiceSimulatorPath,
|
||||
ExternalServiceSimulator,
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
} from '../../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function xmattersTest({ getService }: FtrProviderContext) {
|
|
@ -9,8 +9,8 @@ import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
|||
import { setupSpacesAndUsers, tearDown } from '../../../setup';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function actionsTests({ loadTestFile, getService }: FtrProviderContext) {
|
||||
describe('Actions', () => {
|
||||
export default function connectorsTests({ loadTestFile, getService }: FtrProviderContext) {
|
||||
describe('Connectors', () => {
|
||||
before(async () => {
|
||||
await setupSpacesAndUsers(getService);
|
||||
});
|
||||
|
@ -18,22 +18,22 @@ export default function actionsTests({ loadTestFile, getService }: FtrProviderCo
|
|||
after(async () => {
|
||||
await tearDown(getService);
|
||||
});
|
||||
loadTestFile(require.resolve('./builtin_action_types/cases_webhook'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/email'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/es_index'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/es_index_preconfigured'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/pagerduty'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/swimlane'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/server_log'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/oauth_access_token'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/servicenow_itsm'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/servicenow_sir'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/servicenow_itom'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/jira'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/resilient'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/slack'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/webhook'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/xmatters'));
|
||||
loadTestFile(require.resolve('./connector_types/oauth_access_token'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/cases_webhook'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/jira'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/resilient'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/servicenow_itsm'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/servicenow_sir'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/servicenow_itom'));
|
||||
loadTestFile(require.resolve('./connector_types/cases/swimlane'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/email'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/es_index'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/es_index_preconfigured'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/pagerduty'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/server_log'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/slack'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/webhook'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/xmatters'));
|
||||
loadTestFile(require.resolve('./create'));
|
||||
loadTestFile(require.resolve('./delete'));
|
||||
loadTestFile(require.resolve('./execute'));
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { ObjectRemover } from '../../../../common/lib';
|
||||
import { EmailDomainsAllowed } from '../../../config';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { ObjectRemover } from '../../../../../common/lib';
|
||||
import { EmailDomainsAllowed } from '../../../../config';
|
||||
|
||||
const EmailDomainAllowed = EmailDomainsAllowed[EmailDomainsAllowed.length - 1];
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
import type { Client } from '@elastic/elasticsearch';
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
|
||||
const ES_TEST_INDEX_NAME = 'functional-test-connectors-index';
|
||||
const ES_TEST_DATASTREAM_PREFIX = 'functional-test-connectors-ds';
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { AlertHistoryDefaultIndexName } from '@kbn/actions-plugin/common';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { getTestRuleData, ObjectRemover } from '../../../../common/lib';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import { getTestRuleData, ObjectRemover } from '../../../../../common/lib';
|
||||
|
||||
const ALERT_HISTORY_OVERRIDE_INDEX = 'kibana-alert-history-not-the-default';
|
||||
|
|
@ -10,12 +10,12 @@ import https from 'https';
|
|||
import getPort from 'get-port';
|
||||
import expect from '@kbn/expect';
|
||||
import { URL, format as formatUrl } from 'url';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
getWebhookServer,
|
||||
getHttpsWebhookServer,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { createTlsWebhookServer } from '../../../../common/lib/get_tls_webhook_servers';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { createTlsWebhookServer } from '../../../../../common/lib/get_tls_webhook_servers';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function webhookTest({ getService }: FtrProviderContext) {
|
|
@ -23,10 +23,10 @@ export default function actionsTests({ loadTestFile, getService }: FtrProviderCo
|
|||
loadTestFile(require.resolve('./monitoring_collection'));
|
||||
loadTestFile(require.resolve('./execute'));
|
||||
loadTestFile(require.resolve('./enqueue'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/email'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/es_index'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/webhook'));
|
||||
loadTestFile(require.resolve('./builtin_action_types/preconfigured_alert_history_connector'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/email'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/es_index'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/webhook'));
|
||||
loadTestFile(require.resolve('./connector_types/stack/preconfigured_alert_history_connector'));
|
||||
loadTestFile(require.resolve('./type_not_enabled'));
|
||||
|
||||
// note that this test will destroy existing spaces
|
||||
|
|
|
@ -10,12 +10,12 @@ import https from 'https';
|
|||
import getPort from 'get-port';
|
||||
import expect from '@kbn/expect';
|
||||
import { URL, format as formatUrl } from 'url';
|
||||
import { FtrProviderContext } from '../../../../common/ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../../common/ftr_provider_context';
|
||||
import {
|
||||
getWebhookServer,
|
||||
getHttpsWebhookServer,
|
||||
} from '../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { createTlsWebhookServer } from '../../../../common/lib/get_tls_webhook_servers';
|
||||
} from '../../../../../common/fixtures/plugins/actions_simulators/server/plugin';
|
||||
import { createTlsWebhookServer } from '../../../../../common/lib/get_tls_webhook_servers';
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default function webhookTest({ getService }: FtrProviderContext) {
|
|
@ -11,7 +11,7 @@ import { Spaces } from '../scenarios';
|
|||
// eslint-disable-next-line import/no-default-export
|
||||
export default function alertingApiIntegrationTests({ loadTestFile }: FtrProviderContext) {
|
||||
describe('alerting api integration spaces only legacy configuration', function () {
|
||||
loadTestFile(require.resolve('./actions/builtin_action_types/webhook'));
|
||||
loadTestFile(require.resolve('./actions/connector_types/stack/webhook'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue