-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #432 from bugsnag/redacted-keys
Support the new redacted keys option
- Loading branch information
Showing
6 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: Redacted keys | ||
|
||
Scenario: Keys won't be redacted with no redacted keys | ||
Given I start the laravel fixture | ||
When I navigate to the route "/unhandled_controller_exception" | ||
Then I wait to receive a request | ||
And the request is valid for the error reporting API version "4.0" for the "Bugsnag Laravel" notifier | ||
And the event "metaData.request.httpMethod" equals "GET" | ||
And the event "metaData.request.url" ends with "/unhandled_controller_exception" | ||
And the event "metaData.request.userAgent" equals "Ruby" | ||
|
||
Scenario: Keys can be redacted from metadata | ||
Given I set environment variable "BUGSNAG_REDACTED_KEYS" to "HTTPmethod,/^url$/" | ||
And I start the laravel fixture | ||
When I navigate to the route "/unhandled_controller_exception" | ||
Then I wait to receive a request | ||
And the request is valid for the error reporting API version "4.0" for the "Bugsnag Laravel" notifier | ||
And the event "metaData.request.httpMethod" equals "[FILTERED]" | ||
And the event "metaData.request.url" equals "[FILTERED]" | ||
And the event "metaData.request.userAgent" equals "Ruby" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters