[ResponesOps] Move connectors to the same folder level (#148088)

## Summary

To remove boundaries between the ResponesOps teams about connectors this
PR removes the distinguishment between connectors by moving all
connectors to the same folder and changing the `CODEOWNERS` of the
`stack_folder` to be the ResponseOps team. I did not change any logic in
the connectors. I fixed path imports when appropriate and added some
`waitFor` for tests that for some reason were failing.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Christos Nasikas 2023-01-10 09:54:00 +02:00 committed by GitHub
parent 05a2096ede
commit 5c9f824747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
344 changed files with 467 additions and 667 deletions

8
.github/CODEOWNERS vendored
View file

@ -377,15 +377,7 @@
/x-pack/plugins/event_log/ @elastic/response-ops
/x-pack/plugins/task_manager/ @elastic/response-ops
/x-pack/plugins/stack_connectors/ @elastic/response-ops
/x-pack/plugins/stack_connectors/public/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
/x-pack/plugins/stack_connectors/server/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
/x-pack/plugins/stack_connectors/public/connector_types/cases/ @elastic/response-ops @elastic/response-ops-cases
/x-pack/plugins/stack_connectors/server/connector_types/cases/ @elastic/response-ops @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 @elastic/response-ops-execution
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/cases/ @elastic/response-ops @elastic/response-ops-cases
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases/ @elastic/response-ops @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

View file

@ -1,13 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
export { getCasesWebhookConnectorType } from './cases_webhook';
export { getJiraConnectorType } from './jira';
export { getResilientConnectorType } from './resilient';
export { getServiceNowITSMConnectorType } from './servicenow_itsm';
export { getServiceNowSIRConnectorType } from './servicenow_sir';
export { getSwimlaneConnectorType } from './swimlane';

View file

@ -10,7 +10,7 @@ import type {
CasesWebhookPublicConfigurationType,
CasesWebhookSecretConfigurationType,
ExecutorSubActionPushParams,
} from '../../../../server/connector_types/cases/cases_webhook/types';
} from '../../../server/connector_types/cases_webhook/types';
export interface CasesWebhookActionParams {
subAction: string;

View file

@ -6,9 +6,9 @@
*/
import { TypeRegistry } from '@kbn/triggers-actions-ui-plugin/public/application/type_registry';
import { registerConnectorTypes } from '../..';
import { registerConnectorTypes } from '..';
import type { ActionTypeModel as ConnectorTypeModel } from '@kbn/triggers-actions-ui-plugin/public/types';
import { registrationServicesMock } from '../../../mocks';
import { registrationServicesMock } from '../../mocks';
const CONNECTOR_TYPE_ID = '.cases-webhook';
let connectorTypeModel: ConnectorTypeModel;

View file

@ -7,12 +7,12 @@
import React from 'react';
import CasesWebhookActionConnectorFields from './webhook_connectors';
import { ConnectorFormTestProvider, waitForComponentToUpdate } from '../../lib/test_utils';
import { ConnectorFormTestProvider, waitForComponentToUpdate } from '../lib/test_utils';
import { act, render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { MockCodeEditor } from '@kbn/triggers-actions-ui-plugin/public/application/code_editor.mock';
import * as i18n from './translations';
const kibanaReactPath = '../../../../../../../src/plugins/kibana_react/public';
const kibanaReactPath = '../../../../../../src/plugins/kibana_react/public';
jest.mock('@kbn/triggers-actions-ui-plugin/public', () => {
const originalModule = jest.requireActual('@kbn/triggers-actions-ui-plugin/public');

View file

@ -11,7 +11,7 @@ import WebhookParamsFields from './webhook_params';
import { MockCodeEditor } from '@kbn/triggers-actions-ui-plugin/public/application/code_editor.mock';
import { CasesWebhookActionConnector } from './types';
const kibanaReactPath = '../../../../../../../src/plugins/kibana_react/public';
const kibanaReactPath = '../../../../../../src/plugins/kibana_react/public';
jest.mock(kibanaReactPath, () => {
const original = jest.requireActual(kibanaReactPath);

View file

@ -6,8 +6,8 @@
*/
import { HttpSetup } from '@kbn/core/public';
import { INTERNAL_BASE_STACK_CONNECTORS_API_PATH } from '../../../../common';
import { EmailConfig } from '../../types';
import { INTERNAL_BASE_STACK_CONNECTORS_API_PATH } from '../../../common';
import { EmailConfig } from '../types';
export async function getServiceConfig({
http,

View file

@ -6,7 +6,7 @@
*/
import { TypeRegistry } from '@kbn/triggers-actions-ui-plugin/public/application/type_registry';
import { registerConnectorTypes } from '../..';
import { registerConnectorTypes } from '..';
import type { ActionTypeModel as ConnectorTypeModel } from '@kbn/triggers-actions-ui-plugin/public/types';
import { getEmailServices } from './email';
import {

View file

@ -14,8 +14,8 @@ import type {
ActionTypeModel as ConnectorTypeModel,
GenericValidationResult,
} from '@kbn/triggers-actions-ui-plugin/public/types';
import { EmailActionParams, EmailConfig, EmailSecrets } from '../../types';
import { RegistrationServices } from '../..';
import { EmailActionParams, EmailConfig, EmailSecrets } from '../types';
import { RegistrationServices } from '..';
const emailServices: EuiSelectOption[] = [
{

View file

@ -17,7 +17,7 @@ import {
ConnectorFormTestProvider,
createAppMockRenderer,
waitForComponentToUpdate,
} from '../../lib/test_utils';
} from '../lib/test_utils';
jest.mock('@kbn/triggers-actions-ui-plugin/public/common/lib/kibana');
const useKibanaMock = useKibana as jest.Mocked<typeof useKibana>;

View file

@ -31,7 +31,7 @@ import {
useConnectorContext,
useKibana,
} from '@kbn/triggers-actions-ui-plugin/public';
import { AdditionalEmailServices } from '../../../../common';
import { AdditionalEmailServices } from '../../../common';
import { getEmailServices } from './email';
import { useEmailConfig } from './use_email_config';
import * as i18n from './translations';

View file

@ -14,7 +14,7 @@ import {
TextAreaWithMessageVariables,
TextFieldWithMessageVariables,
} from '@kbn/triggers-actions-ui-plugin/public';
import { EmailActionParams } from '../../types';
import { EmailActionParams } from '../types';
const noop = () => {};

View file

@ -8,8 +8,8 @@
import React from 'react';
import { mountWithIntl } from '@kbn/test-jest-helpers';
import ExchangeFormFields from './exchange_form';
import { ConnectorFormTestProvider } from '../../lib/test_utils';
import { act, render } from '@testing-library/react';
import { ConnectorFormTestProvider } from '../lib/test_utils';
import { act, render, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
jest.mock('@kbn/triggers-actions-ui-plugin/public/common/lib/kibana');
@ -90,21 +90,23 @@ describe('ExchangeFormFields renders', () => {
userEvent.click(getByTestId('form-test-provide-submit'));
});
expect(onSubmit).toBeCalledWith({
data: {
secrets: {
clientSecret: 'secret',
await waitFor(() => {
expect(onSubmit).toBeCalledWith({
data: {
secrets: {
clientSecret: 'secret',
},
id: 'test',
actionTypeId: '.email',
name: 'email',
isDeprecated: false,
config: {
tenantId: 'tenant-id',
clientId: 'clientId-id',
},
},
id: 'test',
actionTypeId: '.email',
name: 'email',
isDeprecated: false,
config: {
tenantId: 'tenant-id',
clientId: 'clientId-id',
},
},
isValid: true,
isValid: true,
});
});
});

View file

@ -9,8 +9,8 @@ import { isEmpty } from 'lodash';
import { useCallback, useEffect, useRef, useState } from 'react';
import { HttpSetup, IToasts } from '@kbn/core/public';
import { i18n } from '@kbn/i18n';
import { AdditionalEmailServices } from '../../../../common';
import { EmailConfig } from '../../types';
import { AdditionalEmailServices } from '../../../common';
import { EmailConfig } from '../types';
import { getServiceConfig } from './api';
interface Props {

View file

@ -6,9 +6,9 @@
*/
import { TypeRegistry } from '@kbn/triggers-actions-ui-plugin/public/application/type_registry';
import { registerConnectorTypes } from '../..';
import { registerConnectorTypes } from '..';
import type { ActionTypeModel as ConnectorTypeModel } from '@kbn/triggers-actions-ui-plugin/public/types';
import { registrationServicesMock } from '../../../mocks';
import { registrationServicesMock } from '../../mocks';
const CONNECTOR_TYPE_ID = '.index';
let connectorTypeModel: ConnectorTypeModel;

View file

@ -12,7 +12,7 @@ import type {
GenericValidationResult,
} from '@kbn/triggers-actions-ui-plugin/public';
import { ALERT_HISTORY_PREFIX } from '@kbn/triggers-actions-ui-plugin/public';
import { EsIndexConfig, IndexActionParams } from '../../types';
import { EsIndexConfig, IndexActionParams } from '../types';
export function getConnectorType(): ConnectorTypeModel<EsIndexConfig, unknown, IndexActionParams> {
return {

View file

@ -15,7 +15,7 @@ import {
AppMockRenderer,
ConnectorFormTestProvider,
createAppMockRenderer,
} from '../../lib/test_utils';
} from '../lib/test_utils';
import userEvent from '@testing-library/user-event';
jest.mock('@kbn/triggers-actions-ui-plugin/public/common/lib/kibana');

View file

@ -12,7 +12,7 @@ import ParamsFields from './es_index_params';
import { AlertHistoryEsIndexConnectorId } from '@kbn/triggers-actions-ui-plugin/public/types';
import { MockCodeEditor } from '@kbn/triggers-actions-ui-plugin/public/application/code_editor.mock';
const kibanaReactPath = '../../../../../../../src/plugins/kibana_react/public';
const kibanaReactPath = '../../../../../../src/plugins/kibana_react/public';
jest.mock('@kbn/triggers-actions-ui-plugin/public/common/lib/kibana');

View file

@ -26,7 +26,7 @@ import {
JsonEditorWithMessageVariables,
useKibana,
} from '@kbn/triggers-actions-ui-plugin/public';
import { IndexActionParams } from '../../types';
import { IndexActionParams } from '../types';
export const IndexParamsFields = ({
actionParams,

View file

@ -7,29 +7,23 @@
import { ValidatedEmail, ValidateEmailAddressesOptions } from '@kbn/actions-plugin/common';
import { TriggersAndActionsUIPublicPluginSetup } from '@kbn/triggers-actions-ui-plugin/public';
import {
getEmailConnectorType,
getIndexConnectorType,
getPagerDutyConnectorType,
getServerLogConnectorType,
getServiceNowITOMConnectorType,
getSlackConnectorType,
getTeamsConnectorType,
getWebhookConnectorType,
getOpsgenieConnectorType,
getXmattersConnectorType,
} from './stack';
import {
getCasesWebhookConnectorType,
getJiraConnectorType,
getResilientConnectorType,
getServiceNowITSMConnectorType,
getServiceNowSIRConnectorType,
getSwimlaneConnectorType,
} from './cases';
import { getTinesConnectorType } from './security';
import { getCasesWebhookConnectorType } from './cases_webhook';
import { getEmailConnectorType } from './email';
import { getIndexConnectorType } from './es_index';
import { getJiraConnectorType } from './jira';
import { getOpsgenieConnectorType } from './opsgenie';
import { getPagerDutyConnectorType } from './pagerduty';
import { getResilientConnectorType } from './resilient';
import { getServerLogConnectorType } from './server_log';
import { getServiceNowITOMConnectorType } from './servicenow_itom';
import { getServiceNowITSMConnectorType } from './servicenow_itsm';
import { getServiceNowSIRConnectorType } from './servicenow_sir';
import { getSlackConnectorType } from './slack';
import { getSwimlaneConnectorType } from './swimlane';
import { getTeamsConnectorType } from './teams';
import { getTinesConnectorType } from './tines';
import { getWebhookConnectorType } from './webhook';
import { getXmattersConnectorType } from './xmatters';
export interface RegistrationServices {
validateEmailAddresses: (

View file

@ -7,10 +7,7 @@
import { HttpSetup } from '@kbn/core/public';
import { ActionTypeExecutorResult, BASE_ACTION_API_PATH } from '@kbn/actions-plugin/common';
import {
ConnectorExecutorResult,
rewriteResponseToCamelCase,
} from '../../lib/rewrite_response_body';
import { ConnectorExecutorResult, rewriteResponseToCamelCase } from '../lib/rewrite_response_body';
import { Fields, Issue, IssueTypes } from './types';
export async function getIssueTypes({

View file

@ -6,9 +6,9 @@
*/
import { TypeRegistry } from '@kbn/triggers-actions-ui-plugin/public/application/type_registry';
import { registerConnectorTypes } from '../..';
import { registerConnectorTypes } from '..';
import type { ActionTypeModel as ConnectorTypeModel } from '@kbn/triggers-actions-ui-plugin/public/types';
import { registrationServicesMock } from '../../../mocks';
import { registrationServicesMock } from '../../mocks';
const CONNECTOR_TYPE_ID = '.jira';
let connectorTypeModel: ConnectorTypeModel;

View file

@ -8,8 +8,8 @@
import React from 'react';
import { mountWithIntl } from '@kbn/test-jest-helpers';
import JiraConnectorFields from './jira_connectors';
import { ConnectorFormTestProvider } from '../../lib/test_utils';
import { act, render } from '@testing-library/react';
import { ConnectorFormTestProvider } from '../lib/test_utils';
import { act, render, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
jest.mock('@kbn/triggers-actions-ui-plugin/public/common/lib/kibana');
@ -89,21 +89,23 @@ describe('JiraActionConnectorFields renders', () => {
userEvent.click(getByTestId('form-test-provide-submit'));
});
expect(onSubmit).toBeCalledWith({
data: {
actionTypeId: '.jira',
name: 'jira',
config: {
apiUrl: 'https://test.com',
projectKey: 'CK',
waitFor(() => {
expect(onSubmit).toBeCalledWith({
data: {
actionTypeId: '.jira',
name: 'jira',
config: {
apiUrl: 'https://test.com',
projectKey: 'CK',
},
secrets: {
email: 'email',
apiToken: 'token',
},
isDeprecated: false,
},
secrets: {
email: 'email',
apiToken: 'token',
},
isDeprecated: false,
},
isValid: true,
isValid: true,
});
});
});

View file

@ -6,7 +6,7 @@
*/
import React from 'react';
import { LogoProps } from '../../types';
import { LogoProps } from '../types';
const Logo = (props: LogoProps) => (
<svg

View file

@ -6,7 +6,7 @@
*/
import { UserConfiguredActionConnector } from '@kbn/triggers-actions-ui-plugin/public/types';
import type { ExecutorSubActionPushParams } from '../../../../server/connector_types/cases/jira/types';
import type { ExecutorSubActionPushParams } from '../../../server/connector_types/jira/types';
export type JiraActionConnector = UserConfiguredActionConnector<JiraConfig, JiraSecrets>;
export interface JiraActionParams {

View file

@ -15,7 +15,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiSpacer, RecursivePartial } fr
import type {
OpsgenieActionParams,
OpsgenieCloseAlertParams,
} from '../../../../server/connector_types/stack';
} from '../../../server/connector_types';
import * as i18n from './translations';
import { EditActionCallback } from './types';
import { DisplayMoreOptions } from './display_more_options';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { OpsgenieCloseAlertExample } from '../../../../server/connector_types/stack/opsgenie/test_schema';
import { OpsgenieCloseAlertExample } from '../../../server/connector_types/opsgenie/test_schema';
import { isPartialCloseAlertSchema } from './close_alert_schema';
describe('close_alert_schema', () => {

View file

@ -7,8 +7,8 @@
import React from 'react';
import OpsgenieConnectorFields from './connector';
import { ConnectorFormTestProvider } from '../../lib/test_utils';
import { act, screen, render } from '@testing-library/react';
import { ConnectorFormTestProvider } from '../lib/test_utils';
import { act, screen, render, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
jest.mock('@kbn/triggers-actions-ui-plugin/public/common/lib/kibana');
@ -95,19 +95,21 @@ describe('OpsgenieConnectorFields renders', () => {
userEvent.click(getByTestId('form-test-provide-submit'));
});
expect(onSubmit).toBeCalledWith({
data: {
actionTypeId: '.opsgenie',
name: 'opsgenie',
config: {
apiUrl: 'https://test.com',
waitFor(() => {
expect(onSubmit).toBeCalledWith({
data: {
actionTypeId: '.opsgenie',
name: 'opsgenie',
config: {
apiUrl: 'https://test.com',
},
secrets: {
apiKey: 'secret',
},
isDeprecated: false,
},
secrets: {
apiKey: 'secret',
},
isDeprecated: false,
},
isValid: true,
isValid: true,
});
});
});

View file

@ -11,7 +11,7 @@ import { CreateAlert } from '.';
import { MockCodeEditor } from '@kbn/triggers-actions-ui-plugin/public/application/code_editor.mock';
import userEvent from '@testing-library/user-event';
const kibanaReactPath = '../../../../../../../../src/plugins/kibana_react/public';
const kibanaReactPath = '../../../../../../../src/plugins/kibana_react/public';
jest.mock(kibanaReactPath, () => {
const original = jest.requireActual(kibanaReactPath);

View file

@ -23,7 +23,7 @@ import {
import type {
OpsgenieActionParams,
OpsgenieCreateAlertParams,
} from '../../../../../server/connector_types/stack';
} from '../../../../server/connector_types';
import * as i18n from './translations';
import { EditActionCallback } from '../types';
import { DisplayMoreOptions } from '../display_more_options';

View file

@ -10,7 +10,7 @@ import { screen, render, within, fireEvent, waitFor } from '@testing-library/rea
import JsonEditor from './json_editor';
import { MockCodeEditor } from '@kbn/triggers-actions-ui-plugin/public/application/code_editor.mock';
const kibanaReactPath = '../../../../../../../../src/plugins/kibana_react/public';
const kibanaReactPath = '../../../../../../../src/plugins/kibana_react/public';
jest.mock(kibanaReactPath, () => {
const original = jest.requireActual(kibanaReactPath);

View file

@ -8,7 +8,7 @@
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { isEmpty } from 'lodash';
import { JsonEditorWithMessageVariables } from '@kbn/triggers-actions-ui-plugin/public';
import type { OpsgenieCreateAlertParams } from '../../../../../server/connector_types/stack';
import type { OpsgenieCreateAlertParams } from '../../../../server/connector_types';
import * as i18n from './translations';
import { CreateAlertProps } from '.';
import { decodeCreateAlert } from './schema';

View file

@ -9,7 +9,7 @@ import React, { useCallback } from 'react';
import { EuiFormRow, EuiSelect } from '@elastic/eui';
import type { OpsgenieCreateAlertParams } from '../../../../../server/connector_types/stack';
import type { OpsgenieCreateAlertParams } from '../../../../server/connector_types';
import * as i18n from './translations';
import { EditActionCallback } from '../types';

View file

@ -9,7 +9,7 @@ import { decodeCreateAlert, isPartialCreateAlertSchema } from './schema';
import {
OpsgenieCreateAlertExample,
ValidCreateAlertSchema,
} from '../../../../../server/connector_types/stack/opsgenie/test_schema';
} from '../../../../server/connector_types/opsgenie/test_schema';
describe('schema', () => {
describe('decodeCreateAlert', () => {

View file

@ -18,8 +18,8 @@ import {
} from '@elastic/eui';
import { ActionConnectorMode, ActionParamsProps } from '@kbn/triggers-actions-ui-plugin/public';
import type { OpsgenieActionParams } from '../../../../../server/connector_types/stack';
import { RULE_TAGS_TEMPLATE } from '../../../../../common/opsgenie';
import type { OpsgenieActionParams } from '../../../../server/connector_types';
import { RULE_TAGS_TEMPLATE } from '../../../../common/opsgenie';
import * as i18n from './translations';
import { EditActionCallback } from '../types';

View file

@ -6,7 +6,7 @@
*/
import React from 'react';
import { LogoProps } from '../../types';
import { LogoProps } from '../types';
const Logo = (props: LogoProps) => (
<svg

View file

@ -6,10 +6,10 @@
*/
import { TypeRegistry } from '@kbn/triggers-actions-ui-plugin/public/application/type_registry';
import { registerConnectorTypes } from '../..';
import { registerConnectorTypes } from '..';
import type { ActionTypeModel as ConnectorTypeModel } from '@kbn/triggers-actions-ui-plugin/public/types';
import { registrationServicesMock } from '../../../mocks';
import { OpsgenieConnectorTypeId, OpsgenieSubActions } from '../../../../common';
import { registrationServicesMock } from '../../mocks';
import { OpsgenieConnectorTypeId, OpsgenieSubActions } from '../../../common';
let connectorTypeModel: ConnectorTypeModel;

View file

@ -12,14 +12,11 @@ import {
GenericValidationResult,
} from '@kbn/triggers-actions-ui-plugin/public';
import { isEmpty } from 'lodash';
import { RULE_TAGS_TEMPLATE } from '../../../../common/opsgenie';
import { OpsgenieSubActions } from '../../../../common';
import type {
OpsgenieActionConfig,
OpsgenieActionSecrets,
} from '../../../../server/connector_types/stack';
import { DEFAULT_ALIAS } from './constants';
import { OpsgenieSubActions } from '../../../common';
import { RULE_TAGS_TEMPLATE } from '../../../common/opsgenie';
import type { OpsgenieActionConfig, OpsgenieActionSecrets } from '../../../server/connector_types';
import { OpsgenieConnectorTypeParams, ValidationParams } from './types';
import { DEFAULT_ALIAS } from './constants';
const SELECT_MESSAGE = i18n.translate(
'xpack.stackConnectors.components.opsgenie.selectMessageText',

View file

@ -9,12 +9,12 @@ import React from 'react';
import { act, screen, render, fireEvent } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import OpsgenieParamFields from './params';
import { OpsgenieSubActions } from '../../../../common';
import { OpsgenieActionParams } from '../../../../server/connector_types/stack';
import { ActionConnectorMode } from '@kbn/triggers-actions-ui-plugin/public';
import { MockCodeEditor } from '@kbn/triggers-actions-ui-plugin/public/application/code_editor.mock';
import { OpsgenieSubActions } from '../../../common';
import type { OpsgenieActionParams } from '../../../server/connector_types';
const kibanaReactPath = '../../../../../../../src/plugins/kibana_react/public';
const kibanaReactPath = '../../../../../../src/plugins/kibana_react/public';
jest.mock(kibanaReactPath, () => {
const original = jest.requireActual(kibanaReactPath);

View file

@ -13,15 +13,15 @@ import {
} from '@kbn/triggers-actions-ui-plugin/public';
import { EuiFormRow, EuiSelect } from '@elastic/eui';
import { isEmpty, unset, cloneDeep } from 'lodash';
import { OpsgenieSubActions } from '../../../../common';
import type {
OpsgenieActionParams,
OpsgenieCreateAlertSubActionParams,
} from '../../../../server/connector_types/stack';
import { OpsgenieSubActions } from '../../../common';
import * as i18n from './translations';
import { CreateAlert, isPartialCreateAlertSchema } from './create_alert';
import { CloseAlert } from './close_alert';
import { isPartialCloseAlertSchema } from './close_alert_schema';
import type {
OpsgenieActionParams,
OpsgenieCreateAlertSubActionParams,
} from '../../../server/connector_types';
const actionOptions = [
{

View file

@ -14,7 +14,7 @@ import type {
OpsgenieActionConfig,
OpsgenieActionSecrets,
OpsgenieActionParams,
} from '../../../../server/connector_types/stack';
} from '../../../server/connector_types';
export type OpsgenieActionConnector = UserConfiguredActionConnector<
OpsgenieActionConfig,

View file

@ -6,7 +6,7 @@
*/
import React from 'react';
import { LogoProps } from '../../types';
import { LogoProps } from '../types';
const Logo = (props: LogoProps) => (
<svg

View file

@ -6,9 +6,9 @@
*/
import { TypeRegistry } from '@kbn/triggers-actions-ui-plugin/public/application/type_registry';
import { registerConnectorTypes } from '../..';
import { registerConnectorTypes } from '..';
import type { ActionTypeModel as ConnectorTypeModel } from '@kbn/triggers-actions-ui-plugin/public/types';
import { registrationServicesMock } from '../../../mocks';
import { registrationServicesMock } from '../../mocks';
const CONNECTOR_TYPE_ID = '.pagerduty';
let connectorTypeModel: ConnectorTypeModel;

View file

@ -21,7 +21,7 @@ import {
PagerDutySecrets,
PagerDutyActionParams,
EventActionOptions,
} from '../../types';
} from '../types';
export function getConnectorType(): ConnectorTypeModel<
PagerDutyConfig,

View file

@ -9,7 +9,7 @@ import React from 'react';
import { mountWithIntl, nextTick } from '@kbn/test-jest-helpers';
import { act } from 'react-dom/test-utils';
import PagerDutyActionConnectorFields from './pagerduty_connectors';
import { ConnectorFormTestProvider } from '../../lib/test_utils';
import { ConnectorFormTestProvider } from '../lib/test_utils';
import { render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -7,7 +7,7 @@
import React from 'react';
import { mountWithIntl } from '@kbn/test-jest-helpers';
import { EventActionOptions, SeverityActionOptions } from '../../types';
import { EventActionOptions, SeverityActionOptions } from '../types';
import PagerDutyParamsFields from './pagerduty_params';
describe('PagerDutyParamsFields renders', () => {

Some files were not shown because too many files have changed in this diff Show more