Skip to content

Commit

Permalink
fix issues with backport conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthMantri authored Nov 25, 2024
1 parent e37750a commit 95e0843
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../ftr_provider_context';

async function clearAllApiKeys(esClient: Client, logger: ToolingLog) {
const existingKeys = await esClient.security.queryApiKeys();
if (existingKeys.count > 0) {
await Promise.all(
existingKeys.api_keys.map(async (key) => {
esClient.security.invalidateApiKey({ ids: [key.id] });
})
);
} else {
logger.debug('No API keys to delete.');
}
}

export default ({ getPageObjects, getService }: FtrProviderContext) => {
const pageObjects = getPageObjects(['common', 'svlCommonPage', 'apiKeys']);
const browser = getService('browser');
Expand Down

0 comments on commit 95e0843

Please sign in to comment.