Closed Bug 1535349 Opened 6 years ago Closed 5 years ago

Add integration test for ecosystem ping using telemetry-client-test

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX

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.

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)

  1. Start a browser
  2. Wait at least 60 seconds for Telemetry to initialize
  3. Close browser
    • Should have received pings, including a ecosystem/pre-account ping
  4. Start browser
  5. Menu -> "Sign in to sync" using the previously created account.
  6. Wait for a sync
    • Should have received a pre-account login ping
    • Should contain a uid
  7. Close browser
    • Should have received a ecosystem shutdown ping
  8. Start browser and wait a bit
    • This should not genereate a pre-account ping
  9. Go to FxA/Sync settings and log out
    • After that, should have receive a pre-account logout ping
  10. Close browser
    • Should have receive a ecosystem shutdown ping without an uid

(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.

Bulk action: Closing down old Ecosystem Telemetry bug tree. Long live Accounts Ecosystem Telemetry!

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.