Improve ordering to minimize diff
This commit is contained in:
parent
295994d02a
commit
df338ed6a0
@ -49,6 +49,8 @@ export function prepareRealmConfig(params: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parsedRealmJson.eventsListeners.push(name);
|
parsedRealmJson.eventsListeners.push(name);
|
||||||
|
|
||||||
|
parsedRealmJson.eventsListeners.sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -146,6 +148,10 @@ function addOrEditTestUser(params: {
|
|||||||
|
|
||||||
(newUser.clientRoles[clientName] ??= []).push(clientRole.name);
|
(newUser.clientRoles[clientName] ??= []).push(clientRole.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const clientName of Object.keys(newUser.clientRoles)) {
|
||||||
|
newUser.clientRoles[clientName].sort().reverse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaultUser_preexisting === undefined) {
|
if (defaultUser_preexisting === undefined) {
|
||||||
@ -228,7 +234,6 @@ function addOrEditClient(params: {
|
|||||||
parsedRealmJson.clients.push(testClient);
|
parsedRealmJson.clients.push(testClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
for (const redirectUri of [
|
for (const redirectUri of [
|
||||||
`${TEST_APP_URL}/*`,
|
`${TEST_APP_URL}/*`,
|
||||||
"http://localhost*",
|
"http://localhost*",
|
||||||
@ -259,7 +264,9 @@ function addOrEditClient(params: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
testClient.webOrigins?.sort().reverse();
|
||||||
|
testClient.redirectUris?.sort().reverse();
|
||||||
|
|
||||||
return { clientId: testClient.clientId };
|
return { clientId: testClient.clientId };
|
||||||
}
|
}
|
||||||
@ -276,7 +283,6 @@ function editAccountConsoleAndSecurityAdminConsole(params: {
|
|||||||
|
|
||||||
assert(client !== undefined);
|
assert(client !== undefined);
|
||||||
|
|
||||||
{
|
|
||||||
for (const redirectUri of [
|
for (const redirectUri of [
|
||||||
`${TEST_APP_URL}/*`,
|
`${TEST_APP_URL}/*`,
|
||||||
"http://localhost*",
|
"http://localhost*",
|
||||||
@ -307,6 +313,8 @@ function editAccountConsoleAndSecurityAdminConsole(params: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
client.webOrigins?.sort().reverse();
|
||||||
|
client.redirectUris?.sort().reverse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user