Commit bb3a9953 authored by Peter Leitzen's avatar Peter Leitzen

Merge developer_permissions in project policy context

Difference

    >> a - b
    => [:admin_tag, :destroy_container_image,
        :create_metrics_dashboard_annotation,
        :delete_metrics_dashboard_annotation,
        :update_metrics_dashboard_annotation, :read_terraform_state,
        :read_pod_logs]
    >> b - a
    => []
parent 19159a24
......@@ -14,18 +14,6 @@ RSpec.describe ProjectPolicy do
let_it_be(:admin) { create(:admin) }
let(:project) { create(:project, :public, namespace: owner.namespace) }
let(:developer_permissions) do
%i[
admin_tag admin_milestone admin_merge_request update_merge_request create_commit_status
update_commit_status create_build update_build create_pipeline
update_pipeline create_merge_request_from create_wiki push_code
resolve_note create_container_image update_container_image destroy_container_image daily_statistics
create_environment update_environment create_deployment update_deployment create_release update_release
create_metrics_dashboard_annotation delete_metrics_dashboard_annotation update_metrics_dashboard_annotation
read_terraform_state read_pod_logs
]
end
let(:base_maintainer_permissions) do
%i[
push_to_delete_protected_branch update_snippet
......
......@@ -36,12 +36,15 @@ RSpec.shared_context 'ProjectPolicy context' do
let(:developer_permissions) do
%i[
admin_milestone admin_merge_request update_merge_request create_commit_status
update_commit_status create_build update_build create_pipeline
update_pipeline create_merge_request_from create_wiki push_code
resolve_note create_container_image update_container_image
create_environment create_deployment update_deployment create_release update_release
update_environment daily_statistics
admin_merge_request admin_milestone admin_tag create_build
create_commit_status create_container_image create_deployment
create_environment create_merge_request_from
create_metrics_dashboard_annotation create_pipeline create_release
create_wiki daily_statistics delete_metrics_dashboard_annotation
destroy_container_image push_code read_pod_logs read_terraform_state
resolve_note update_build update_commit_status update_container_image
update_deployment update_environment update_merge_request
update_metrics_dashboard_annotation update_pipeline update_release
]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment