diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-04-04 14:43:11 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-04-04 20:28:29 +1300 |
commit | 12321771ff4d2aca723e7292ba9aec180470df13 (patch) | |
tree | f4344fcaf6d29bac9661f3b38f6a5a4b184ce441 /spec/support/shared_examples/services/base_helm_service_shared_examples.rb | |
parent | 7cd9cdbe540358ae94d8cee0a0dd36383c645e23 (diff) | |
download | gitlab-ce-12321771ff4d2aca723e7292ba9aec180470df13.tar.gz |
Don't send error backtrace to Sentry
As it already has the full error sent to it
Diffstat (limited to 'spec/support/shared_examples/services/base_helm_service_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/services/base_helm_service_shared_examples.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/support/shared_examples/services/base_helm_service_shared_examples.rb b/spec/support/shared_examples/services/base_helm_service_shared_examples.rb index c38baa76b25..e2f1a18e9f6 100644 --- a/spec/support/shared_examples/services/base_helm_service_shared_examples.rb +++ b/spec/support/shared_examples/services/base_helm_service_shared_examples.rb @@ -5,7 +5,6 @@ shared_examples 'logs kubernetes errors' do { exception: error_name, message: error_message, - backtrace: instance_of(Array), service: service.class.name, app_id: application.id, project_ids: application.cluster.project_ids, @@ -14,8 +13,14 @@ shared_examples 'logs kubernetes errors' do } end + let(:logger_hash) do + error_hash.merge( + backtrace: instance_of(Array) + ) + end + it 'logs into kubernetes.log and Sentry' do - expect(service.send(:logger)).to receive(:error).with(error_hash) + expect(service.send(:logger)).to receive(:error).with(logger_hash) expect(Gitlab::Sentry).to receive(:track_acceptable_exception).with( error, |