Add integration test for ecosystem ping using telemetry-client-test
Categories
(Toolkit :: Telemetry, enhancement, P3)
Tracking
()
People
(Reporter: janerik, Unassigned)
References
Details
Once we have the ping landed, we should try to use a proper integration test using telemetry-client-test (marionette).
This might require some cross-team collaboration for the FxA/Sync parts.
Reporter | ||
Comment 1•6 years ago
|
||
Here are steps that I did manually to play around with a FxA test account and the new ping:
I set the following config options (about:config):
identity.fxaccounts.remote.oauth.uri=https://oauth.stage.mozaws.net/v1
identity.fxaccounts.remote.profile.uri=https://profile.stage.mozaws.net/v1
identity.fxaccounts.remote.root=https://accounts.stage.mozaws.net/
identity.fxaccounts.auth.uri=https://api-accounts.stage.mozaws.net/v1
identity.sync.tokenserver.uri=https://token.stage.mozaws.net/1.0/sync/1.5
browser.newtabpage.activity-stream.fxaccounts.endpoint=https://accounts.stage.mozaws.net/
toolkit.telemetry.ecosystemtelemetry.enabled=true
toolkit.telemetry.server=http://localhost:8080
Created an account on https://accounts.stage.mozaws.net/ using a restmail.net email address (also possible using https://github.com/mozilla/PyFxA/).
Started https://github.com/mozilla/gzipServer as a mock Telemetry endpoint (port 8080)
- Start a browser
- Wait at least 60 seconds for Telemetry to initialize
- Close browser
- Should have received pings, including a ecosystem/pre-account ping
- Start browser
- Menu -> "Sign in to sync" using the previously created account.
- Wait for a sync
- Should have received a pre-account login ping
- Should contain a
uid
- Close browser
- Should have received a ecosystem shutdown ping
- Start browser and wait a bit
- This should not genereate a pre-account ping
- Go to FxA/Sync settings and log out
- After that, should have receive a pre-account logout ping
- Close browser
- Should have receive a ecosystem shutdown ping without an
uid
- Should have receive a ecosystem shutdown ping without an
(This is typed up from memory, details might slightly differ)
Once this ping is fully implemented and some more details are clarified, things might slightly change on how to test this and what ping type/reason/payload to expect.
Comment 2•5 years ago
|
||
Bulk action: Closing down old Ecosystem Telemetry bug tree. Long live Accounts Ecosystem Telemetry!
Description
•