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>2023-07-19 18:09:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 18:09:55 +0300
commit25ed642226db28550270b850280462dad124fd61 (patch)
treee2f64fb49d0a56cf4f10fad32b806a981ee55700 /spec/services
parent3ca9a972f6bc4060a58703398df74d87703916cf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/security/ci_configuration/sast_create_service_spec.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/services/security/ci_configuration/sast_create_service_spec.rb b/spec/services/security/ci_configuration/sast_create_service_spec.rb
index e80fe1a42fa..555902fd77c 100644
--- a/spec/services/security/ci_configuration/sast_create_service_spec.rb
+++ b/spec/services/security/ci_configuration/sast_create_service_spec.rb
@@ -45,8 +45,13 @@ RSpec.describe Security::CiConfiguration::SastCreateService, :snowplow,
let(:params) { { initialize_with_sast: false } }
- it 'raises an error' do
- expect { result }.to raise_error(Gitlab::Graphql::Errors::MutationError)
+ it 'returns a ServiceResponse error' do
+ expect(result).to be_kind_of(ServiceResponse)
+ expect(result.status).to eq(:error)
+ expect(result.message).to eq('You must <a target="_blank" rel="noopener noreferrer" ' \
+ 'href="http://localhost/help/user/project/repository/index.md#' \
+ 'add-files-to-a-repository">add at least one file to the ' \
+ 'repository</a> before using Security features.')
end
end