From e7a8c5730ebfa3f73f8722872652fd7fee05ea22 Mon Sep 17 00:00:00 2001 From: Mike Cote Date: Wed, 30 Oct 2024 14:10:54 -0400 Subject: [PATCH] Initial commit --- .../group1/tests/alerting/backfill/api_key.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts b/x-pack/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts index 46a92d176bab0..9aea20f42e5f9 100644 --- a/x-pack/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts +++ b/x-pack/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/api_key.ts @@ -252,6 +252,13 @@ export default function apiKeyBackfillTests({ getService }: FtrProviderContext) expect(e?.event?.outcome).to.eql('success'); } + // wait for all the api_key_pending_invalidation SOs to be deleted + await retry.try(async () => { + const results = await getApiKeysPendingInvalidation(); + expect(results.length).to.eql(0); + return results; + }); + // invoke the invalidate task await runInvalidateTask();