diff --git a/x-pack/plugins/actions/server/action_type_registry.test.ts b/x-pack/plugins/actions/server/action_type_registry.test.ts index 73911db9cece4..595461b137b59 100644 --- a/x-pack/plugins/actions/server/action_type_registry.test.ts +++ b/x-pack/plugins/actions/server/action_type_registry.test.ts @@ -45,6 +45,7 @@ describe('actionTypeRegistry', () => { secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ], }; @@ -215,6 +216,26 @@ describe('actionTypeRegistry', () => { }); expect(actionTypeRegistryParams.licensing.featureUsage.register).not.toHaveBeenCalled(); }); + + test('does not allows registering system actions', () => { + const actionTypeRegistry = new ActionTypeRegistry(actionTypeRegistryParams); + + expect(() => + actionTypeRegistry.register({ + id: 'my-action-type', + name: 'My action type', + minimumLicenseRequired: 'basic', + supportedFeatureIds: ['alerting'], + isSystemAction: true, + validate: { + config: { schema: schema.object({}) }, + secrets: { schema: schema.object({}) }, + params: { schema: schema.object({}) }, + }, + executor, + }) + ).toThrowErrorMatchingInlineSnapshot(`"System actions are not supported"`); + }); }); describe('get()', () => { diff --git a/x-pack/plugins/actions/server/action_type_registry.ts b/x-pack/plugins/actions/server/action_type_registry.ts index 09f7fa5370fc0..8404bafbd8994 100644 --- a/x-pack/plugins/actions/server/action_type_registry.ts +++ b/x-pack/plugins/actions/server/action_type_registry.ts @@ -104,6 +104,18 @@ export class ActionTypeRegistry { Params extends ActionTypeParams = ActionTypeParams, ExecutorResultData = void >(actionType: ActionType) { + // TODO: Remove when system action are supported + if (actionType.isSystemAction) { + throw new Error( + i18n.translate( + 'xpack.actions.actionTypeRegistry.register.systemActionsNotSupportedErrorMessage', + { + defaultMessage: 'System actions are not supported', + } + ) + ); + } + if (this.has(actionType.id)) { throw new Error( i18n.translate( diff --git a/x-pack/plugins/actions/server/actions_client.test.ts b/x-pack/plugins/actions/server/actions_client.test.ts index e09e3adf93140..14a295cfec325 100644 --- a/x-pack/plugins/actions/server/actions_client.test.ts +++ b/x-pack/plugins/actions/server/actions_client.test.ts @@ -385,6 +385,7 @@ describe('create()', () => { expect(result).toEqual({ id: '1', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, name: 'my name', actionTypeId: 'my-action-type', @@ -532,6 +533,7 @@ describe('create()', () => { expect(result).toEqual({ id: '1', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, name: 'my name', actionTypeId: 'my-action-type', @@ -722,6 +724,7 @@ describe('create()', () => { }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -799,6 +802,7 @@ describe('get()', () => { }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -860,6 +864,7 @@ describe('get()', () => { }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -950,6 +955,7 @@ describe('get()', () => { expect(result).toEqual({ id: '1', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }); expect(unsecuredSavedObjectsClient.get).toHaveBeenCalledTimes(1); @@ -983,6 +989,7 @@ describe('get()', () => { }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -999,6 +1006,7 @@ describe('get()', () => { actionTypeId: '.slack', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', }); expect(unsecuredSavedObjectsClient.get).not.toHaveBeenCalled(); @@ -1057,6 +1065,7 @@ describe('getAll()', () => { secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -1200,6 +1209,7 @@ describe('getAll()', () => { secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -1214,6 +1224,7 @@ describe('getAll()', () => { { id: '1', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, name: 'test', config: { @@ -1226,6 +1237,7 @@ describe('getAll()', () => { id: 'testPreconfigured', actionTypeId: '.slack', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'test', referencedByCount: 2, @@ -1283,6 +1295,7 @@ describe('getBulk()', () => { secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -1420,6 +1433,7 @@ describe('getBulk()', () => { secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -1438,6 +1452,7 @@ describe('getBulk()', () => { }, id: 'testPreconfigured', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'test', secrets: {}, @@ -1450,6 +1465,7 @@ describe('getBulk()', () => { id: '1', isMissingSecrets: false, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, name: 'test', }, @@ -1479,6 +1495,7 @@ describe('getOAuthAccessToken()', () => { actionTypeId: '.slack', secrets: {}, isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'test', config: { @@ -1982,6 +1999,7 @@ describe('update()', () => { expect(result).toEqual({ id: 'my-action', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, actionTypeId: 'my-action-type', isMissingSecrets: false, @@ -2060,6 +2078,7 @@ describe('update()', () => { expect(result).toEqual({ id: 'my-action', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, actionTypeId: 'my-action-type', isMissingSecrets: true, @@ -2217,6 +2236,7 @@ describe('update()', () => { expect(result).toEqual({ id: 'my-action', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, actionTypeId: 'my-action-type', isMissingSecrets: true, @@ -2703,6 +2723,7 @@ describe('isPreconfigured()', () => { }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', @@ -2742,6 +2763,7 @@ describe('isPreconfigured()', () => { }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'test', config: { foo: 'bar', diff --git a/x-pack/plugins/actions/server/actions_client.ts b/x-pack/plugins/actions/server/actions_client.ts index 3efae4952692a..7905b7a0da6df 100644 --- a/x-pack/plugins/actions/server/actions_client.ts +++ b/x-pack/plugins/actions/server/actions_client.ts @@ -260,6 +260,7 @@ export class ActionsClient { name: result.attributes.name, config: result.attributes.config, isPreconfigured: false, + isSystemAction: false, isDeprecated: isConnectorDeprecated(result.attributes), }; } @@ -357,6 +358,7 @@ export class ActionsClient { name: result.attributes.name as string, config: result.attributes.config as Record, isPreconfigured: false, + isSystemAction: false, isDeprecated: isConnectorDeprecated(result.attributes), }; } @@ -394,6 +396,7 @@ export class ActionsClient { actionTypeId: preconfiguredActionsList.actionTypeId, name: preconfiguredActionsList.name, isPreconfigured: true, + isSystemAction: false, isDeprecated: isConnectorDeprecated(preconfiguredActionsList), }; } @@ -414,6 +417,7 @@ export class ActionsClient { name: result.attributes.name, config: result.attributes.config, isPreconfigured: false, + isSystemAction: false, isDeprecated: isConnectorDeprecated(result.attributes), }; } @@ -460,6 +464,7 @@ export class ActionsClient { name: preconfiguredAction.name, isPreconfigured: true, isDeprecated: isConnectorDeprecated(preconfiguredAction), + isSystemAction: false, })), ].sort((a, b) => a.name.localeCompare(b.name)); return await injectExtraFindData(this.kibanaIndices, this.scopedClusterClient, mergedResult); @@ -893,6 +898,7 @@ function actionFromSavedObject( ...savedObject.attributes, isPreconfigured: false, isDeprecated, + isSystemAction: false, }; } diff --git a/x-pack/plugins/actions/server/create_execute_function.test.ts b/x-pack/plugins/actions/server/create_execute_function.test.ts index e4787101b1cde..ec746ee62862b 100644 --- a/x-pack/plugins/actions/server/create_execute_function.test.ts +++ b/x-pack/plugins/actions/server/create_execute_function.test.ts @@ -254,6 +254,7 @@ describe('execute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -333,6 +334,7 @@ describe('execute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -519,6 +521,7 @@ describe('execute()', () => { name: 'Slack #xyz', secrets: {}, isPreconfigured: true, + isSystemAction: false, isDeprecated: false, }, ], @@ -829,6 +832,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -925,6 +929,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -1143,6 +1148,7 @@ describe('bulkExecute()', () => { secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ], }); diff --git a/x-pack/plugins/actions/server/create_unsecured_execute_function.test.ts b/x-pack/plugins/actions/server/create_unsecured_execute_function.test.ts index cd50be7558fea..8e75a889c3410 100644 --- a/x-pack/plugins/actions/server/create_unsecured_execute_function.test.ts +++ b/x-pack/plugins/actions/server/create_unsecured_execute_function.test.ts @@ -32,6 +32,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -137,6 +138,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -254,6 +256,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -395,6 +398,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -430,6 +434,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -466,6 +471,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, @@ -475,6 +481,7 @@ describe('bulkExecute()', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, name: 'x', secrets: {}, }, diff --git a/x-pack/plugins/actions/server/lib/action_executor.test.ts b/x-pack/plugins/actions/server/lib/action_executor.test.ts index 8323428395e88..9b2e2f96390c7 100644 --- a/x-pack/plugins/actions/server/lib/action_executor.test.ts +++ b/x-pack/plugins/actions/server/lib/action_executor.test.ts @@ -64,6 +64,7 @@ actionExecutor.initialize({ }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ], }); @@ -988,6 +989,7 @@ test('should not throw error if action is preconfigured and isESOCanEncrypt is f }, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ], }); diff --git a/x-pack/plugins/actions/server/lib/is_connector_deprecated.test.ts b/x-pack/plugins/actions/server/lib/is_connector_deprecated.test.ts index 8d2a698563b0c..8306421f76f79 100644 --- a/x-pack/plugins/actions/server/lib/is_connector_deprecated.test.ts +++ b/x-pack/plugins/actions/server/lib/is_connector_deprecated.test.ts @@ -14,7 +14,8 @@ describe('isConnectorDeprecated', () => { name: 'Test', config: { apiUrl: 'http://example.com', usesTableApi: false }, secrets: { username: 'test', password: 'test' }, - isPreconfigured: false as const, + isPreconfigured: false, + isSystemAction: false, }; it('returns false if the config is not defined', () => { diff --git a/x-pack/plugins/actions/server/plugin.ts b/x-pack/plugins/actions/server/plugin.ts index 8e44714129557..ba4fec697b0c7 100644 --- a/x-pack/plugins/actions/server/plugin.ts +++ b/x-pack/plugins/actions/server/plugin.ts @@ -253,6 +253,7 @@ export class ActionsPlugin implements Plugin { id: AlertHistoryEsIndexConnectorId, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, config: { index: AlertHistoryDefaultIndexName, }, diff --git a/x-pack/plugins/actions/server/routes/create.test.ts b/x-pack/plugins/actions/server/routes/create.test.ts index dc06a119ca2fa..2161e68e3706b 100644 --- a/x-pack/plugins/actions/server/routes/create.test.ts +++ b/x-pack/plugins/actions/server/routes/create.test.ts @@ -41,6 +41,7 @@ describe('createActionRoute', () => { isPreconfigured: false, isDeprecated: false, isMissingSecrets: false, + isSystemAction: false, }; const createApiResult = { @@ -49,11 +50,13 @@ describe('createActionRoute', () => { 'isPreconfigured', 'isDeprecated', 'isMissingSecrets', + 'isSystemAction', ]), connector_type_id: createResult.actionTypeId, is_preconfigured: createResult.isPreconfigured, is_deprecated: createResult.isDeprecated, is_missing_secrets: createResult.isMissingSecrets, + is_system_action: createResult.isSystemAction, }; const actionsClient = actionsClientMock.create(); @@ -113,6 +116,7 @@ describe('createActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments( @@ -153,6 +157,7 @@ describe('createActionRoute', () => { isMissingSecrets: false, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments( diff --git a/x-pack/plugins/actions/server/routes/create.ts b/x-pack/plugins/actions/server/routes/create.ts index c55661ce7b921..c3928e72d042b 100644 --- a/x-pack/plugins/actions/server/routes/create.ts +++ b/x-pack/plugins/actions/server/routes/create.ts @@ -35,6 +35,7 @@ const rewriteBodyRes: RewriteResponseCase = ({ isPreconfigured, isDeprecated, isMissingSecrets, + isSystemAction, ...res }) => ({ ...res, @@ -42,6 +43,7 @@ const rewriteBodyRes: RewriteResponseCase = ({ is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, }); export const createActionRoute = ( diff --git a/x-pack/plugins/actions/server/routes/get.test.ts b/x-pack/plugins/actions/server/routes/get.test.ts index 7f9736ad7dfb2..76dda602945c9 100644 --- a/x-pack/plugins/actions/server/routes/get.test.ts +++ b/x-pack/plugins/actions/server/routes/get.test.ts @@ -40,6 +40,7 @@ describe('getActionRoute', () => { isPreconfigured: false, isDeprecated: false, isMissingSecrets: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -62,6 +63,7 @@ describe('getActionRoute', () => { "is_deprecated": false, "is_missing_secrets": false, "is_preconfigured": false, + "is_system_action": false, "name": "action name", }, } @@ -79,6 +81,7 @@ describe('getActionRoute', () => { is_preconfigured: false, is_deprecated: false, is_missing_secrets: false, + is_system_action: false, }, }); }); @@ -99,6 +102,7 @@ describe('getActionRoute', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments( @@ -134,6 +138,7 @@ describe('getActionRoute', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments( diff --git a/x-pack/plugins/actions/server/routes/get.ts b/x-pack/plugins/actions/server/routes/get.ts index 207ed694f2985..82aad7d371c72 100644 --- a/x-pack/plugins/actions/server/routes/get.ts +++ b/x-pack/plugins/actions/server/routes/get.ts @@ -21,6 +21,7 @@ const rewriteBodyRes: RewriteResponseCase = ({ isPreconfigured, isMissingSecrets, isDeprecated, + isSystemAction, ...res }) => ({ ...res, @@ -28,6 +29,7 @@ const rewriteBodyRes: RewriteResponseCase = ({ is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, }); export const getActionRoute = ( diff --git a/x-pack/plugins/actions/server/routes/get_all.ts b/x-pack/plugins/actions/server/routes/get_all.ts index 61da031db99d4..dec70257313e1 100644 --- a/x-pack/plugins/actions/server/routes/get_all.ts +++ b/x-pack/plugins/actions/server/routes/get_all.ts @@ -19,6 +19,7 @@ const rewriteBodyRes: RewriteResponseCase = (results) => { isDeprecated, referencedByCount, isMissingSecrets, + isSystemAction, ...res }) => ({ ...res, @@ -27,6 +28,7 @@ const rewriteBodyRes: RewriteResponseCase = (results) => { is_deprecated: isDeprecated, referenced_by_count: referencedByCount, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, }) ); }; diff --git a/x-pack/plugins/actions/server/routes/legacy/create.test.ts b/x-pack/plugins/actions/server/routes/legacy/create.test.ts index 656c24d118d30..0d285244342a6 100644 --- a/x-pack/plugins/actions/server/routes/legacy/create.test.ts +++ b/x-pack/plugins/actions/server/routes/legacy/create.test.ts @@ -48,6 +48,7 @@ describe('createActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -105,6 +106,7 @@ describe('createActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments({ actionsClient }, {}); @@ -134,6 +136,7 @@ describe('createActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments({ actionsClient }, {}); diff --git a/x-pack/plugins/actions/server/routes/legacy/get.test.ts b/x-pack/plugins/actions/server/routes/legacy/get.test.ts index a79185a4ea882..be5cc1c819e3a 100644 --- a/x-pack/plugins/actions/server/routes/legacy/get.test.ts +++ b/x-pack/plugins/actions/server/routes/legacy/get.test.ts @@ -47,6 +47,7 @@ describe('getActionRoute', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -68,6 +69,7 @@ describe('getActionRoute', () => { "id": "1", "isDeprecated": false, "isPreconfigured": false, + "isSystemAction": false, "name": "action name", }, } @@ -97,6 +99,7 @@ describe('getActionRoute', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments( @@ -132,6 +135,7 @@ describe('getActionRoute', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }); const [context, req, res] = mockHandlerArguments( diff --git a/x-pack/plugins/actions/server/routes/legacy/update.test.ts b/x-pack/plugins/actions/server/routes/legacy/update.test.ts index 49bb0ff2b86e0..9158b4165a660 100644 --- a/x-pack/plugins/actions/server/routes/legacy/update.test.ts +++ b/x-pack/plugins/actions/server/routes/legacy/update.test.ts @@ -47,6 +47,7 @@ describe('updateActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -105,6 +106,7 @@ describe('updateActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -149,6 +151,7 @@ describe('updateActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); diff --git a/x-pack/plugins/actions/server/routes/update.test.ts b/x-pack/plugins/actions/server/routes/update.test.ts index d22d16798376e..ac9f3dc45f660 100644 --- a/x-pack/plugins/actions/server/routes/update.test.ts +++ b/x-pack/plugins/actions/server/routes/update.test.ts @@ -39,6 +39,7 @@ describe('updateActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -67,6 +68,7 @@ describe('updateActionRoute', () => { config: { foo: true }, is_preconfigured: false, is_deprecated: false, + is_system_action: false, }, }); @@ -106,6 +108,7 @@ describe('updateActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); @@ -150,6 +153,7 @@ describe('updateActionRoute', () => { config: { foo: true }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const actionsClient = actionsClientMock.create(); diff --git a/x-pack/plugins/actions/server/routes/update.ts b/x-pack/plugins/actions/server/routes/update.ts index b0d233c506767..a44c8ea7bb5b9 100644 --- a/x-pack/plugins/actions/server/routes/update.ts +++ b/x-pack/plugins/actions/server/routes/update.ts @@ -31,6 +31,7 @@ const rewriteBodyRes: RewriteResponseCase = ({ isPreconfigured, isMissingSecrets, isDeprecated, + isSystemAction, ...res }) => ({ ...res, @@ -38,6 +39,7 @@ const rewriteBodyRes: RewriteResponseCase = ({ is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, }); export const updateActionRoute = ( diff --git a/x-pack/plugins/actions/server/saved_objects/action_task_params_migrations.test.ts b/x-pack/plugins/actions/server/saved_objects/action_task_params_migrations.test.ts index 3b19a9feb15a6..7ef21c8fc84bd 100644 --- a/x-pack/plugins/actions/server/saved_objects/action_task_params_migrations.test.ts +++ b/x-pack/plugins/actions/server/saved_objects/action_task_params_migrations.test.ts @@ -28,6 +28,7 @@ const preconfiguredActions = [ secrets: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ]; diff --git a/x-pack/plugins/actions/server/types.ts b/x-pack/plugins/actions/server/types.ts index 4b568b949bef5..54f5f8327be65 100644 --- a/x-pack/plugins/actions/server/types.ts +++ b/x-pack/plugins/actions/server/types.ts @@ -81,6 +81,7 @@ export interface ActionResult; connector?: (config: Config, secrets: Secrets) => string | null; }; - + isSystemAction?: boolean; renderParameterTemplates?: RenderParameterTemplates; - executor: ExecutorType; } diff --git a/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts b/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts index 7216f627ea783..422bece301f9d 100644 --- a/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts +++ b/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts @@ -269,6 +269,7 @@ Object { name: 'test', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, config: { tenantId: 'sdsd', clientId: 'sdfsdf', @@ -283,6 +284,7 @@ Object { name: 'test', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, secrets: {}, }, ]); @@ -421,6 +423,7 @@ Object { name: 'test', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, secrets: {}, }, { @@ -429,6 +432,7 @@ Object { name: 'test', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, secrets: {}, }, ]); @@ -535,6 +539,7 @@ Object { name: 'test', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, secrets: {}, }, ]); diff --git a/x-pack/plugins/alerting/server/rules_client/tests/bulk_edit.test.ts b/x-pack/plugins/alerting/server/rules_client/tests/bulk_edit.test.ts index 8a4978e78f28e..1f6e86945b1b5 100644 --- a/x-pack/plugins/alerting/server/rules_client/tests/bulk_edit.test.ts +++ b/x-pack/plugins/alerting/server/rules_client/tests/bulk_edit.test.ts @@ -161,6 +161,7 @@ describe('bulkEdit()', () => { isMissingSecrets: false, name: 'email connector', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }, ]); diff --git a/x-pack/plugins/alerting/server/rules_client/tests/create.test.ts b/x-pack/plugins/alerting/server/rules_client/tests/create.test.ts index 7e21881410e74..8de37e55421e1 100644 --- a/x-pack/plugins/alerting/server/rules_client/tests/create.test.ts +++ b/x-pack/plugins/alerting/server/rules_client/tests/create.test.ts @@ -132,6 +132,7 @@ describe('create()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); taskManager.schedule.mockResolvedValue({ @@ -740,6 +741,7 @@ describe('create()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -756,6 +758,7 @@ describe('create()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); unsecuredSavedObjectsClient.create.mockResolvedValueOnce({ @@ -912,6 +915,7 @@ describe('create()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -928,6 +932,7 @@ describe('create()', () => { name: 'another email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: 'preconfigured', @@ -944,6 +949,7 @@ describe('create()', () => { name: 'preconfigured email connector', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ]); actionsClient.isPreconfigured.mockReset(); @@ -2658,6 +2664,7 @@ describe('create()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); await expect(rulesClient.create({ data })).rejects.toThrowErrorMatchingInlineSnapshot( @@ -3163,6 +3170,7 @@ describe('create()', () => { name: 'Slack connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); unsecuredSavedObjectsClient.create.mockResolvedValueOnce({ diff --git a/x-pack/plugins/alerting/server/rules_client/tests/lib.ts b/x-pack/plugins/alerting/server/rules_client/tests/lib.ts index 337c09e087243..25afdedf54d3c 100644 --- a/x-pack/plugins/alerting/server/rules_client/tests/lib.ts +++ b/x-pack/plugins/alerting/server/rules_client/tests/lib.ts @@ -77,6 +77,7 @@ export function getBeforeSetup( { id: '1', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, actionTypeId: 'test', name: 'test', @@ -87,6 +88,7 @@ export function getBeforeSetup( { id: '2', isPreconfigured: false, + isSystemAction: false, isDeprecated: false, actionTypeId: 'test2', name: 'test2', @@ -98,6 +100,7 @@ export function getBeforeSetup( id: 'testPreconfigured', actionTypeId: '.slack', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'test', }, diff --git a/x-pack/plugins/alerting/server/rules_client/tests/update.test.ts b/x-pack/plugins/alerting/server/rules_client/tests/update.test.ts index 775df48e8fc02..51717f8bb7839 100644 --- a/x-pack/plugins/alerting/server/rules_client/tests/update.test.ts +++ b/x-pack/plugins/alerting/server/rules_client/tests/update.test.ts @@ -151,6 +151,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); rulesClientParams.getActionsClient.mockResolvedValue(actionsClient); @@ -200,6 +201,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -216,6 +218,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); unsecuredSavedObjectsClient.create.mockResolvedValueOnce({ @@ -476,6 +479,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -492,6 +496,7 @@ describe('update()', () => { name: 'another email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: 'preconfigured', @@ -508,6 +513,7 @@ describe('update()', () => { name: 'preconfigured email connector', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, }, ]); actionsClient.isPreconfigured.mockReset(); @@ -1438,6 +1444,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -1454,6 +1461,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); unsecuredSavedObjectsClient.create.mockResolvedValueOnce({ @@ -2024,6 +2032,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -2040,6 +2049,7 @@ describe('update()', () => { name: 'another connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); @@ -2098,6 +2108,7 @@ describe('update()', () => { name: 'slack connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); actionsClient.isPreconfigured.mockReset(); @@ -2259,6 +2270,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '2', @@ -2275,6 +2287,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); unsecuredSavedObjectsClient.create.mockResolvedValueOnce({ @@ -2610,6 +2623,7 @@ describe('update()', () => { name: 'email connector', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); unsecuredSavedObjectsClient.create.mockResolvedValueOnce({ diff --git a/x-pack/plugins/cases/common/api/connectors/connector.test.ts b/x-pack/plugins/cases/common/api/connectors/connector.test.ts index 33208ab722252..39640b1607024 100644 --- a/x-pack/plugins/cases/common/api/connectors/connector.test.ts +++ b/x-pack/plugins/cases/common/api/connectors/connector.test.ts @@ -160,6 +160,7 @@ describe('Connector', () => { referencedByCount: 0, config: { foo: 'bar' }, isMissingSecrets: false, + isSystemAction: false, }, { id: 'test-2', @@ -167,6 +168,7 @@ describe('Connector', () => { name: 'My connector 2', isDeprecated: false, isPreconfigured: false, + isSystemAction: false, referencedByCount: 0, }, ]; diff --git a/x-pack/plugins/cases/common/api/connectors/connector.ts b/x-pack/plugins/cases/common/api/connectors/connector.ts index 66e5c5ada902b..ebdc1d5db9bb6 100644 --- a/x-pack/plugins/cases/common/api/connectors/connector.ts +++ b/x-pack/plugins/cases/common/api/connectors/connector.ts @@ -102,6 +102,7 @@ const ActionConnectorResultRt = rt.intersection([ name: rt.string, isDeprecated: rt.boolean, isPreconfigured: rt.boolean, + isSystemAction: rt.boolean, referencedByCount: rt.number, }), rt.exact(rt.partial({ config: rt.record(rt.string, rt.unknown), isMissingSecrets: rt.boolean })), diff --git a/x-pack/plugins/cases/public/common/mock/connectors.ts b/x-pack/plugins/cases/public/common/mock/connectors.ts index 4d733c4e660a8..3485af438a4d9 100644 --- a/x-pack/plugins/cases/public/common/mock/connectors.ts +++ b/x-pack/plugins/cases/public/common/mock/connectors.ts @@ -19,6 +19,7 @@ export const connectorsMock: ActionConnector[] = [ apiUrl: 'https://instance1.service-now.com', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }, { @@ -30,6 +31,7 @@ export const connectorsMock: ActionConnector[] = [ orgId: '201', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }, { @@ -40,6 +42,7 @@ export const connectorsMock: ActionConnector[] = [ apiUrl: 'https://instance.atlassian.ne', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }, { @@ -50,6 +53,7 @@ export const connectorsMock: ActionConnector[] = [ apiUrl: 'https://instance1.service-now.com', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }, { @@ -61,6 +65,7 @@ export const connectorsMock: ActionConnector[] = [ usesTableApi: true, }, isPreconfigured: false, + isSystemAction: false, isDeprecated: true, }, ]; diff --git a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx index 07163b1e1eb4f..42a5ea4c1d1fc 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx @@ -791,6 +791,7 @@ describe('useCasesColumns ', () => { name: 'None', config: {}, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }, ]} diff --git a/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx index b659e5b187520..d36ba676357cf 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx @@ -252,6 +252,7 @@ describe('ConnectorsDropdown', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]} />, diff --git a/x-pack/plugins/cases/public/components/connectors/mock.ts b/x-pack/plugins/cases/public/components/connectors/mock.ts index c4739002e6f8c..c66f11ebacff7 100644 --- a/x-pack/plugins/cases/public/components/connectors/mock.ts +++ b/x-pack/plugins/cases/public/components/connectors/mock.ts @@ -14,6 +14,7 @@ export const connector = { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; export const swimlaneConnector = { @@ -31,6 +32,7 @@ export const swimlaneConnector = { }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; export const issues = [ diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx index c8182ce970595..06141f14dbeb8 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx @@ -30,6 +30,7 @@ const connector = { name: 'ServiceNow', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, config: { apiUrl: 'https://dev94428.service-now.com/', }, diff --git a/x-pack/plugins/cases/public/components/utils.test.ts b/x-pack/plugins/cases/public/components/utils.test.ts index 3866b2503d63f..6bef0b8585d4b 100644 --- a/x-pack/plugins/cases/public/components/utils.test.ts +++ b/x-pack/plugins/cases/public/components/utils.test.ts @@ -28,6 +28,7 @@ describe('Utils', () => { config: { usesTableApi: false }, secrets: {}, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, }; diff --git a/x-pack/plugins/cases/server/client/cases/utils.test.ts b/x-pack/plugins/cases/server/client/cases/utils.test.ts index 1efea16801c17..089af7f31c698 100644 --- a/x-pack/plugins/cases/server/client/cases/utils.test.ts +++ b/x-pack/plugins/cases/server/client/cases/utils.test.ts @@ -85,6 +85,7 @@ describe('utils', () => { }, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; it('creates an external incident correctly for Jira', async () => { diff --git a/x-pack/plugins/cases/server/client/configure/client.test.ts b/x-pack/plugins/cases/server/client/configure/client.test.ts index e344273b51baa..43e19a799b5e6 100644 --- a/x-pack/plugins/cases/server/client/configure/client.test.ts +++ b/x-pack/plugins/cases/server/client/configure/client.test.ts @@ -72,6 +72,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -81,6 +82,8 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, + referencedByCount: 1, }, { @@ -90,6 +93,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, ]; @@ -110,6 +114,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -118,6 +123,7 @@ describe('client', () => { name: '2', config: {}, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, referencedByCount: 1, }, @@ -135,6 +141,7 @@ describe('client', () => { config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, ]); @@ -147,6 +154,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -156,6 +164,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -164,6 +173,7 @@ describe('client', () => { name: 'sn-preconfigured', config: {}, isPreconfigured: true, + isSystemAction: false, isDeprecated: false, referencedByCount: 1, }, @@ -181,6 +191,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, ]); @@ -193,6 +204,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -202,6 +214,7 @@ describe('client', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, ]); diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_all.test.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_all.test.ts index c86387f26f50a..55f797e73ebc3 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_all.test.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_all.test.ts @@ -39,6 +39,7 @@ const connectors = [ config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -47,6 +48,7 @@ const connectors = [ name: 'Email (preconfigured)', config: {}, isPreconfigured: true, + isSystemAction: false, isDeprecated: false, referencedByCount: 1, }, diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_by_object_ids.test.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_by_object_ids.test.ts index 35151f1b4b1d6..79aa4bfd3d88e 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_by_object_ids.test.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/export/get_export_by_object_ids.test.ts @@ -38,6 +38,7 @@ const connectors = [ config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, { @@ -47,6 +48,7 @@ const connectors = [ config: {}, isPreconfigured: true, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, }, ]; diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/import/action_connectors/import_rule_action_connectors.test.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/import/action_connectors/import_rule_action_connectors.test.ts index 54574c85f7036..19b4597f408df 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/import/action_connectors/import_rule_action_connectors.test.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/logic/import/action_connectors/import_rule_action_connectors.test.ts @@ -317,6 +317,7 @@ describe('importRuleActionConnectors', () => { id: 'cabc78e0-9031-11ed-b076-53cc4d57aaf1', referencedByCount: 1, isDeprecated: false, + isSystemAction: false, }, ]); const actionsImporter2 = core.savedObjects.getImporter; @@ -358,6 +359,7 @@ describe('importRuleActionConnectors', () => { id: 'cabc78e0-9031-11ed-b076-53cc4d57aaf1', referencedByCount: 1, isDeprecated: false, + isSystemAction: false, }, ]); diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/utils/utils.test.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/utils/utils.test.ts index 8e82965f2b5f9..89699de1316ad 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/utils/utils.test.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rule_management/utils/utils.test.ts @@ -874,6 +874,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); const [errors, output] = await getInvalidConnectors(rules, clients.actionsClient); @@ -918,6 +919,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '789', @@ -926,6 +928,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); const [errors, output] = await getInvalidConnectors(rules, clients.actionsClient); @@ -976,6 +979,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '789', @@ -984,6 +988,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); const [errors, output] = await getInvalidConnectors(rules, clients.actionsClient); @@ -1041,6 +1046,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '789', @@ -1049,6 +1055,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); const [errors, output] = await getInvalidConnectors(rules, clients.actionsClient); @@ -1108,6 +1115,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '789', @@ -1116,6 +1124,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); const [errors, output] = await getInvalidConnectors(rules, clients.actionsClient); @@ -1216,6 +1225,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, { id: '789', @@ -1224,6 +1234,7 @@ describe('utils', () => { name: 'name', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }, ]); const [errors, output] = await getInvalidConnectors(rules, clients.actionsClient); diff --git a/x-pack/plugins/stack_connectors/public/connector_types/es_index/es_index_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/es_index/es_index_params.test.tsx index 44a6133cbefda..6118efcfdb12c 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/es_index/es_index_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/es_index/es_index_params.test.tsx @@ -33,6 +33,7 @@ const actionConnector = { }, id: 'es index connector', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, name: 'test name', secrets: {}, @@ -45,6 +46,7 @@ const preconfiguredActionConnector = { }, id: AlertHistoryEsIndexConnectorId, isPreconfigured: true, + isSystemAction: false as const, isDeprecated: false, name: 'Alert history Elasticsearch index', secrets: {}, diff --git a/x-pack/plugins/stack_connectors/public/connector_types/gen_ai/params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/gen_ai/params.test.tsx index f37ab8b39d573..ef418bd16965d 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/gen_ai/params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/gen_ai/params.test.tsx @@ -65,6 +65,7 @@ describe('Gen AI Params Fields renders', () => { id: 'test', actionTypeId: '.gen-ai', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, name: 'My GenAI Connector', config: { diff --git a/x-pack/plugins/stack_connectors/public/connector_types/jira/jira_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/jira/jira_params.test.tsx index 3865da8ead3a7..6deb820876b96 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/jira/jira_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/jira/jira_params.test.tsx @@ -50,6 +50,7 @@ const connector: ActionConnector = { name: 'Test', isPreconfigured: false, isDeprecated: false, + isSystemAction: false as const, }; const editAction = jest.fn(); const defaultProps = { diff --git a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/helpers.test.ts b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/helpers.test.ts index 7700014e58021..17996ccf7fe65 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/helpers.test.ts +++ b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/helpers.test.ts @@ -23,6 +23,7 @@ const deprecatedConnector: ActionConnector = { name: 'Test', isPreconfigured: false, isDeprecated: true, + isSystemAction: false as const, }; const validConnector = { diff --git a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/servicenow_connectors.tsx b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/servicenow_connectors.tsx index f667847f6dd29..c08e97902746a 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/servicenow_connectors.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/servicenow_connectors.tsx @@ -131,6 +131,7 @@ const ServiceNowConnectorFields: React.FC = ({ ...connectorToUpdate, isDeprecated, isPreconfigured: false, + isSystemAction: false, actionTypeId, }); diff --git a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_choices.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_choices.test.tsx index d3584cc38a202..721897ece7266 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_choices.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_choices.test.tsx @@ -27,6 +27,7 @@ const actionConnector = { actionTypeId: '.servicenow', name: 'ServiceNow ITSM', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, config: { apiUrl: 'https://dev94428.service-now.com/', diff --git a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_get_choices.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_get_choices.test.tsx index b4d204c117b50..38ea6d55b4e17 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_get_choices.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/lib/servicenow/use_get_choices.test.tsx @@ -28,6 +28,7 @@ const actionConnector = { actionTypeId: '.servicenow', name: 'ServiceNow ITSM', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, config: { apiUrl: 'https://dev94428.service-now.com/', diff --git a/x-pack/plugins/stack_connectors/public/connector_types/opsgenie/params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/opsgenie/params.test.tsx index 7a65a8b5fd790..562fd66d031dd 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/opsgenie/params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/opsgenie/params.test.tsx @@ -45,6 +45,7 @@ describe('OpsgenieParamFields', () => { actionTypeId: '.test', name: 'Test', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, }; diff --git a/x-pack/plugins/stack_connectors/public/connector_types/resilient/resilient_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/resilient/resilient_params.test.tsx index c6417660720f7..178cb86389d18 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/resilient/resilient_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/resilient/resilient_params.test.tsx @@ -39,6 +39,7 @@ const connector = { actionTypeId: '.test', name: 'Test', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, }; diff --git a/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itom/servicenow_itom_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itom/servicenow_itom_params.test.tsx index 5ac0c36b0c7fc..cc67186790be7 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itom/servicenow_itom_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itom/servicenow_itom_params.test.tsx @@ -41,6 +41,7 @@ const connector: ActionConnector = { actionTypeId: '.test', name: 'Test', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, }; diff --git a/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itsm/servicenow_itsm_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itsm/servicenow_itsm_params.test.tsx index 344cd73208fb6..5925724b7b8a9 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itsm/servicenow_itsm_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/servicenow_itsm/servicenow_itsm_params.test.tsx @@ -46,6 +46,7 @@ const connector: ActionConnector = { actionTypeId: '.test', name: 'Test', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, }; diff --git a/x-pack/plugins/stack_connectors/public/connector_types/servicenow_sir/servicenow_sir_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/servicenow_sir/servicenow_sir_params.test.tsx index a368c1564725d..8a62b6f09a758 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/servicenow_sir/servicenow_sir_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/servicenow_sir/servicenow_sir_params.test.tsx @@ -48,6 +48,7 @@ const connector: ActionConnector = { actionTypeId: '.test', name: 'Test', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, }; diff --git a/x-pack/plugins/stack_connectors/public/connector_types/swimlane/swimlane_params.test.tsx b/x-pack/plugins/stack_connectors/public/connector_types/swimlane/swimlane_params.test.tsx index 302e5c80af15c..a8575912ddc38 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/swimlane/swimlane_params.test.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/swimlane/swimlane_params.test.tsx @@ -36,6 +36,7 @@ describe('SwimlaneParamsFields renders', () => { actionTypeId: '.test', name: 'Test', isPreconfigured: false, + isSystemAction: false as const, isDeprecated: false, }; diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/state/settings/api.ts b/x-pack/plugins/synthetics/public/apps/synthetics/state/settings/api.ts index 02efa016475c2..b7ae7884b178a 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/state/settings/api.ts +++ b/x-pack/plugins/synthetics/public/apps/synthetics/state/settings/api.ts @@ -61,6 +61,7 @@ export const fetchConnectors = async (): Promise => { is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, ...res }) => ({ ...res, @@ -69,6 +70,7 @@ export const fetchConnectors = async (): Promise => { isDeprecated, isPreconfigured, isMissingSecrets, + isSystemAction, }) ); }; diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/connectors.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/connectors.ts index c08232ca5eea5..6938654b294ac 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/connectors.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/connectors.ts @@ -25,6 +25,7 @@ const transformConnector: RewriteRequestCase< is_deprecated: isDeprecated, referenced_by_count: referencedByCount, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, ...res }) => ({ actionTypeId, @@ -32,6 +33,7 @@ const transformConnector: RewriteRequestCase< isDeprecated, referencedByCount, isMissingSecrets, + isSystemAction, ...res, }); @@ -39,5 +41,6 @@ export async function loadAllActions({ http }: { http: HttpSetup }): Promise[0]>( `${BASE_ACTION_API_PATH}/connectors` ); - return rewriteResponseRes(res); + + return rewriteResponseRes(res) as ActionConnector[]; } diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/create.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/create.ts index 287c27a1c0e3f..32efba66d56be 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/create.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/create.ts @@ -27,6 +27,7 @@ const rewriteBodyRes: RewriteRequestCase< is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, ...res }) => ({ ...res, @@ -34,6 +35,7 @@ const rewriteBodyRes: RewriteRequestCase< isPreconfigured, isDeprecated, isMissingSecrets, + isSystemAction, }); export async function createActionConnector({ @@ -47,5 +49,5 @@ export async function createActionConnector({ `${BASE_ACTION_API_PATH}/connector`, { body: JSON.stringify(rewriteBodyRequest(connector)) } ); - return rewriteBodyRes(res); + return rewriteBodyRes(res) as ActionConnector; } diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.test.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.test.ts index 957f682d1fd6c..1030e3375aa07 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.test.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.test.ts @@ -20,6 +20,7 @@ describe('updateActionConnector', () => { connector_type_id: 'te/st', is_preconfigured: false, is_deprecated: false, + is_system_action: false, name: 'My test', config: {}, secrets: {}, @@ -31,6 +32,7 @@ describe('updateActionConnector', () => { actionTypeId: 'te/st', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, name: 'My test', config: {}, secrets: {}, diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.ts index 34aa1e127ad95..c35378ebad17e 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.ts @@ -20,6 +20,7 @@ const rewriteBodyRes: RewriteRequestCase< is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, ...res }) => ({ ...res, @@ -27,6 +28,7 @@ const rewriteBodyRes: RewriteRequestCase< isPreconfigured, isDeprecated, isMissingSecrets, + isSystemAction, }); export async function updateActionConnector({ @@ -49,5 +51,5 @@ export async function updateActionConnector({ } ); - return rewriteBodyRes(res); + return rewriteBodyRes(res) as ActionConnector; } diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/check_action_type_enabled.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/lib/check_action_type_enabled.test.tsx index 7152f5455a72c..e2dc91214e783 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/check_action_type_enabled.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/check_action_type_enabled.test.tsx @@ -102,6 +102,7 @@ describe('checkActionFormActionTypeEnabled', () => { actionTypeId: '1', id: 'test1', isPreconfigured: true, + isSystemAction: false, isDeprecated: true, name: 'test', referencedByCount: 0, @@ -111,6 +112,7 @@ describe('checkActionFormActionTypeEnabled', () => { id: 'test2', isPreconfigured: true, isDeprecated: true, + isSystemAction: false, name: 'test', referencedByCount: 0, }, diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/value_validators.test.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/value_validators.test.ts index 4fdd9fe0893ab..97c9ba686435a 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/value_validators.test.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/value_validators.test.ts @@ -113,6 +113,7 @@ describe('getConnectorWithInvalidatedFields', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const secretsErrors = { webhookUrl: ['Webhook URL is required.'] }; const configErrors = {}; @@ -130,6 +131,7 @@ describe('getConnectorWithInvalidatedFields', () => { config: {} as any, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const secretsErrors = {}; const configErrors = { apiUrl: ['apiUrl is required'] }; @@ -149,6 +151,7 @@ describe('getConnectorWithInvalidatedFields', () => { config: {}, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, }; const secretsErrors = { webhookUrl: ['Webhook URL must start with https://.'] }; const configErrors = {}; diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.test.tsx index 171636d060c9e..46dafc3c4fc03 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.test.tsx @@ -556,6 +556,7 @@ function getActionTypeForm({ id: 'test', isPreconfigured: false, isDeprecated: false, + isSystemAction: false as const, name: 'test name', secrets: {}, }; @@ -579,6 +580,7 @@ function getActionTypeForm({ id: 'test', isPreconfigured: false, isDeprecated: false, + isSystemAction: false as const, name: 'test name', secrets: {}, }, @@ -588,6 +590,7 @@ function getActionTypeForm({ actionTypeId: '.server-log', isPreconfigured: false, isDeprecated: false, + isSystemAction: false as const, config: {}, secrets: {}, }, diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/connectors_selection.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/connectors_selection.test.tsx index 97742e22a9ae4..64a19d253740c 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/connectors_selection.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/connectors_selection.test.tsx @@ -69,6 +69,7 @@ describe('connectors_selection', () => { id: 'testId', isPreconfigured: false, isDeprecated: false, + isSystemAction: false as const, name: 'test pagerduty', secrets: {}, }, diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.test.tsx index e13465b356f8e..eed385f7ef11f 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.test.tsx @@ -40,6 +40,7 @@ const connector: ActionConnector = { isDeprecated: false, isPreconfigured: false, isMissingSecrets: false, + isSystemAction: false, }; describe('EditConnectorFlyout', () => { diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.tsx index e00349cecd62b..343e0b01c4782 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.tsx @@ -260,7 +260,7 @@ const EditConnectorFlyoutComponent: React.FC = ({ /> {selectedTab === EditConnectorTabs.Configuration ? ( - !connector.isPreconfigured ? ( + !connector.isPreconfigured && !connector.isSystemAction ? ( <> {isEdit && ( <> diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.test.tsx index ce9e4e638b573..90f4bcc1e6d13 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.test.tsx @@ -318,6 +318,7 @@ describe('actions_connectors_list', () => { description: `My test ${index}`, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, referencedByCount: 1, config: {}, })) diff --git a/x-pack/plugins/triggers_actions_ui/public/types.ts b/x-pack/plugins/triggers_actions_ui/public/types.ts index 923f3847df078..607ceef218508 100644 --- a/x-pack/plugins/triggers_actions_ui/public/types.ts +++ b/x-pack/plugins/triggers_actions_ui/public/types.ts @@ -278,6 +278,7 @@ export interface ActionConnectorProps { config: Config; isPreconfigured: boolean; isDeprecated: boolean; + isSystemAction: boolean; isMissingSecrets?: boolean; } @@ -286,6 +287,7 @@ export type PreConfiguredActionConnector = Omit< 'config' | 'secrets' > & { isPreconfigured: true; + isSystemAction: false; }; export type UserConfiguredActionConnector = ActionConnectorProps< @@ -293,10 +295,17 @@ export type UserConfiguredActionConnector = ActionConnectorProp Secrets > & { isPreconfigured: false; + isSystemAction: false; +}; + +export type SystemAction = Omit, 'config' | 'secrets'> & { + isSystemAction: true; + isPreconfigured: false; }; export type ActionConnector, Secrets = Record> = | PreConfiguredActionConnector + | SystemAction | UserConfiguredActionConnector; export type ActionConnectorWithoutId< diff --git a/x-pack/plugins/uptime/public/legacy_uptime/state/api/alerts.ts b/x-pack/plugins/uptime/public/legacy_uptime/state/api/alerts.ts index 9355cea954f98..8c623e914516b 100644 --- a/x-pack/plugins/uptime/public/legacy_uptime/state/api/alerts.ts +++ b/x-pack/plugins/uptime/public/legacy_uptime/state/api/alerts.ts @@ -38,6 +38,7 @@ export const fetchConnectors = async (): Promise => { is_preconfigured: isPreconfigured, is_deprecated: isDeprecated, is_missing_secrets: isMissingSecrets, + is_system_action: isSystemAction, ...res }) => ({ ...res, @@ -46,6 +47,7 @@ export const fetchConnectors = async (): Promise => { isDeprecated, isPreconfigured, isMissingSecrets, + isSystemAction, }) ); }; diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts index 154b693ad6533..23410b83d10ab 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases_webhook.ts @@ -108,6 +108,7 @@ export default function casesWebhookTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A casesWebhook action', connector_type_id: '.cases-webhook', @@ -122,6 +123,7 @@ export default function casesWebhookTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A casesWebhook action', connector_type_id: '.cases-webhook', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts index 19bbdfc4daacb..55d53c00f59df 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/d3security.ts @@ -72,6 +72,7 @@ export default function d3SecurityTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name, connector_type_id: connectorTypeId, diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts index a6c889ff6e556..cfffe90126fac 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/email.ts @@ -45,6 +45,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdActionId, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -71,6 +72,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -377,6 +379,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -403,6 +406,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -443,6 +447,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -469,6 +474,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -514,6 +520,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdMSExchangeActionId, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', @@ -542,6 +549,7 @@ export default function emailTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An email action', connector_type_id: '.email', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts index fed3acba1147e..46287db208b87 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/es_index.ts @@ -41,6 +41,7 @@ export default function indexTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An index action', connector_type_id: '.index', @@ -61,6 +62,7 @@ export default function indexTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'An index action', @@ -86,6 +88,7 @@ export default function indexTest({ getService }: FtrProviderContext) { expect(createdActionWithIndex).to.eql({ id: createdActionWithIndex.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An index action with index config', connector_type_id: '.index', @@ -106,6 +109,7 @@ export default function indexTest({ getService }: FtrProviderContext) { expect(fetchedActionWithIndex).to.eql({ id: fetchedActionWithIndex.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An index action with index config', connector_type_id: '.index', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gen_ai.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gen_ai.ts index 828e19470f4fe..45068d82b7c28 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gen_ai.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/gen_ai.ts @@ -82,6 +82,7 @@ export default function genAiTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name, connector_type_id: connectorTypeId, diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts index 87f69ffabbbb6..11588f48a48de 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/jira.ts @@ -75,6 +75,7 @@ export default function jiraTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A jira action', connector_type_id: '.jira', @@ -92,6 +93,7 @@ export default function jiraTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A jira action', connector_type_id: '.jira', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts index 1b9f001a2232c..fb73f6a95089e 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/opsgenie.ts @@ -55,6 +55,7 @@ export default function opsgenieTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An opsgenie action', connector_type_id: '.opsgenie', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts index 6533690762260..81a3c2ef966b9 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/pagerduty.ts @@ -61,6 +61,7 @@ export default function pagerdutyTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A pagerduty action', connector_type_id: '.pagerduty', @@ -79,6 +80,7 @@ export default function pagerdutyTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A pagerduty action', connector_type_id: '.pagerduty', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts index 3543c6a35c91d..8425de3b900ec 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/resilient.ts @@ -78,6 +78,7 @@ export default function resilientTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An IBM Resilient action', connector_type_id: '.resilient', @@ -95,6 +96,7 @@ export default function resilientTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An IBM Resilient action', connector_type_id: '.resilient', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts index b8b12d6aac764..a5f14e512ddb1 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/server_log.ts @@ -30,6 +30,7 @@ export default function serverLogTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'A server.log action', @@ -46,6 +47,7 @@ export default function serverLogTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A server.log action', connector_type_id: '.server-log', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts index 35cc75fbd08b5..e9e70d879618b 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itom.ts @@ -111,6 +111,7 @@ export default function serviceNowITOMTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-itom', @@ -131,6 +132,7 @@ export default function serviceNowITOMTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-itom', @@ -163,6 +165,7 @@ export default function serviceNowITOMTest({ getService }: FtrProviderContext) { expect(createdConnector).to.eql({ id: createdConnector.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-itom', @@ -183,6 +186,7 @@ export default function serviceNowITOMTest({ getService }: FtrProviderContext) { expect(fetchedConnector).to.eql({ id: fetchedConnector.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-itom', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts index 3833c39dd4618..96f0694ef794b 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_itsm.ts @@ -120,6 +120,7 @@ export default function serviceNowITSMTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow', @@ -141,6 +142,7 @@ export default function serviceNowITSMTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow', @@ -174,6 +176,7 @@ export default function serviceNowITSMTest({ getService }: FtrProviderContext) { expect(createdConnector).to.eql({ id: createdConnector.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow', @@ -195,6 +198,7 @@ export default function serviceNowITSMTest({ getService }: FtrProviderContext) { expect(fetchedConnector).to.eql({ id: fetchedConnector.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts index 7afb13b444eb7..2094ddd71cd7d 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/servicenow_sir.ts @@ -132,6 +132,7 @@ export default function serviceNowSIRTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-sir', @@ -153,6 +154,7 @@ export default function serviceNowSIRTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-sir', @@ -186,6 +188,7 @@ export default function serviceNowSIRTest({ getService }: FtrProviderContext) { expect(createdConnector).to.eql({ id: createdConnector.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-sir', @@ -207,6 +210,7 @@ export default function serviceNowSIRTest({ getService }: FtrProviderContext) { expect(fetchedConnector).to.eql({ id: fetchedConnector.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A servicenow action', connector_type_id: '.servicenow-sir', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts index 12c17d2a7a4f9..1a974eda92e71 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_api.ts @@ -29,6 +29,7 @@ export default function slackTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'A slack api action', @@ -45,6 +46,7 @@ export default function slackTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'A slack api action', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts index d9c32ccd643b0..4941bec1844ca 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/slack_webhook.ts @@ -58,6 +58,7 @@ export default function slackTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'A slack action', @@ -74,6 +75,7 @@ export default function slackTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'A slack action', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts index f0684db81f9cf..5d6bb9e9b8145 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/swimlane.ts @@ -151,6 +151,7 @@ export default function swimlaneTest({ getService }: FtrProviderContext) { id: createdAction.id, is_missing_secrets: false, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A swimlane action', }); @@ -164,6 +165,7 @@ export default function swimlaneTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'A swimlane action', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts index 4a745716ed08f..99ba90f78dbeb 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/tines.ts @@ -83,6 +83,7 @@ export default function tinesTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name, connector_type_id: connectorTypeId, diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts index 2dfbc3e8de643..257378b406da5 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/torq.ts @@ -88,6 +88,7 @@ export default function torqTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A Torq action', connector_type_id: '.torq', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts index c021733224a1c..c7a8f1c1b2524 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/webhook.ts @@ -117,6 +117,7 @@ export default function webhookTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A generic Webhook action', connector_type_id: '.webhook', @@ -136,6 +137,7 @@ export default function webhookTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A generic Webhook action', connector_type_id: '.webhook', @@ -170,6 +172,7 @@ export default function webhookTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A generic Webhook action', connector_type_id: '.webhook', @@ -208,6 +211,7 @@ export default function webhookTest({ getService }: FtrProviderContext) { expect(fetchedAction).to.eql({ id: fetchedAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'A generic Webhook action', connector_type_id: '.webhook', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/xmatters.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/xmatters.ts index 38bc73a3ad452..4efacbf78f951 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/xmatters.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/xmatters.ts @@ -61,6 +61,7 @@ export default function xmattersTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An xmatters action', connector_type_id: '.xmatters', @@ -95,6 +96,7 @@ export default function xmattersTest({ getService }: FtrProviderContext) { expect(createdAction).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'An xmatters action', connector_type_id: '.xmatters', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/create.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/create.ts index dce40323e9e1c..4c9db37fe3543 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/create.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/create.ts @@ -60,6 +60,7 @@ export default function createActionTests({ getService }: FtrProviderContext) { expect(response.body).to.eql({ id: response.body.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'My action', @@ -296,6 +297,7 @@ export default function createActionTests({ getService }: FtrProviderContext) { expect(response.body).to.eql({ id: predefinedId, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'My action', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get.ts index f58481bb94412..3b04af22d2e96 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get.ts @@ -63,6 +63,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { expect(response.body).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, connector_type_id: 'test.index-record', is_deprecated: false, is_missing_secrets: false, @@ -151,6 +152,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { connector_type_id: '.slack', name: 'Slack#xyz', is_preconfigured: true, + is_system_action: false, is_deprecated: false, }); break; diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get_all.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get_all.ts index 1cf5b7bb30347..37475d7f191ca 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get_all.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/get_all.ts @@ -70,6 +70,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'My action', connector_type_id: 'test.index-record', @@ -83,6 +84,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.email', id: 'notification-email', is_deprecated: false, + is_system_action: false, is_preconfigured: true, name: 'Notification Email Connector', referenced_by_count: 0, @@ -90,6 +92,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'preconfigured-es-index-action', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.index', name: 'preconfigured_es_index_action', @@ -99,6 +102,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.servicenow', id: 'my-deprecated-servicenow', is_preconfigured: true, + is_system_action: false, is_deprecated: true, name: 'ServiceNow#xyz', referenced_by_count: 0, @@ -107,6 +111,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.servicenow', id: 'my-deprecated-servicenow-default', is_preconfigured: true, + is_system_action: false, is_deprecated: true, name: 'ServiceNow#xyz', referenced_by_count: 0, @@ -114,6 +119,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'my-slack1', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.slack', name: 'Slack#xyz', @@ -122,6 +128,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'custom-system-abc-connector', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: 'system-abc-action-type', name: 'SystemABC', @@ -130,6 +137,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'preconfigured.test.index-record', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: 'test.index-record', name: 'Test:_Preconfigured_Index_Record', @@ -138,6 +146,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'my-test-email', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.email', name: 'TestEmail#xyz', @@ -221,6 +230,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, name: 'My action', connector_type_id: 'test.index-record', @@ -235,12 +245,14 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'notification-email', is_deprecated: false, is_preconfigured: true, + is_system_action: false, name: 'Notification Email Connector', referenced_by_count: 0, }, { id: 'preconfigured-es-index-action', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.index', name: 'preconfigured_es_index_action', @@ -251,6 +263,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow', is_deprecated: true, is_preconfigured: true, + is_system_action: false, name: 'ServiceNow#xyz', referenced_by_count: 0, }, @@ -258,6 +271,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.servicenow', id: 'my-deprecated-servicenow-default', is_preconfigured: true, + is_system_action: false, is_deprecated: true, name: 'ServiceNow#xyz', referenced_by_count: 0, @@ -265,6 +279,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'my-slack1', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.slack', name: 'Slack#xyz', @@ -273,6 +288,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'custom-system-abc-connector', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: 'system-abc-action-type', name: 'SystemABC', @@ -281,6 +297,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'preconfigured.test.index-record', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: 'test.index-record', name: 'Test:_Preconfigured_Index_Record', @@ -289,6 +306,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'my-test-email', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.email', name: 'TestEmail#xyz', @@ -350,12 +368,14 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'notification-email', is_deprecated: false, is_preconfigured: true, + is_system_action: false, name: 'Notification Email Connector', referenced_by_count: 0, }, { id: 'preconfigured-es-index-action', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.index', name: 'preconfigured_es_index_action', @@ -365,6 +385,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.servicenow', id: 'my-deprecated-servicenow', is_preconfigured: true, + is_system_action: false, is_deprecated: true, name: 'ServiceNow#xyz', referenced_by_count: 0, @@ -373,6 +394,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.servicenow', id: 'my-deprecated-servicenow-default', is_preconfigured: true, + is_system_action: false, is_deprecated: true, name: 'ServiceNow#xyz', referenced_by_count: 0, @@ -380,6 +402,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'my-slack1', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.slack', name: 'Slack#xyz', @@ -388,6 +411,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'custom-system-abc-connector', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: 'system-abc-action-type', name: 'SystemABC', @@ -396,6 +420,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'preconfigured.test.index-record', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: 'test.index-record', name: 'Test:_Preconfigured_Index_Record', @@ -404,6 +429,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { { id: 'my-test-email', is_preconfigured: true, + is_system_action: false, is_deprecated: false, connector_type_id: '.email', name: 'TestEmail#xyz', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts index 8b79bd2227f8d..8bc8bc6a89757 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/sub_action_framework/index.ts @@ -91,6 +91,7 @@ export default function createActionTests({ getService }: FtrProviderContext) { expect(res.body).to.eql({ id: res.body.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, is_missing_secrets: false, name: 'My sub connector', diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts index 0e4214a9138f6..07d2e6064bc0b 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/update.ts @@ -73,6 +73,7 @@ export default function updateActionTests({ getService }: FtrProviderContext) { expect(response.body).to.eql({ id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, connector_type_id: 'test.index-record', is_missing_secrets: false, diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts index aa3b2b6780dc8..e25775755eb00 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/connector_types/stack/es_index.ts @@ -57,6 +57,7 @@ export default function indexTest({ getService }: FtrProviderContext) { id: createdConnector.id, is_preconfigured: false, is_deprecated: false, + is_system_action: false, name: 'An index connector', connector_type_id: '.index', is_missing_secrets: false, @@ -78,6 +79,7 @@ export default function indexTest({ getService }: FtrProviderContext) { is_preconfigured: false, is_deprecated: false, is_missing_secrets: false, + is_system_action: false, name: 'An index connector', connector_type_id: '.index', config: { index: ES_TEST_INDEX_NAME, refresh: false, executionTimeField: null }, @@ -102,6 +104,7 @@ export default function indexTest({ getService }: FtrProviderContext) { id: createdConnectorWithIndex.id, is_preconfigured: false, is_deprecated: false, + is_system_action: false, name: 'An index connector with index config', connector_type_id: '.index', is_missing_secrets: false, @@ -122,6 +125,7 @@ export default function indexTest({ getService }: FtrProviderContext) { id: fetchedConnectorWithIndex.id, is_preconfigured: false, is_deprecated: false, + is_system_action: false, name: 'An index connector with index config', connector_type_id: '.index', is_missing_secrets: false, diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/create.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/create.ts index bf5318509bf99..a7239343b2c61 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/create.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/create.ts @@ -43,6 +43,7 @@ export default function createActionTests({ getService }: FtrProviderContext) { name: 'My action', connector_type_id: 'test.index-record', is_missing_secrets: false, + is_system_action: false, config: { unencrypted: `This value shouldn't get encrypted`, }, @@ -104,6 +105,7 @@ export default function createActionTests({ getService }: FtrProviderContext) { name: 'My action', actionTypeId: 'test.index-record', isMissingSecrets: false, + isSystemAction: false, config: { unencrypted: `This value shouldn't get encrypted`, }, diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get.ts index 6d923452faac5..68d4512145118 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get.ts @@ -42,6 +42,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { is_preconfigured: false, is_deprecated: false, is_missing_secrets: false, + is_system_action: false, connector_type_id: 'test.index-record', name: 'My action', config: { @@ -83,6 +84,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { id: 'my-slack1', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: '.slack', name: 'Slack#xyz', }); @@ -95,6 +97,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow', is_preconfigured: true, is_deprecated: true, + is_system_action: false, connector_type_id: '.servicenow', name: 'ServiceNow#xyz', }); @@ -107,6 +110,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow-default', is_preconfigured: true, is_deprecated: true, + is_system_action: false, connector_type_id: '.servicenow', name: 'ServiceNow#xyz', }); @@ -136,6 +140,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { id: createdAction.id, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, actionTypeId: 'test.index-record', isMissingSecrets: false, name: 'My action', @@ -178,6 +183,7 @@ export default function getActionTests({ getService }: FtrProviderContext) { id: 'my-slack1', isPreconfigured: true, isDeprecated: false, + isSystemAction: false, actionTypeId: '.slack', name: 'Slack#xyz', }); diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts index b2b208843c60e..d4a43da31894e 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/get_all.ts @@ -53,6 +53,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.index', is_preconfigured: true, is_deprecated: false, + is_system_action: false, referenced_by_count: 0, }, { @@ -62,6 +63,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { name: 'My action', connector_type_id: 'test.index-record', is_missing_secrets: false, + is_system_action: false, config: { unencrypted: `This value shouldn't get encrypted`, }, @@ -72,6 +74,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'notification-email', is_deprecated: false, is_preconfigured: true, + is_system_action: false, name: 'Notification Email Connector', referenced_by_count: 0, }, @@ -79,6 +82,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'preconfigured-es-index-action', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: '.index', name: 'preconfigured_es_index_action', referenced_by_count: 0, @@ -88,6 +92,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow', is_deprecated: true, is_preconfigured: true, + is_system_action: false, name: 'ServiceNow#xyz', referenced_by_count: 0, }, @@ -96,6 +101,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow-default', is_preconfigured: true, is_deprecated: true, + is_system_action: false, name: 'ServiceNow#xyz', referenced_by_count: 0, }, @@ -104,6 +110,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { is_preconfigured: true, is_deprecated: false, connector_type_id: '.slack', + is_system_action: false, name: 'Slack#xyz', referenced_by_count: 0, }, @@ -112,6 +119,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { is_preconfigured: true, is_deprecated: false, connector_type_id: 'system-abc-action-type', + is_system_action: false, name: 'SystemABC', referenced_by_count: 0, }, @@ -120,6 +128,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { is_preconfigured: true, is_deprecated: false, connector_type_id: 'test.index-record', + is_system_action: false, name: 'Test:_Preconfigured_Index_Record', referenced_by_count: 0, }, @@ -127,6 +136,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-test-email', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: '.email', name: 'TestEmail#xyz', referenced_by_count: 0, @@ -168,6 +178,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { connector_type_id: '.index', is_preconfigured: true, is_deprecated: false, + is_system_action: false, referenced_by_count: 0, }, { @@ -175,6 +186,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'notification-email', is_deprecated: false, is_preconfigured: true, + is_system_action: false, name: 'Notification Email Connector', referenced_by_count: 0, }, @@ -182,6 +194,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'preconfigured-es-index-action', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: '.index', name: 'preconfigured_es_index_action', referenced_by_count: 0, @@ -191,6 +204,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow', is_deprecated: true, is_preconfigured: true, + is_system_action: false, name: 'ServiceNow#xyz', referenced_by_count: 0, }, @@ -199,6 +213,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow-default', is_preconfigured: true, is_deprecated: true, + is_system_action: false, name: 'ServiceNow#xyz', referenced_by_count: 0, }, @@ -206,6 +221,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-slack1', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: '.slack', name: 'Slack#xyz', referenced_by_count: 0, @@ -214,6 +230,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'custom-system-abc-connector', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: 'system-abc-action-type', name: 'SystemABC', referenced_by_count: 0, @@ -222,6 +239,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'preconfigured.test.index-record', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: 'test.index-record', name: 'Test:_Preconfigured_Index_Record', referenced_by_count: 0, @@ -230,6 +248,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-test-email', is_preconfigured: true, is_deprecated: false, + is_system_action: false, connector_type_id: '.email', name: 'TestEmail#xyz', referenced_by_count: 0, @@ -271,6 +290,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { name: 'Alert history Elasticsearch index', actionTypeId: '.index', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, referencedByCount: 0, }, @@ -278,6 +298,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: createdAction.id, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, name: 'My action', actionTypeId: 'test.index-record', isMissingSecrets: false, @@ -291,6 +312,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'notification-email', isDeprecated: false, isPreconfigured: true, + isSystemAction: false, name: 'Notification Email Connector', referencedByCount: 0, }, @@ -299,6 +321,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { isPreconfigured: true, isDeprecated: false, actionTypeId: '.index', + isSystemAction: false, name: 'preconfigured_es_index_action', referencedByCount: 0, }, @@ -307,6 +330,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow', isDeprecated: true, isPreconfigured: true, + isSystemAction: false, name: 'ServiceNow#xyz', referencedByCount: 0, }, @@ -315,6 +339,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { id: 'my-deprecated-servicenow-default', isPreconfigured: true, isDeprecated: true, + isSystemAction: false, name: 'ServiceNow#xyz', referencedByCount: 0, }, @@ -323,6 +348,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { isPreconfigured: true, isDeprecated: false, actionTypeId: '.slack', + isSystemAction: false, name: 'Slack#xyz', referencedByCount: 0, }, @@ -331,6 +357,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { isPreconfigured: true, isDeprecated: false, actionTypeId: 'system-abc-action-type', + isSystemAction: false, name: 'SystemABC', referencedByCount: 0, }, @@ -339,6 +366,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { isPreconfigured: true, isDeprecated: false, actionTypeId: 'test.index-record', + isSystemAction: false, name: 'Test:_Preconfigured_Index_Record', referencedByCount: 0, }, @@ -347,6 +375,7 @@ export default function getAllActionTests({ getService }: FtrProviderContext) { isPreconfigured: true, isDeprecated: false, actionTypeId: '.email', + isSystemAction: false, name: 'TestEmail#xyz', referencedByCount: 0, }, diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts index 0ab9baad0b554..d0f7c8752d47c 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/type_not_enabled.ts @@ -63,6 +63,7 @@ export default function typeNotEnabledTests({ getService }: FtrProviderContext) id: 'uuid-actionId', isPreconfigured: false, isDeprecated: false, + isSystemAction: false, isMissingSecrets: false, name: 'an action created before test.not-enabled was disabled', }); @@ -93,6 +94,7 @@ export default function typeNotEnabledTests({ getService }: FtrProviderContext) isPreconfigured: false, isDeprecated: false, isMissingSecrets: false, + isSystemAction: false, name: 'an action created before test.not-enabled was disabled', }); }); diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/update.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/update.ts index 5f6dffcc3c3e6..d6f41e3037ad2 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/actions/update.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/actions/update.ts @@ -51,6 +51,7 @@ export default function updateActionTests({ getService }: FtrProviderContext) { .expect(200, { id: createdAction.id, is_preconfigured: false, + is_system_action: false, is_deprecated: false, connector_type_id: 'test.index-record', is_missing_secrets: false, @@ -215,6 +216,7 @@ export default function updateActionTests({ getService }: FtrProviderContext) { id: createdAction.id, isPreconfigured: false, isDeprecated: false, + isSystemAction: false, actionTypeId: 'test.index-record', isMissingSecrets: false, name: 'My action updated', diff --git a/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts b/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts index bd24b8852b716..e75fed4f399b7 100644 --- a/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts +++ b/x-pack/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts @@ -82,6 +82,7 @@ export default ({ getService }: FtrProviderContext): void => { updateIncidentUrl: 'http://some.non.existent.com/{{{external.system.id}}}', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -95,6 +96,7 @@ export default ({ getService }: FtrProviderContext): void => { projectKey: 'pkey', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -107,6 +109,7 @@ export default ({ getService }: FtrProviderContext): void => { actionTypeId: '.servicenow', id: 'preconfigured-servicenow', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'preconfigured-servicenow', referencedByCount: 0, @@ -120,6 +123,7 @@ export default ({ getService }: FtrProviderContext): void => { orgId: 'pkey', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -137,6 +141,7 @@ export default ({ getService }: FtrProviderContext): void => { userIdentifierValue: null, }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -154,6 +159,7 @@ export default ({ getService }: FtrProviderContext): void => { jwtKeyId: 'def', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -171,6 +177,7 @@ export default ({ getService }: FtrProviderContext): void => { userIdentifierValue: null, }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, diff --git a/x-pack/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts b/x-pack/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts index c7b6f03d3526e..5ddc3df660142 100644 --- a/x-pack/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts +++ b/x-pack/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts @@ -116,6 +116,7 @@ export default ({ getService }: FtrProviderContext): void => { updateIncidentUrl: 'http://some.non.existent.com/{{{external.system.id}}}', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -129,6 +130,7 @@ export default ({ getService }: FtrProviderContext): void => { projectKey: 'pkey', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -141,6 +143,7 @@ export default ({ getService }: FtrProviderContext): void => { actionTypeId: '.servicenow', id: 'preconfigured-servicenow', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'preconfigured-servicenow', referencedByCount: 0, @@ -154,6 +157,7 @@ export default ({ getService }: FtrProviderContext): void => { orgId: 'pkey', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -171,6 +175,7 @@ export default ({ getService }: FtrProviderContext): void => { userIdentifierValue: null, }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -188,6 +193,7 @@ export default ({ getService }: FtrProviderContext): void => { jwtKeyId: 'def', }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -205,6 +211,7 @@ export default ({ getService }: FtrProviderContext): void => { userIdentifierValue: null, }, isPreconfigured: false, + isSystemAction: false, isDeprecated: false, isMissingSecrets: false, referencedByCount: 0, @@ -270,6 +277,7 @@ export default ({ getService }: FtrProviderContext): void => { actionTypeId: '.servicenow', id: 'preconfigured-servicenow', isPreconfigured: true, + isSystemAction: false, isDeprecated: false, name: 'preconfigured-servicenow', referencedByCount: 0,