Skip to content

Commit

Permalink
add deleteDataPipelineEnvironment perm
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkalos committed Dec 2, 2024
1 parent 15b34a0 commit 1b198b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def _delete_repository(target_uri, accountid, cdk_role_arn, region, repo_name):

@staticmethod
@TenantPolicyService.has_tenant_permission(MANAGE_PIPELINES)
@ResourcePolicyService.has_resource_permission(UPDATE_PIPELINE, param_name='envPipelineUri')
def delete_pipeline_environment(envPipelineUri: str):
with _session() as session:
DatapipelinesRepository.delete_pipeline_environment(session=session, envPipelineUri=envPipelineUri)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tenant_unauthorized.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def __post_init__(self):
field_id('Mutation', 'deleteDashboard'): TestData(tenant_perm=MANAGE_DASHBOARDS, resource_perm=DELETE_DASHBOARD),
field_id('Mutation', 'deleteDataPipeline'): TestData(tenant_perm=MANAGE_PIPELINES, resource_perm=DELETE_PIPELINE),
field_id('Mutation', 'deleteDataPipelineEnvironment'): TestData(
tenant_perm=MANAGE_PIPELINES, resource_ignore=IgnoreReason.NOTREQUIRED
tenant_perm=MANAGE_PIPELINES, resource_perm=UPDATE_PIPELINE
),
field_id('Mutation', 'deleteDataset'): TestData(tenant_perm=MANAGE_DATASETS, resource_perm=DELETE_DATASET),
field_id('Mutation', 'deleteDatasetStorageLocation'): TestData(
Expand Down

0 comments on commit 1b198b9

Please sign in to comment.