bugsnag 6.9.0 → 6.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/Gemfile +0 -1
  4. data/VERSION +1 -1
  5. data/features/delayed_job.feature +9 -10
  6. data/features/fixtures/delayed_job/Dockerfile +2 -2
  7. data/features/fixtures/delayed_job/app/config/initializers/bugsnag.rb +12 -12
  8. data/features/fixtures/docker-compose.yml +118 -124
  9. data/features/fixtures/plain/Dockerfile +5 -6
  10. data/features/fixtures/plain/app/Gemfile +1 -1
  11. data/features/fixtures/plain/app/app.rb +19 -19
  12. data/features/fixtures/plain/app/configuration/api_key.rb +1 -1
  13. data/features/fixtures/plain/app/stack_frame_modification/initiators/handled_before_notify.rb +5 -1
  14. data/features/fixtures/rack1/Dockerfile +7 -6
  15. data/features/fixtures/rack1/Gemfile +1 -1
  16. data/features/fixtures/rack2/Dockerfile +7 -6
  17. data/features/fixtures/rack2/Gemfile +1 -1
  18. data/features/fixtures/rails3/Dockerfile +5 -6
  19. data/features/fixtures/rails3/app/Gemfile +1 -1
  20. data/features/fixtures/rails3/app/config/initializers/bugsnag.rb +12 -12
  21. data/features/fixtures/rails4/Dockerfile +7 -5
  22. data/features/fixtures/rails4/app/Gemfile +1 -1
  23. data/features/fixtures/rails4/app/config/initializers/bugsnag.rb +12 -12
  24. data/features/fixtures/rails5/Dockerfile +5 -6
  25. data/features/fixtures/rails5/app/Gemfile +1 -1
  26. data/features/fixtures/rails5/app/config/initializers/bugsnag.rb +12 -12
  27. data/features/fixtures/resque/Dockerfile +6 -5
  28. data/features/fixtures/resque/Gemfile +1 -1
  29. data/features/fixtures/sidekiq/Dockerfile +4 -2
  30. data/features/fixtures/sidekiq/app/Gemfile +3 -1
  31. data/features/fixtures/sidekiq/app/app.rb +4 -4
  32. data/features/fixtures/sinatra1/Dockerfile +6 -5
  33. data/features/fixtures/sinatra1/Gemfile +1 -1
  34. data/features/fixtures/sinatra2/Dockerfile +6 -5
  35. data/features/fixtures/sinatra2/Gemfile +1 -1
  36. data/features/plain_features/add_tab.feature +15 -17
  37. data/features/plain_features/api_key.feature +2 -3
  38. data/features/plain_features/app_type.feature +3 -5
  39. data/features/plain_features/app_version.feature +3 -5
  40. data/features/plain_features/auto_notify.feature +1 -3
  41. data/features/plain_features/delivery.feature +3 -5
  42. data/features/plain_features/exception_data.feature +4 -6
  43. data/features/plain_features/filters.feature +4 -6
  44. data/features/plain_features/handled_errors.feature +48 -30
  45. data/features/plain_features/ignore_classes.feature +0 -2
  46. data/features/plain_features/ignore_report.feature +0 -2
  47. data/features/plain_features/proxies.feature +4 -6
  48. data/features/plain_features/release_stages.feature +8 -10
  49. data/features/plain_features/report_api_key.feature +1 -3
  50. data/features/plain_features/report_severity.feature +3 -5
  51. data/features/plain_features/report_stack_frames.feature +54 -21
  52. data/features/plain_features/report_user.feature +10 -12
  53. data/features/plain_features/unhandled_errors.feature +4 -6
  54. data/features/rails_features/api_key.feature +3 -3
  55. data/features/rails_features/app_type.feature +4 -4
  56. data/features/rails_features/app_version.feature +2 -2
  57. data/features/rails_features/auto_capture_sessions.feature +4 -4
  58. data/features/rails_features/auto_notify.feature +5 -5
  59. data/features/rails_features/before_notify.feature +4 -4
  60. data/features/rails_features/handled.feature +6 -6
  61. data/features/rails_features/ignore_classes.feature +2 -2
  62. data/features/rails_features/meta_data_filters.feature +2 -2
  63. data/features/rails_features/project_root.feature +8 -8
  64. data/features/rails_features/release_stage.feature +2 -2
  65. data/features/rails_features/send_code.feature +2 -2
  66. data/features/rails_features/send_environment.feature +3 -3
  67. data/features/rails_features/unhandled.feature +4 -4
  68. data/features/rails_features/user_info.feature +4 -4
  69. data/features/sidekiq.feature +9 -10
  70. data/features/steps/ruby_notifier_steps.rb +6 -25
  71. data/features/support/env.rb +18 -9
  72. data/lib/bugsnag/configuration.rb +3 -3
  73. data/lib/bugsnag/integrations/mailman.rb +0 -1
  74. data/lib/bugsnag/integrations/shoryuken.rb +6 -8
  75. data/lib/bugsnag/integrations/sidekiq.rb +14 -11
  76. data/lib/bugsnag/stacktrace.rb +1 -2
  77. data/spec/configuration_spec.rb +1 -1
  78. data/spec/integrations/sidekiq_spec.rb +73 -7
  79. data/spec/report_spec.rb +62 -20
  80. data/spec/spec_helper.rb +1 -1
  81. data/spec/stacktrace_spec.rb +20 -16
  82. metadata +2 -2
