Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-07 01:30:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-07 01:30:24 +0300
commitb9b8440df6afd24ba540343c612e522f52bea0db (patch)
treeaecce7c15523692907d333edeb7c4f1a6d1044fc /spec/support/shared_examples
parente4a92d342784ccbb929e7d2b1faa42d6c2f591a3 (diff)
Add latest changes from gitlab-org/security/gitlab@15-7-stable-ee
Diffstat (limited to 'spec/support/shared_examples')
-rw-r--r--spec/support/shared_examples/policies/resource_access_token_shared_examples.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/support/shared_examples/policies/resource_access_token_shared_examples.rb b/spec/support/shared_examples/policies/resource_access_token_shared_examples.rb
index 337ad024fc0..cc91b73449a 100644
--- a/spec/support/shared_examples/policies/resource_access_token_shared_examples.rb
+++ b/spec/support/shared_examples/policies/resource_access_token_shared_examples.rb
@@ -71,26 +71,3 @@ RSpec.shared_examples 'Self-managed Core resource access tokens' do
end
end
end
-
-RSpec.shared_examples 'GitLab.com Core resource access tokens' do
- before do
- allow(::Gitlab).to receive(:com?).and_return(true)
- stub_ee_application_setting(should_check_namespace_plan: true)
- end
-
- context 'with owner access' do
- let(:current_user) { owner }
-
- context 'create resource access tokens' do
- it { is_expected.not_to be_allowed(:create_resource_access_tokens) }
- end
-
- context 'read resource access tokens' do
- it { is_expected.not_to be_allowed(:read_resource_access_tokens) }
- end
-
- context 'destroy resource access tokens' do
- it { is_expected.not_to be_allowed(:destroy_resource_access_tokens) }
- end
- end
-end