-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathredacting_metadata.feature
More file actions
55 lines (48 loc) · 2.95 KB
/
redacting_metadata.feature
File metadata and controls
55 lines (48 loc) · 2.95 KB
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 redacted
Scenario: Using the default metadata redaction
When I run "AutoRedactScenario" 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 "AutoRedactScenario"
And the event "metaData.custom.foo" equals "hunter2"
And the event "metaData.custom.password" equals "[REDACTED]"
And the event "metaData.user.password" equals "[REDACTED]"
Scenario: Adding a custom metadata redaction
When I run "ManualRedactScenario" 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 "ManualRedactScenario"
And the event "metaData.custom.foo" equals "[REDACTED]"
And the event "metaData.user.foo" equals "[REDACTED]"
And the event "metaData.custom.bar" equals "hunter2"
Scenario: Adding a thread metadata redaction using logback
When I run "LogbackThreadMetadataScenario" with logback config "meta_data_redact_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 "[REDACTED]"
And the event "metaData.thread.bar" equals "threadvalue2"
Scenario: Adding a custom metadata redaction using logback
When I run "LogbackMetadataScenario" with logback config "meta_data_redact_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 "[REDACTED]"
And the event "metaData.user.foo" equals "[REDACTED]"
And the event "metaData.custom.bar" equals "hunter2"
Scenario: Using the default metadata redaction in Spring Boot app
When I run spring boot "AutoRedactScenario" 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 "AutoRedactScenario"
And the event "metaData.custom.foo" equals "hunter2"
And the event "metaData.custom.password" equals "[REDACTED]"
And the event "metaData.user.password" equals "[REDACTED]"
Scenario: Using the default metadata redaction in Spring app
When I run plain Spring "AutoRedactScenario" 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 "AutoRedactScenario"
And the event "metaData.custom.foo" equals "hunter2"
And the event "metaData.custom.password" equals "[REDACTED]"
And the event "metaData.user.password" equals "[REDACTED]"