mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 10:26:09 +00:00
Remove the EntityDataConsumer spec dependency on organization inherited role (#17667)
This commit is contained in:
parent
0a9e0d00d4
commit
73f2cad53a
@ -62,6 +62,28 @@ entities.forEach((EntityClass) => {
|
|||||||
const { apiContext, afterAction } = await performAdminLogin(browser);
|
const { apiContext, afterAction } = await performAdminLogin(browser);
|
||||||
|
|
||||||
await user.create(apiContext);
|
await user.create(apiContext);
|
||||||
|
|
||||||
|
const dataConsumerRoleResponse = await apiContext.get(
|
||||||
|
'/api/v1/roles/name/DataConsumer'
|
||||||
|
);
|
||||||
|
|
||||||
|
const dataConsumerRole = await dataConsumerRoleResponse.json();
|
||||||
|
|
||||||
|
await user.patch({
|
||||||
|
apiContext,
|
||||||
|
patchData: [
|
||||||
|
{
|
||||||
|
op: 'add',
|
||||||
|
path: '/roles/0',
|
||||||
|
value: {
|
||||||
|
id: dataConsumerRole.id,
|
||||||
|
type: 'role',
|
||||||
|
name: dataConsumerRole.name,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
await EntityDataClass.preRequisitesForTests(apiContext);
|
await EntityDataClass.preRequisitesForTests(apiContext);
|
||||||
await entity.create(apiContext);
|
await entity.create(apiContext);
|
||||||
await afterAction();
|
await afterAction();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user