summaryrefslogtreecommitdiff
path: root/spec/services/deployments/update_environment_service_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-17 06:08:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-17 06:08:46 +0000
commitcdf2d8aa6609bd1d3e3780f6424b2b343375a695 (patch)
tree125766f8fc5adac6c8b45887d32fe8c61ca9fddc /spec/services/deployments/update_environment_service_spec.rb
parentd43cb0f90723230c4aa617cb17a0cb6fb099f47e (diff)
downloadgitlab-ce-cdf2d8aa6609bd1d3e3780f6424b2b343375a695.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/deployments/update_environment_service_spec.rb')
-rw-r--r--spec/services/deployments/update_environment_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/deployments/update_environment_service_spec.rb b/spec/services/deployments/update_environment_service_spec.rb
index 8ab53a37a33..d3e5920baaf 100644
--- a/spec/services/deployments/update_environment_service_spec.rb
+++ b/spec/services/deployments/update_environment_service_spec.rb
@@ -112,7 +112,7 @@ RSpec.describe Deployments::UpdateEnvironmentService do
end
context 'when external URL is invalid' do
- let(:external_url) { 'google.com' }
+ let(:external_url) { 'javascript:alert("hello")' }
it 'fails to update the tier due to validation error' do
expect { subject.execute }.not_to change { environment.tier }
@@ -123,7 +123,7 @@ RSpec.describe Deployments::UpdateEnvironmentService do
.with(an_instance_of(described_class::EnvironmentUpdateFailure),
project_id: project.id,
environment_id: environment.id,
- reason: %q{External url is blocked: Only allowed schemes are http, https})
+ reason: %q{External url javascript scheme is not allowed})
.once
subject.execute