-
Notifications
You must be signed in to change notification settings - Fork 100
feat(relay): snapshot testing for python integration tests #4877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Litarnus
wants to merge
9
commits into
master
Choose a base branch
from
martinl/snapshot-testing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
404fe09
feat(relay): introduce snapshot testing for integration tests
Litarnus 98874e0
Merge branch 'refs/heads/master' into martinl/snapshot-testing
Litarnus 185374f
feat(relay): add snapshot testing for integration tests
Litarnus 9d5583e
fix
Litarnus 49a229c
add snapshot
Litarnus 8af310f
add path support and docs
Litarnus 76de315
Merge branch 'master' into martinl/snapshot-testing
Litarnus b243cc3
changelog
Litarnus 955d01f
move doc
Litarnus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
78 changes: 78 additions & 0 deletions
78
tests/integration/snapshots/pii__snapshot_scrub_span_sentry_tags_advanced_rules__0.json
This file contains hidden or 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,78 @@ | ||
{ | ||
"event_id": "<event_id>", | ||
"level": "error", | ||
"version": "5", | ||
"type": "default", | ||
"logger": "", | ||
"platform": "other", | ||
"timestamp": "<timestamp>", | ||
"received": "<received>", | ||
"user": { | ||
"ip_address": "2.125.160.216", | ||
"sentry_user": "ip:2.125.160.216", | ||
"geo": { | ||
"country_code": "GB", | ||
"city": "Boxford", | ||
"subdivision": "England", | ||
"region": "United Kingdom" | ||
} | ||
}, | ||
"sdk": { | ||
"name": "raven-node", | ||
"version": "2.6.3" | ||
}, | ||
"ingest_path": [ | ||
{ | ||
"version": "<version>", | ||
"public_key": "<public_key>" | ||
} | ||
], | ||
"key_id": "123", | ||
"project": 42, | ||
"spans": [ | ||
{ | ||
"timestamp": 1746007551.0, | ||
"start_timestamp": 1746007545.0, | ||
"span_id": "aaaaaaaa00000000", | ||
"trace_id": "aaaaaaaaaaaaaaaaaaaa000000000000", | ||
"sentry_tags": { | ||
"user.geo.country_code": "**", | ||
"user.geo.subregion": "**" | ||
} | ||
} | ||
], | ||
"_meta": { | ||
"spans": { | ||
"0": { | ||
"sentry_tags": { | ||
"user.geo.country_code": { | ||
"": { | ||
"rem": [ | ||
[ | ||
"@anything:mask", | ||
"m", | ||
0, | ||
2 | ||
] | ||
], | ||
"len": 2 | ||
} | ||
}, | ||
"user.geo.subregion": { | ||
"": { | ||
"rem": [ | ||
[ | ||
"@anything:mask", | ||
"m", | ||
0, | ||
2 | ||
] | ||
], | ||
"len": 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.