diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-01 18:07:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-01 18:07:25 +0300 |
commit | fe09bd4d74025ea828425c6ffb0236549d51163f (patch) | |
tree | 68ebb6980ef07bcac528f83d927809b4d063c002 /spec/controllers | |
parent | cf19a51fc5711144b26f7123c14f9b64a7597195 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/controllers/projects/releases_controller_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb b/spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb index a59c90a3cf2..89a75fb53f2 100644 --- a/spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb +++ b/spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb @@ -28,7 +28,7 @@ RSpec.describe Groups::DependencyProxyForContainersController do let(:image) { '../path_traversal' } it 'raises an error' do - expect { subject }.to raise_error(Gitlab::Utils::PathTraversalAttackError, 'Invalid path') + expect { subject }.to raise_error(Gitlab::PathTraversal::PathTraversalAttackError, 'Invalid path') end end @@ -36,7 +36,7 @@ RSpec.describe Groups::DependencyProxyForContainersController do let(:tag) { 'latest%2f..%2f..%2fpath_traversal' } it 'raises an error' do - expect { subject }.to raise_error(Gitlab::Utils::PathTraversalAttackError, 'Invalid path') + expect { subject }.to raise_error(Gitlab::PathTraversal::PathTraversalAttackError, 'Invalid path') end end end diff --git a/spec/controllers/projects/releases_controller_spec.rb b/spec/controllers/projects/releases_controller_spec.rb index 17bf9308834..35ac7ed0aa4 100644 --- a/spec/controllers/projects/releases_controller_spec.rb +++ b/spec/controllers/projects/releases_controller_spec.rb @@ -317,7 +317,7 @@ RSpec.describe Projects::ReleasesController do it 'raises attack error' do expect do subject - end.to raise_error(Gitlab::Utils::PathTraversalAttackError) + end.to raise_error(Gitlab::PathTraversal::PathTraversalAttackError) end end |