diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb')
-rw-r--r-- | spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb b/spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb index 66cf06cde20..582795acc4e 100644 --- a/spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb +++ b/spec/lib/api/helpers/packages/dependency_proxy_helpers_spec.rb @@ -10,7 +10,7 @@ RSpec.describe API::Helpers::Packages::DependencyProxyHelpers do include_context 'dependency proxy helpers context' let_it_be(:group) { create(:group) } - let_it_be(:project) { create(:project, group: group) } + let_it_be_with_reload(:project) { create(:project, group: group) } let_it_be_with_reload(:package_setting) { create(:namespace_package_setting, namespace: group) } let(:target) { project } @@ -76,19 +76,6 @@ RSpec.describe API::Helpers::Packages::DependencyProxyHelpers do end end - context 'when cascade_package_forwarding_settings is disabled' do - let(:package_type) { forwardable_package_type } - let(:forward_to_registry) { true } - - before do - stub_feature_flags(cascade_package_forwarding_settings: false) - allow_fetch_cascade_application_setting(attribute: "#{forwardable_package_type}_package_requests_forwarding", return_value: true) - package_setting.update!("#{forwardable_package_type}_package_requests_forwarding" => false) - end - - it_behaves_like 'executing redirect' - end - context 'when no target is present' do let(:package_type) { forwardable_package_type } let(:forward_to_registry) { true } @@ -133,7 +120,7 @@ RSpec.describe API::Helpers::Packages::DependencyProxyHelpers do end Packages::Package.package_types.keys.without('maven', 'npm', 'pypi').each do |pkg_type| - context "#{pkg_type}" do + context pkg_type.to_s do let(:package_type) { pkg_type.to_sym } it 'raises an error' do |