Sha256: 1b35d258f1bfd559cabfc0ae0a475e7d176e7e08c26a5592a05d574d488e2740

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 KB

Contents

Feature: Bugsnag raises errors in Sidekiq workers

Scenario: An unhandled RuntimeError sends a report
  Given I run the service "sidekiq" with the command "bundle exec rake sidekiq_tests:unhandled_error"
  And I wait to receive a request
  Then the request is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier"
  And the event "unhandled" is true
  And the event "severity" equals "error"
  And the event "context" equals "UnhandledError@default"
  And the event "severityReason.type" equals "unhandledExceptionMiddleware"
  And the event "severityReason.attributes.framework" equals "Sidekiq"
  And the exception "errorClass" equals "RuntimeError"
  And the "file" of stack frame 0 equals "/app/app.rb"
  And the "lineNumber" of stack frame 0 equals 33
  And the payload field "events.0.metaData.sidekiq" matches the appropriate Sidekiq unhandled payload
  And the event "metaData.sidekiq.msg.created_at" is a parsable timestamp in seconds
  And the event "metaData.sidekiq.msg.enqueued_at" is a parsable timestamp in seconds

Scenario: A handled RuntimeError can be notified
  Given I run the service "sidekiq" with the command "bundle exec rake sidekiq_tests:handled_error"
  And I wait to receive a request
  Then the request is valid for the error reporting API version "4.0" for the "Ruby Bugsnag Notifier"
  And the event "unhandled" is false
  And the event "context" equals "HandledError@default"
  And the event "severity" equals "warning"
  And the event "severityReason.type" equals "handledException"
  And the exception "errorClass" equals "RuntimeError"
  And the payload field "events.0.metaData.sidekiq" matches the appropriate Sidekiq handled payload
  And the event "metaData.sidekiq.msg.created_at" is a parsable timestamp in seconds
  And the event "metaData.sidekiq.msg.enqueued_at" is a parsable timestamp in seconds

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/sidekiq.feature
bugsnag-6.14.0 features/sidekiq.feature
bugsnag-6.13.1 features/sidekiq.feature
bugsnag-6.13.0 features/sidekiq.feature