Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for backfill SOs to be deleted before running the invalidate API key task #198422

Merged
merged 4 commits into from
Oct 31, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ 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 () => {
try {
// throws when not found
await getAdHocRunSO(backfillId);
throw new Error('should have thrown');
} catch (e) {
expect(e.message).not.to.eql('should have thrown');
}
});

// invoke the invalidate task
await runInvalidateTask();

Expand Down