@@ -2,8 +2,6 @@ Feature: Plain report modify user
2
2
 
3
3
  Background:
4
4
  Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
6
- And I set environment variable "APP_PATH" to "/usr/src"
7
5
  And I configure the bugsnag endpoint
8
6
 
9
7
  Scenario Outline: A report can have a user name, email, and id set
@@ -13,12 +11,12 @@ Scenario Outline: A report can have a user name, email, and id set
13
11
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/set_user_details.rb"
14
12
  And I wait for 1 second
15
13
  Then I should receive a request
16
- And the request used the Ruby notifier
14
+ And the request used the "Ruby Bugsnag Notifier" notifier
17
15
  And the request used payload v4 headers
18
16
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
19
- And the event "user.name" is "leo testman"
20
- And the event "user.email" is "test@test.com"
21
- And the event "user.id" is "0001"
17
+ And the event "user.name" equals "leo testman"
18
+ And the event "user.email" equals "test@test.com"
19
+ And the event "user.id" equals "0001"
22
20
 
23
21
  Examples:
24
22
  | ruby version | initiator |
@@ -51,13 +49,13 @@ Scenario Outline: A report can have custom info set
51
49
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/set_custom_user_details.rb"
52
50
  And I wait for 1 second
53
51
  Then I should receive a request
54
- And the request used the Ruby notifier
52
+ And the request used the "Ruby Bugsnag Notifier" notifier
55
53
  And the request used payload v4 headers
56
54
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
57
- And the event "user.type" is "amateur"
58
- And the event "user.location" is "testville"
59
- And the event "user.details.a" is "foo"
60
- And the event "user.details.b" is "bar"
55
+ And the event "user.type" equals "amateur"
56
+ And the event "user.location" equals "testville"
57
+ And the event "user.details.a" equals "foo"
58
+ And the event "user.details.b" equals "bar"
61
59
 
62
60
  Examples:
63
61
  | ruby version | initiator |
@@ -90,7 +88,7 @@ Scenario Outline: A report can have its user info removed
90
88
  And I run the service "plain-ruby" with the command "bundle exec ruby report_modification/remove_user_details.rb"
91
89
  And I wait for 1 second
92
90
  Then I should receive a request
93
- And the request used the Ruby notifier
91
+ And the request used the "Ruby Bugsnag Notifier" notifier
94
92
  And the request used payload v4 headers
95
93
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
96
94
  And the event "user" is null
@@ -2,8 +2,6 @@ Feature: Plain unhandled errors
2
2
 
3
3
  Background:
4
4
  Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
6
- And I set environment variable "APP_PATH" to "/usr/src"
7
5
  And I configure the bugsnag endpoint
8
6
 
9
7
  Scenario Outline: An unhandled error sends a report
@@ -12,14 +10,14 @@ Scenario Outline: An unhandled error sends a report
12
10
  And I run the service "plain-ruby" with the command "bundle exec ruby unhandled/<file>.rb"
13
11
  And I wait for 1 second
14
12
  Then I should receive a request
15
- And the request used the Ruby notifier
13
+ And the request used the "Ruby Bugsnag Notifier" notifier
16
14
  And the request used payload v4 headers
17
15
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
18
16
  And the event "unhandled" is true
19
- And the event "severity" is "error"
20
- And the event "severityReason.type" is "unhandledException"
17
+ And the event "severity" equals "error"
18
+ And the event "severityReason.type" equals "unhandledException"
21
19
  And the exception "errorClass" equals "<error>"
