diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-17 15:12:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-17 15:12:30 +0300 |
commit | 70c5d7928283b1386ab26a93d68015e9591ae4b7 (patch) | |
tree | 2825384d59e566bb61478d76086abd98f230120d /spec/services/auth | |
parent | 5e11fc146aba1344ad95f7fea1a99db82f0f68f2 (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.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/services/auth/container_registry_authentication_service_spec.rb b/spec/services/auth/container_registry_authentication_service_spec.rb index 83f77780b80..00841de9ff4 100644 --- a/spec/services/auth/container_registry_authentication_service_spec.rb +++ b/spec/services/auth/container_registry_authentication_service_spec.rb @@ -145,28 +145,4 @@ RSpec.describe Auth::ContainerRegistryAuthenticationService do it_behaves_like 'an unmodified token' end end - - context 'CDN redirection' do - include_context 'container registry auth service context' - - let_it_be(:current_user) { create(:user) } - let_it_be(:project) { create(:project) } - let_it_be(:current_params) { { scopes: ["repository:#{project.full_path}:pull"] } } - - before do - project.add_developer(current_user) - end - - it_behaves_like 'a valid token' - it { expect(payload['access']).to include(include('cdn_redirect' => true)) } - - context 'when the feature flag is disabled' do - before do - stub_feature_flags(container_registry_cdn_redirect: false) - end - - it_behaves_like 'a valid token' - it { expect(payload['access']).not_to include(have_key('cdn_redirect')) } - end - end end |