github web-platform-tests/wpt merge_pr_49143

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
4 months ago

Add basic subscription test with dummy push server

This adds:

  1. A dummy Python websocket server as a push service, which then opens a new HTTP server as a push endpoint for each subscription.
  • This is done because we do not allow networking with external servers for WPT.
  1. A encryption helper library that follows multiple web push RFCs.

Known caveats:

  • The dummy server works but contradicts to the point for encryption; the dummy doesn't validate VAPID and implementing that part will make way more complexity with no actual extra test coverage.
    • We might instead want to somehow allow connection to the push server than adding a dummy server.
  • Other servers don't send CORS headers which this test depends on

Differential Revision: https://phabricator.services.mozilla.com/D222665

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1874394
gecko-commit: 34aec3a048ad63a71e265e16e5dadbb399efa30b
gecko-reviewers: jgraham, asuth

Don't miss a new wpt release

NewReleases is sending notifications on new releases.