forked from bugsnag/bugsnag-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiltering_metadata.feature
54 lines (48 loc) · 2.93 KB
/
filtering_metadata.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Feature: Metadata is filtered
Scenario: Using the default metadata filter
When I run "AutoFilterScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
And the exception "message" equals "AutoFilterScenario"
And the event "metaData.custom.foo" equals "hunter2"
And the event "metaData.custom.password" equals "[FILTERED]"
And the event "metaData.user.password" equals "[FILTERED]"
Scenario: Adding a custom metadata filter
When I run "ManualFilterScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
And the exception "message" equals "ManualFilterScenario"
And the event "metaData.custom.foo" equals "[FILTERED]"
And the event "metaData.user.foo" equals "[FILTERED]"
And the event "metaData.custom.bar" equals "hunter2"
Scenario: Adding a thread metadata filter using logback
When I run "LogbackThreadMetaDataScenario" with logback config "meta_data_filter_config.xml"
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
And the exception "message" equals "LogbackThreadMetaDataScenario"
And the event "metaData.thread.foo" equals "[FILTERED]"
And the event "metaData.thread.bar" equals "threadvalue2"
Scenario: Adding a custom metadata filter using logback
When I run "LogbackMetaDataScenario" with logback config "meta_data_filter_config.xml"
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
And the exception "message" equals "LogbackMetaDataScenario"
And the event "metaData.custom.foo" equals "[FILTERED]"
And the event "metaData.user.foo" equals "[FILTERED]"
And the event "metaData.custom.bar" equals "hunter2"
Scenario: Using the default metadata filter in Spring Boot app
When I run spring boot "AutoFilterScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
And the exception "message" equals "AutoFilterScenario"
And the event "metaData.custom.foo" equals "hunter2"
And the event "metaData.custom.password" equals "[FILTERED]"
And the event "metaData.user.password" equals "[FILTERED]"
Scenario: Using the default metadata filter in Spring app
When I run plain Spring "AutoFilterScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
And the exception "message" equals "AutoFilterScenario"
And the event "metaData.custom.foo" equals "hunter2"
And the event "metaData.custom.password" equals "[FILTERED]"
And the event "metaData.user.password" equals "[FILTERED]"