22
- And the "file" of stack frame 0 equals "/usr/src/unhandled/<file>.rb"
20
+ And the "file" of stack frame 0 equals "/usr/src/app/unhandled/<file>.rb"
23
21
  And the "lineNumber" of stack frame 0 equals <lineNumber>
24
22
 
25
23
  Examples:
@@ -1,7 +1,7 @@
1
1
  Feature: API key
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -13,7 +13,7 @@ Scenario Outline: Setting api_key in environment variable works
13
13
  When I navigate to the route "/api_key/environment" on port "6128<rails_version>"
14
14
  Then I should receive a request
15
15
  And the request is a valid for the error reporting API
16
- And the request used the Ruby notifier
16
+ And the request used the "Ruby Bugsnag Notifier" notifier
17
17
  And the request contained the api key "b35a2a72bd230ac0aa0f52715bbdc6ab"
18
18
  And the payload field "events" is an array with 1 element
19
19
 
@@ -39,7 +39,7 @@ Scenario Outline: Setting api_key in environment variable works
39
39
  When I navigate to the route "/api_key/changing?api_key=c35a2a72bd230ac0aa0f52715bbdc6ac" on port "6128<rails_version>"
40
40
  Then I should receive a request
41
41
  And the request is a valid for the error reporting API
42
- And the request used the Ruby notifier
42
+ And the request used the "Ruby Bugsnag Notifier" notifier
43
43
  And the request contained the api key "c35a2a72bd230ac0aa0f52715bbdc6ac"
44
44
  And the payload field "events" is an array with 1 element
45
45
 
@@ -1,19 +1,19 @@
1
1
  Feature: App type configuration
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
8
8
  Scenario Outline: Setting app_type in initializer works
9
9
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
10
- And I set environment variable "MAZE_APP_TYPE" to "custom_app_type"
10
+ And I set environment variable "BUGSNAG_APP_TYPE" to "custom_app_type"
11
11
  And I start the service "rails<rails_version>"
12
12
  And I wait for the app to respond on port "6128<rails_version>"
13
13
  When I navigate to the route "/app_type/initializer" on port "6128<rails_version>"
14
14
  Then I should receive a request
15
15
  And the request is a valid for the error reporting API
16
- And the request used the Ruby notifier
16
+ And the request used the "Ruby Bugsnag Notifier" notifier
17
17
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
18
18
  And the payload field "events" is an array with 1 element
19
19
  And the exception "errorClass" equals "RuntimeError"
@@ -43,7 +43,7 @@ Scenario Outline: Changing app_type after initializer works
43
43
  When I navigate to the route "/app_type/after?type=maze_after_initializer" on port "6128<rails_version>"
44
44
  Then I should receive a request
45
45
  And the request is a valid for the error reporting API
46
- And the request used the Ruby notifier
46
+ And the request used the "Ruby Bugsnag Notifier" notifier
47
47
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
48
48
  And the payload field "events" is an array with 1 element
49
49
  And the exception "errorClass" equals "RuntimeError"
@@ -1,7 +1,7 @@
1
1
  Feature: App version configuration
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -32,7 +32,7 @@ Scenario Outline: App_version is nil by default
32
32
 
33
33
  Scenario Outline: Setting app_version in initializer works
34
34
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
35
- And I set environment variable "MAZE_APP_VERSION" to "1.0.0"
35
+ And I set environment variable "BUGSNAG_APP_VERSION" to "1.0.0"
36
36
  And I start the service "rails<rails_version>"
37
37
  And I wait for the app to respond on port "6128<rails_version>"
38
38
  When I navigate to the route "/app_version/initializer" on port "6128<rails_version>"
@@ -1,19 +1,19 @@
1
1
  Feature: Auto capture sessions
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
8
8
  Scenario Outline: Auto_capture_sessions can be set to true in the initializer
9
9
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
10
- And I set environment variable "MAZE_AUTO_CAPTURE_SESSIONS" to "true"
10
+ And I set environment variable "BUGSNAG_AUTO_CAPTURE_SESSIONS" to "true"
11
11
  And I start the service "rails<rails_version>"
12
12
  And I wait for the app to respond on port "6128<rails_version>"
13
13
  When I navigate to the route "/session_tracking/initializer" on port "6128<rails_version>"
14
14
  Then I should receive a request
15
15
  And the request is a valid for the session tracking API
16
- And the request used the Ruby notifier
16
+ And the request used the "Ruby Bugsnag Notifier" notifier
17
17
  And the "Bugsnag-API-Key" header equals "a35a2a72bd230ac0aa0f52715bbdc6aa"
18
18
  And the sessionCount "startedAt" is a timestamp
19
19
 
@@ -41,7 +41,7 @@ Scenario Outline: Auto_capture_sessions can be set to true after the initializer
41
41
  When I navigate to the route "/session_tracking/initializer" on port "6128<rails_version>"
42
42
  Then I should receive a request
43
43
  And the request is a valid for the session tracking API
44
- And the request used the Ruby notifier
44
+ And the request used the "Ruby Bugsnag Notifier" notifier
45
45
  And the "Bugsnag-API-Key" header equals "a35a2a72bd230ac0aa0f52715bbdc6aa"
46
46
  And the sessionCount "startedAt" is a timestamp
47
47
 
@@ -1,13 +1,13 @@
1
1
  Feature: Auto notify
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
8
8
  Scenario Outline: Auto_notify set to false in the initializer prevents unhandled error sending
9
9
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
10
- And I set environment variable "MAZE_AUTO_NOTIFY" to "false"
10
+ And I set environment variable "BUGSNAG_AUTO_NOTIFY" to "false"
11
11
  And I start the service "rails<rails_version>"
12
12
  And I wait for the app to respond on port "6128<rails_version>"
13
13
  When I navigate to the route "/auto_notify/unhandled" on port "6128<rails_version>"
@@ -30,13 +30,13 @@ Scenario Outline: Auto_notify set to false in the initializer prevents unhandled
30
30
 
31
31
  Scenario Outline: Auto_notify set to false in the initializer still sends handled errors
32
32
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
33
- And I set environment variable "MAZE_AUTO_NOTIFY" to "false"
33
+ And I set environment variable "BUGSNAG_AUTO_NOTIFY" to "false"
34
34
  And I start the service "rails<rails_version>"
35
35
  And I wait for the app to respond on port "6128<rails_version>"
36
36
  When I navigate to the route "/auto_notify/handled" on port "6128<rails_version>"
37
37
  Then I should receive a request
38
38
  And the request is a valid for the error reporting API
39
- And the request used the Ruby notifier
39
+ And the request used the "Ruby Bugsnag Notifier" notifier
40
40
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
41
41
  And the payload field "events" is an array with 1 element
42
42
  And the event "unhandled" is false
@@ -89,7 +89,7 @@ Scenario Outline: Auto_notify set to false after the initializer still sends han
89
89
  When I navigate to the route "/auto_notify/handled_after" on port "6128<rails_version>"
90
90
  Then I should receive a request
91
91
  And the request is a valid for the error reporting API
92
- And the request used the Ruby notifier
92
+ And the request used the "Ruby Bugsnag Notifier" notifier
93
93
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
94
94
  And the payload field "events" is an array with 1 element
95
95
  And the exception "errorClass" equals "RuntimeError"
@@ -1,7 +1,7 @@
1
1
  Feature: Before notify callbacks
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -12,7 +12,7 @@ Scenario Outline: Rails before_notify controller method works on handled errors
12
12
  When I navigate to the route "/before_notify/handled" on port "6128<rails_version>"
13
13
  Then I should receive a request
14
14
  And the request is a valid for the error reporting API
15
- And the request used the Ruby notifier
15
+ And the request used the "Ruby Bugsnag Notifier" notifier
16
16
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
17
17
  And the payload field "events" is an array with 1 element
18
18
  And the exception "errorClass" equals "RuntimeError"
@@ -45,7 +45,7 @@ Scenario Outline: Rails before_notify controller method works on unhandled error
45
45
  When I navigate to the route "/before_notify/unhandled" on port "6128<rails_version>"
46
46
  Then I should receive a request
47
47
  And the request is a valid for the error reporting API
48
- And the request used the Ruby notifier
48
+ And the request used the "Ruby Bugsnag Notifier" notifier
49
49
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
50
50
  And the payload field "events" is an array with 1 element
51
51
  And the exception "errorClass" equals "NameError"
@@ -78,7 +78,7 @@ Scenario Outline: Inline block on handled errors is called
78
78
  When I navigate to the route "/before_notify/inline" on port "6128<rails_version>"
79
79
  Then I should receive a request
80
80
  And the request is a valid for the error reporting API
81
- And the request used the Ruby notifier
81
+ And the request used the "Ruby Bugsnag Notifier" notifier
82
82
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
83
83
  And the payload field "events" is an array with 1 element
