Commit 8951db44 authored by Peter Leitzen's avatar Peter Leitzen

Merge base_maintainer_permissions in project policy context

Difference:

    >> a - b
    => [:read_deploy_token, :create_deploy_token,
        :destroy_deploy_token, :admin_terraform_state]
    >> b - a
    => []
parent bb3a9953
......@@ -14,17 +14,6 @@ RSpec.describe ProjectPolicy do
let_it_be(:admin) { create(:admin) }
let(:project) { create(:project, :public, namespace: owner.namespace) }
let(:base_maintainer_permissions) do
%i[
push_to_delete_protected_branch update_snippet
admin_snippet admin_project_member admin_note admin_wiki admin_project
admin_commit_status admin_build admin_container_image
admin_pipeline admin_environment admin_deployment destroy_release add_cluster
read_deploy_token create_deploy_token destroy_deploy_token
admin_terraform_state
]
end
let(:public_permissions) do
%i[
download_code fork_project read_commit_status read_pipeline
......
......@@ -50,10 +50,11 @@ RSpec.shared_context 'ProjectPolicy context' do
let(:base_maintainer_permissions) do
%i[
push_to_delete_protected_branch update_snippet
admin_snippet admin_project_member admin_note admin_wiki admin_project
admin_commit_status admin_build admin_container_image
admin_pipeline admin_environment admin_deployment destroy_release add_cluster
add_cluster admin_build admin_commit_status admin_container_image
admin_deployment admin_environment admin_note admin_pipeline
admin_project admin_project_member admin_snippet admin_terraform_state
admin_wiki create_deploy_token destroy_deploy_token destroy_release
push_to_delete_protected_branch read_deploy_token update_snippet
]
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