File tree Expand file tree Collapse file tree
openmetadata-ui/src/main/resources/ui/playwright Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ export const DEFAULT_POLICIES = {
2121 teamOnlyAccessPolicy : 'Team only access Policy' ,
2222} ;
2323
24+ export const SYSTEM_POLICY_NAMES = {
25+ taskAuthorPolicy : 'TaskAuthorPolicy' ,
26+ } ;
27+
2428export const RULE_DETAILS = {
2529 resources : 'All' ,
2630 operations : 'All' ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { Operation } from 'fast-json-patch';
1515import {
1616 DATA_CONSUMER_RULES ,
1717 DATA_STEWARD_RULES ,
18+ SYSTEM_POLICY_NAMES ,
1819} from '../../constant/permission' ;
1920import { generateRandomUsername , uuid } from '../../utils/common' ;
2021import { PolicyClass , PolicyRulesType } from '../access-control/PoliciesClass' ;
@@ -167,6 +168,7 @@ export class UserClass {
167168 await dataConsumerPolicy . create ( apiContext , DATA_CONSUMER_RULES ) ;
168169 await dataConsumerRoles . create ( apiContext , [
169170 dataConsumerPolicy . responseData . name ,
171+ SYSTEM_POLICY_NAMES . taskAuthorPolicy ,
170172 ] ) ;
171173 const dataConsumerTeam = new TeamClass ( {
172174 name : `PW%data_consumer_team-${ id } ` ,
You can’t perform that action at this time.
0 commit comments