groups und impersination
This commit is contained in:
@@ -45,6 +45,7 @@ describe('AppController (e2e)', () => {
|
||||
subject: 'oidc-default',
|
||||
email: 'default@example.com',
|
||||
name: 'Default User',
|
||||
groups: [],
|
||||
})),
|
||||
};
|
||||
|
||||
@@ -205,9 +206,7 @@ describe('AppController (e2e)', () => {
|
||||
expect(fetchedList.items[0].checked).toBe(true);
|
||||
});
|
||||
|
||||
async function loginWithSsoAndGetAccessToken(
|
||||
email: string,
|
||||
): Promise<string> {
|
||||
async function loginWithSsoAndGetAccessToken(email: string): Promise<string> {
|
||||
const loginBody = await loginWithSso(email);
|
||||
expect(loginBody.accessToken).toBeDefined();
|
||||
|
||||
@@ -219,6 +218,7 @@ describe('AppController (e2e)', () => {
|
||||
subject: `sub-${email}`,
|
||||
email,
|
||||
name: 'Test User',
|
||||
groups: [],
|
||||
});
|
||||
|
||||
const exchangeResponse = await request(app.getHttpServer())
|
||||
@@ -270,7 +270,9 @@ describe('AppController (e2e)', () => {
|
||||
)) as unknown[];
|
||||
|
||||
if (columns.length) {
|
||||
await dataSource.query(`ALTER TABLE \`users\` DROP COLUMN \`${columnName}\``);
|
||||
await dataSource.query(
|
||||
`ALTER TABLE \`users\` DROP COLUMN \`${columnName}\``,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user