diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-15 21:11:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-15 21:11:11 +0300 |
commit | f6b58d14904a1413a5442d13f361671e59ab3ded (patch) | |
tree | 5120b75e5d2bfa1773f9c5e431521afef652a8c4 /spec/policies | |
parent | ce97c898865e06644ae9c04d5c3666775b9998cb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/policies')
-rw-r--r-- | spec/policies/project_policy_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/policies/project_policy_spec.rb b/spec/policies/project_policy_spec.rb index 778ddfe9d71..a344464a101 100644 --- a/spec/policies/project_policy_spec.rb +++ b/spec/policies/project_policy_spec.rb @@ -1430,6 +1430,28 @@ RSpec.describe ProjectPolicy, feature_category: :system_access do end end + context 'infrastructure aws feature' do + %w(guest reporter developer).each do |role| + context role do + let(:current_user) { send(role) } + + it 'disallows managing aws' do + expect_disallowed(:admin_project_aws) + end + end + end + + %w(maintainer owner).each do |role| + context role do + let(:current_user) { send(role) } + + it 'allows managing aws' do + expect_allowed(:admin_project_aws) + end + end + end + end + describe 'design permissions' do include DesignManagementTestHelpers |