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>2020-01-20 15:09:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-20 15:09:02 +0300
commit98252e0dd60cbcb316231085e206d9872f243b8a (patch)
tree304021f4190aabcc74f1359866c0efff84995729 /spec/lib/gitlab/bitbucket_server_import
parent2ee5991b42717969af93cb30d863aafab04dff8a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/bitbucket_server_import')
-rw-r--r--spec/lib/gitlab/bitbucket_server_import/importer_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb b/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb
index 8ab7b2c5fa7..cf39d2cb753 100644
--- a/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb
+++ b/spec/lib/gitlab/bitbucket_server_import/importer_spec.rb
@@ -67,6 +67,7 @@ describe Gitlab::BitbucketServerImport::Importer do
author_email: project.owner.email,
created_at: Time.now,
updated_at: Time.now,
+ raw: {},
merged?: true)
allow(subject.client).to receive(:pull_requests).and_return([pull_request])
@@ -239,6 +240,13 @@ describe Gitlab::BitbucketServerImport::Importer do
expect(notes.first.note).to start_with('*Comment on .gitmodules')
expect(notes.second.note).to start_with('*Comment on .gitmodules')
end
+
+ it 'reports an error if an exception is raised' do
+ allow(subject).to receive(:import_bitbucket_pull_request).and_raise(RuntimeError)
+ expect(Gitlab::ErrorTracking).to receive(:log_exception)
+
+ subject.execute
+ end
end
describe 'inaccessible branches' do