test(update-role-mappings): use explicit remote role name
This commit is contained in:
@@ -22,9 +22,11 @@ describe('PATCH /api/v1/admin/saml-auth-providers/:samlAuthProviderId/role-mappi
|
|||||||
samlAuthProvider = await createSamlAuthProvider();
|
samlAuthProvider = await createSamlAuthProvider();
|
||||||
await createSamlAuthProvidersRoleMapping({
|
await createSamlAuthProvidersRoleMapping({
|
||||||
samlAuthProviderId: samlAuthProvider.id,
|
samlAuthProviderId: samlAuthProvider.id,
|
||||||
|
remoteRoleName: 'Viewer',
|
||||||
});
|
});
|
||||||
await createSamlAuthProvidersRoleMapping({
|
await createSamlAuthProvidersRoleMapping({
|
||||||
samlAuthProviderId: samlAuthProvider.id,
|
samlAuthProviderId: samlAuthProvider.id,
|
||||||
|
remoteRoleName: 'Editor',
|
||||||
});
|
});
|
||||||
|
|
||||||
token = await createAuthTokenByUserId(currentUser.id);
|
token = await createAuthTokenByUserId(currentUser.id);
|
||||||
|
Reference in New Issue
Block a user