diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts index f686ee61d00f5..3771039e392c9 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/alerting/update.ts @@ -1140,7 +1140,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) { .send(getTestRuleData()) .expect(200); - objectRemover.add(space.id, createdRule.body.id, 'rule', 'alerting'); + objectRemover.add(space.id, createdRule.id, 'rule', 'alerting'); for (const propertyToAdd of [ { group: 'default' }, @@ -1205,7 +1205,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) { .send(getTestRuleData()) .expect(200); - objectRemover.add(space.id, createdRule.body.id, 'rule', 'alerting'); + objectRemover.add(space.id, createdRule.id, 'rule', 'alerting'); await supertestWithoutAuth .put(`${getUrlPrefix(space.id)}/api/alerting/rule/${createdRule.id}`) @@ -1252,7 +1252,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) { .send(getTestRuleData()) .expect(200); - objectRemover.add(space.id, createdRule.body.id, 'rule', 'alerting'); + objectRemover.add(space.id, createdRule.id, 'rule', 'alerting'); await supertestWithoutAuth .put(`${getUrlPrefix(space.id)}/api/alerting/rule/${createdRule.id}`) diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts index 196076a148ff6..927ea19396687 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group3/tests/alerting/bulk_delete.ts @@ -711,8 +711,6 @@ export default ({ getService }: FtrProviderContext) => { ) .expect(200); - objectRemover.add(space.id, createdRule1.id, 'rule', 'alerting'); - const response = await supertestWithoutAuth .patch(`${getUrlPrefix(space.id)}/internal/alerting/rules/_bulk_delete`) .set('kbn-xsrf', 'foo')