Skip to content

Commit

Permalink
Adds cleanup to serverless platform security authorization test suite (
Browse files Browse the repository at this point in the history
…#198827)

## Summary

[#195584](#195584) inadvertently
removed the cleanup of created roles during testing. This PR restores
the missing call to clean up any created roles.
  • Loading branch information
jeramysoucy authored Nov 5, 2024
1 parent 8cbe61b commit fdc9aae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function ({ getService }: FtrProviderContext) {
const log = getService('log');
const svlCommonApi = getService('svlCommonApi');
const roleScopedSupertest = getService('roleScopedSupertest');
const platformSecurityUtils = getService('platformSecurityUtils');
const es = getService('es');
let supertestAdminWithCookieCredentials: SupertestWithRoleScopeType;
let supertestAdminWithApiKey: SupertestWithRoleScopeType;
Expand All @@ -56,6 +57,7 @@ export default function ({ getService }: FtrProviderContext) {
});
});
after(async function () {
await platformSecurityUtils.clearAllRoles();
await supertestAdminWithApiKey.destroy();
});

Expand Down

0 comments on commit fdc9aae

Please sign in to comment.