84
84
  And the exception "errorClass" equals "RuntimeError"
@@ -1,7 +1,7 @@
1
1
  Feature: Rails handled errors
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -12,7 +12,7 @@ Scenario Outline: Unhandled RuntimeError
12
12
  When I navigate to the route "/handled/unthrown" on port "6128<rails_version>"
13
13
  Then I should receive a request
14
14
  And the request is a valid for the error reporting API
15
- And the request used the Ruby notifier
15
+ And the request used the "Ruby Bugsnag Notifier" notifier
16
16
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
17
17
  And the payload field "events" is an array with 1 element
18
18
  And the event "unhandled" is false
@@ -21,7 +21,7 @@ Scenario Outline: Unhandled RuntimeError
21
21
  And the event "app.type" equals "rails"
22
22
  And the event "metaData.request.url" ends with "/handled/unthrown"
23
23
  And the event "severity" equals "warning"
24
- And the event "severityReason.type" is "handledException"
24
+ And the event "severityReason.type" equals "handledException"
25
25
 
26
26
  Examples:
27
27
  | ruby_version | rails_version |
@@ -45,7 +45,7 @@ Scenario Outline: Thrown handled NameError
45
45
  When I navigate to the route "/handled/thrown" on port "6128<rails_version>"
46
46
  Then I should receive a request
47
47
  And the request is a valid for the error reporting API
48
- And the request used the Ruby notifier
48
+ And the request used the "Ruby Bugsnag Notifier" notifier
49
49
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
50
50
  And the payload field "events" is an array with 1 element
51
51
  And the exception "errorClass" equals "NameError"
@@ -54,7 +54,7 @@ Scenario Outline: Thrown handled NameError
54
54
  And the event "metaData.request.url" ends with "/handled/thrown"
55
55
  And the event "app.type" equals "rails"
56
56
  And the event "severity" equals "warning"
57
- And the event "severityReason.type" is "handledException"
57
+ And the event "severityReason.type" equals "handledException"
58
58
 
59
59
  Examples:
60
60
  | ruby_version | rails_version |
@@ -78,7 +78,7 @@ Scenario Outline: Manual string notify
78
78
  When I navigate to the route "/handled/string_notify" on port "6128<rails_version>"
79
79
  Then I should receive a request
80
80
  And the request is a valid for the error reporting API
81
- And the request used the Ruby notifier
81
+ And the request used the "Ruby Bugsnag Notifier" notifier
82
82
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
83
83
  And the payload field "events" is an array with 1 element
84
84
  And the exception "errorClass" equals "RuntimeError"
@@ -1,13 +1,13 @@
1
1
  Feature: Ignore classes
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
8
8
  Scenario Outline: Ignore_classes can be set to a different value in initializer
9
9
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
10
- And I set environment variable "MAZE_IGNORE_CLASS" to "IgnoredError"
10
+ And I set environment variable "BUGSNAG_IGNORE_CLASS" to "IgnoredError"
11
11
  And I start the service "rails<rails_version>"
12
12
  And I wait for the app to respond on port "6128<rails_version>"
13
13
  When I navigate to the route "/ignore_classes/initializer" on port "6128<rails_version>"
@@ -1,7 +1,7 @@
1
1
  Feature: Metadata filters
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -12,7 +12,7 @@ Scenario Outline: Meta_data_filters should include Rails.configuration.filter_pa
12
12
  When I navigate to the route "/metadata_filters/filter" on port "6128<rails_version>"
13
13
  Then I should receive a request
14
14
  And the request is a valid for the error reporting API
15
- And the request used the Ruby notifier
15
+ And the request used the "Ruby Bugsnag Notifier" notifier
16
16
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
17
17
  And the payload field "events" is an array with 1 element
18
18
  And the event "unhandled" is false
@@ -1,7 +1,7 @@
1
1
  Feature: Project root configuration
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -12,13 +12,13 @@ Scenario Outline: Project_root should default to Rails.root
12
12
  When I navigate to the route "/project_root/default" on port "6128<rails_version>"
13
13
  Then I should receive a request
14
14
  And the request is a valid for the error reporting API
15
- And the request used the Ruby notifier
15
+ And the request used the "Ruby Bugsnag Notifier" notifier
16
16
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
17
17
  And the payload field "events" is an array with 1 element
18
18
  And the exception "errorClass" equals "RuntimeError"
19
19
  And the exception "message" starts with "handled string"
