mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +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); | ||||
| 
 | ||||
|       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 entity.create(apiContext); | ||||
|       await afterAction(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Aniket Katkar
						Aniket Katkar