mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore(test): reorg the sso connector api cleanup logic (#6053)
reorg the sso connector api cleanup logic
This commit is contained in:
parent
32270d1d7e
commit
0f3dbbc4a9
2 changed files with 7 additions and 5 deletions
|
@ -44,7 +44,12 @@ describe('manual data hook tests', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await Promise.all([webHookApi.cleanUp(), userApi.cleanUp(), organizationApi.cleanUp()]);
|
await Promise.all([
|
||||||
|
webHookApi.cleanUp(),
|
||||||
|
userApi.cleanUp(),
|
||||||
|
organizationApi.cleanUp(),
|
||||||
|
ssoConnectorApi.cleanUp(),
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('create roles with scopeIds should trigger Roles.Scopes.Updated event', async () => {
|
it('create roles with scopeIds should trigger Roles.Scopes.Updated event', async () => {
|
||||||
|
@ -171,8 +176,6 @@ describe('manual data hook tests', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
await assertOrganizationMembershipUpdated(organization.id);
|
await assertOrganizationMembershipUpdated(organization.id);
|
||||||
|
|
||||||
await ssoConnectorApi.cleanUp();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('organization just-in-time provisioning', () => {
|
||||||
const ssoConnectorApi = new SsoConnectorApi();
|
const ssoConnectorApi = new SsoConnectorApi();
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await organizationApi.cleanUp();
|
await Promise.all([organizationApi.cleanUp(), ssoConnectorApi.cleanUp()]);
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
@ -120,6 +120,5 @@ describe('organization just-in-time provisioning', () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
await deleteUser(userId);
|
await deleteUser(userId);
|
||||||
await ssoConnectorApi.cleanUp();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue