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>2020-11-11 15:09:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-11 15:09:06 +0300
commit9517d0eb2ca8bde02d7fae2173e0a43b67b2b9f5 (patch)
treec3807f1807384fda69b8a42a439700f52b5dd1f0 /spec/services/auth
parent3454d4cbe3d553e14006e301a4d6843484ce675f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/auth')
-rw-r--r--spec/services/auth/container_registry_authentication_service_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/auth/container_registry_authentication_service_spec.rb b/spec/services/auth/container_registry_authentication_service_spec.rb
index 41c96c0989b..90ef32f1c5c 100644
--- a/spec/services/auth/container_registry_authentication_service_spec.rb
+++ b/spec/services/auth/container_registry_authentication_service_spec.rb
@@ -3,6 +3,8 @@
require 'spec_helper'
RSpec.describe Auth::ContainerRegistryAuthenticationService do
+ include AdminModeHelper
+
let(:current_project) { nil }
let(:current_user) { nil }
let(:current_params) { {} }
@@ -696,6 +698,10 @@ RSpec.describe Auth::ContainerRegistryAuthenticationService do
context 'user has access to all projects' do
let_it_be(:current_user) { create(:user, :admin) }
+ before do
+ enable_admin_mode!(current_user)
+ end
+
it_behaves_like 'a browsable' do
let(:access) do
[