20
20
  And the event "metaData.request.url" ends with "/project_root/default"
21
- And the "file" of stack frame 0 equals "app/controllers/project_root_controller.rb"
21
+ And the "file" of the top non-bugsnag stackframe equals "app/controllers/project_root_controller.rb"
22
22
 
23
23
  Examples:
24
24
  | ruby_version | rails_version |
@@ -37,19 +37,19 @@ Scenario Outline: Project_root should default to Rails.root
37
37
 
38
38
  Scenario Outline: Project_root can be set in an initializer
39
39
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
40
- And I set environment variable "MAZE_PROJECT_ROOT" to "/foo/bar"
40
+ And I set environment variable "BUGSNAG_PROJECT_ROOT" to "/foo/bar"
41
41
  And I start the service "rails<rails_version>"
42
42
  And I wait for the app to respond on port "6128<rails_version>"
43
43
  When I navigate to the route "/project_root/initializer" on port "6128<rails_version>"
44
44
  Then I should receive a request
45
45
  And the request is a valid for the error reporting API
46
- And the request used the Ruby notifier
46
+ And the request used the "Ruby Bugsnag Notifier" notifier
47
47
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
48
48
  And the payload field "events" is an array with 1 element
49
49
  And the exception "errorClass" equals "RuntimeError"
50
50
  And the exception "message" starts with "handled string"
51
51
  And the event "metaData.request.url" ends with "/project_root/initializer"
52
- And the "file" of stack frame 0 equals "/usr/src/app/controllers/project_root_controller.rb"
52
+ And the "file" of the top non-bugsnag stackframe equals "/usr/src/app/controllers/project_root_controller.rb"
53
53
 
54
54
  Examples:
55
55
  | ruby_version | rails_version |
@@ -73,13 +73,13 @@ Scenario Outline: Project_root can be set after an initializer
73
73
  When I navigate to the route "/project_root/after" on port "6128<rails_version>"
74
74
  Then I should receive a request
75
75
  And the request is a valid for the error reporting API
76
- And the request used the Ruby notifier
76
+ And the request used the "Ruby Bugsnag Notifier" notifier
77
77
  And the request contained the api key "a35a2a72bd230ac0aa0f52715bbdc6aa"
78
78
  And the payload field "events" is an array with 1 element
79
79
  And the exception "errorClass" equals "RuntimeError"
80
80
  And the exception "message" starts with "handled string"
81
81
  And the event "metaData.request.url" ends with "/project_root/after"
82
- And the "file" of stack frame 0 equals "/usr/src/app/controllers/project_root_controller.rb"
82
+ And the "file" of the top non-bugsnag stackframe equals "/usr/src/app/controllers/project_root_controller.rb"
83
83
 
84
84
  Examples:
85
85
  | ruby_version | rails_version |
@@ -1,7 +1,7 @@
1
1
  Feature: Release stage
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
@@ -34,7 +34,7 @@ Scenario Outline: Release_stage should default to RAILS_ENV
34
34
 
35
35
  Scenario Outline: Release_stage can be set in an initializer
36
36
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
37
- And I set environment variable "MAZE_RELEASE_STAGE" to "maze_release_stage_env"
37
+ And I set environment variable "BUGSNAG_RELEASE_STAGE" to "maze_release_stage_env"
38
38
  And I start the service "rails<rails_version>"
39
39
  And I wait for the app to respond on port "6128<rails_version>"
40
40
  When I navigate to the route "/release_stage/default" on port "6128<rails_version>"
@@ -1,13 +1,13 @@
1
1
  Feature: Send code
2
2
 
3
3
  Background:
4
- Given I set environment variable "MAZE_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
4
+ Given I set environment variable "BUGSNAG_API_KEY" to "a35a2a72bd230ac0aa0f52715bbdc6aa"
5
5
  And I set environment variable "APP_PATH" to "/usr/src"
6
6
  And I configure the bugsnag endpoint
7
7
 
8
8
  Scenario Outline: Send_code can be updated in an initializer
9
9
  Given I set environment variable "RUBY_VERSION" to "<ruby_version>"
10
- And I set environment variable "MAZE_SEND_CODE" to "false"
10
+ And I set environment variable "BUGSNAG_SEND_CODE" to "false"
11
11
  And I start the service "rails<rails_version>"
12
12
  And I wait for the app to respond on port "6128<rails_version>"
13
13
  When I navigate to the route "/send_code/initializer" on port "6128<rails_version>"