If you do not want to create one, you are welcome to ping me for the dsn I setup for testing Shavar. Set the environment variable SENTRY_DSN with the test dsn.
Check that the issues with error message Invalid RANGE "<TIMESTAMP> is properly grouped together
Execute the following command:
curl -d "mozstd-trackwhite-digest256;a:9-3;" "localhost:8080/downloads?appver=76.0&pver=2.2"ps
Check that an issue with error message Invalid RANGE "9-3;" for mozstd-trackwhite-digest256 is logged on Sentry
Execute the following command:
curl -d "mozstd-trackwhite-digest256;a:1234567890-3;" "localhost:8080/downloads?appver=76.0&pver=2.2"
Check that issue is also logged in Sentry by increasing the event count AND NOT by creating a new event
If a new event is created, merge the two issues and try again with a different int value and check that event count is increased instead of creating a new event on Sentry.
Check that the issues with error message Invalid LISTINFO is properly grouped together
Follow the previous test but use the following command:
curl -d "mozstd-trackwhite-digest256;a:1234567890-3:;" "localhost:8080/downloads?appver=76.0&pver=2.2"
Test again with different data payload such as: curl -d "mozstd-trackwhite-digest256;a:1234567890-3:a:123-543:;" "localhost:8080/downloads?appver=76.0&pver=2.2"
About this PR
Fix #150
Practical Tests
Setup a dev Sentry account and get a dsn
If you do not want to create one, you are welcome to ping me for the dsn I setup for testing Shavar. Set the environment variable
SENTRY_DSN
with the test dsn.Check that the issues with error message
Invalid RANGE "<TIMESTAMP>
is properly grouped togethercurl -d "mozstd-trackwhite-digest256;a:9-3;" "localhost:8080/downloads?appver=76.0&pver=2.2"ps
Invalid RANGE "9-3;" for mozstd-trackwhite-digest256
is logged on Sentrycurl -d "mozstd-trackwhite-digest256;a:1234567890-3;" "localhost:8080/downloads?appver=76.0&pver=2.2"
Check that the issues with error message
Invalid LISTINFO
is properly grouped togethercurl -d "mozstd-trackwhite-digest256;a:1234567890-3:;" "localhost:8080/downloads?appver=76.0&pver=2.2"
curl -d "mozstd-trackwhite-digest256;a:1234567890-3:a:123-543:;" "localhost:8080/downloads?appver=76.0&pver=2.2"
NOTE TO CKOLOS
@ckolos, when this is merged to staging following updates are needed on https://github.com/mozilla-services/cloudops-deployment/blob/master/projects/shavar/puppet/modules/shavar_server/templates/shavar.ini.erb:
[shavar]
section should includes:console
.