Sha256: 119558906cb41af55cb99976edca5e281db05b3519584993ad94ce7ee6a67bd3

Contents?: true

Size: 1.9 KB

Versions: 3

Compression:

Stored size: 1.9 KB

Contents

Feature: Plain report modify user

Scenario Outline: A report can have a user name, email, and id set
  Given I set environment variable "CALLBACK_INITIATOR" to "<initiator>"
  When I run the service "plain-ruby" with the command "bundle exec ruby report_modification/set_user_details.rb"
  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 "user.name" equals "leo testman"
  And the event "user.email" equals "test@test.com"
  And the event "user.id" equals "0001"

  Examples:
  | initiator               |
  | handled_before_notify   |
  | handled_block           |
  | unhandled_before_notify |

Scenario Outline: A report can have custom info set
  Given I set environment variable "CALLBACK_INITIATOR" to "<initiator>"
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/set_custom_user_details.rb"
  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 "user.type" equals "amateur"
  And the event "user.location" equals "testville"
  And the event "user.details.a" equals "foo"
  And the event "user.details.b" equals "bar"

  Examples:
  | initiator               |
  | handled_before_notify   |
  | handled_block           |
  | unhandled_before_notify |

Scenario Outline: A report can have its user info removed
  Given I set environment variable "CALLBACK_INITIATOR" to "<initiator>"
  When I run the service "plain-ruby" with the command "bundle exec ruby report_modification/remove_user_details.rb"
  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 "user" is null

  Examples:
  | initiator               |
  | handled_before_notify   |
  | handled_block           |
  | unhandled_before_notify |

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bugsnag-6.14.0 features/plain_features/report_user.feature
bugsnag-6.13.1 features/plain_features/report_user.feature
bugsnag-6.13.0 features/plain_features/report_user.feature