Skip to content

Commit

Permalink
[Obs AI Assistant] Remove unused user
Browse files Browse the repository at this point in the history
  • Loading branch information
viduni94 committed Dec 6, 2024
1 parent 2e14631 commit 24bd659
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
describe.skip('Knowledge base user instructions', function () {
this.tags(['skipMKI']);
let editorRoleAuthc: RoleCredentials;
let johnRoleAuthc: RoleCredentials;
let internalReqHeader: InternalRequestHeader;

before(async () => {
// Create API keys for 'editor' role, simulating different users
johnRoleAuthc = await svlUserManager.createM2mApiKeyWithRoleScope('admin');
editorRoleAuthc = await svlUserManager.createM2mApiKeyWithRoleScope('editor');
internalReqHeader = svlCommonApi.getInternalRequestHeader();
await createKnowledgeBaseModel(ml);
Expand All @@ -59,7 +56,6 @@ export default function ApiTest({ getService }: FtrProviderContext) {
await deleteInferenceEndpoint({ es });
await clearKnowledgeBase(es);
await clearConversations(es);
await svlUserManager.invalidateM2mApiKeyWithRoleScope(johnRoleAuthc);
await svlUserManager.invalidateM2mApiKeyWithRoleScope(editorRoleAuthc);
});

Expand Down

0 comments on commit 24bd659

Please sign in to comment.