Skip to content
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

[WIP] Unified test suite: prototype interception proxy #1737

Draft
wants to merge 5 commits into
base: ECO-4786-document-private-API-usage
Choose a base branch
from

Conversation

lawrence-forooghian
Copy link
Collaborator

No description provided.

@lawrence-forooghian lawrence-forooghian force-pushed the ECO-14-document-internal-api-use-in-tests branch 29 times, most recently from f781da0 to b04ffc9 Compare April 17, 2024 19:02
@github-actions github-actions bot temporarily deployed to staging/pull/1737/features April 17, 2024 19:03 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/typedoc April 22, 2024 21:47 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-14-document-internal-api-use-in-tests branch from 17866d7 to 1a4fa36 Compare April 22, 2024 21:55
@github-actions github-actions bot temporarily deployed to staging/pull/1737/features April 22, 2024 21:55 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/bundle-report April 22, 2024 21:55 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/typedoc April 22, 2024 21:56 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-14-document-internal-api-use-in-tests branch from 0074685 to 7e93dbb Compare May 1, 2024 13:49
@github-actions github-actions bot temporarily deployed to staging/pull/1737/features May 1, 2024 13:50 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/bundle-report May 1, 2024 13:50 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/typedoc May 1, 2024 13:50 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-14-document-internal-api-use-in-tests branch from 7e93dbb to 3efb313 Compare May 1, 2024 13:55
@github-actions github-actions bot temporarily deployed to staging/pull/1737/features May 1, 2024 13:55 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/bundle-report May 1, 2024 13:56 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1737/typedoc May 1, 2024 13:56 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-14-document-internal-api-use-in-tests branch 3 times, most recently from 0baae01 to a96b2d0 Compare May 2, 2024 13:07
@lawrence-forooghian lawrence-forooghian changed the base branch from main to ECO-4786-document-private-API-usage May 15, 2024 19:54
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-14-document-internal-api-use-in-tests branch from a96b2d0 to 949e2e6 Compare May 15, 2024 19:54
@lawrence-forooghian lawrence-forooghian changed the title [WIP] Unified test suite: document private API usage and prototype interception proxy [WIP] Unified test suite: prototype interception proxy May 15, 2024
@github-actions github-actions bot temporarily deployed to staging/pull/1737/features May 15, 2024 19:55 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-4786-document-private-API-usage branch from 812851e to 28523ba Compare May 21, 2024 18:10
For upcoming interception proxy.

TODO: once I’ve got rid of the subsequent commit with the old Python
code, put this into the later commit instead
Implemented entirely as an mitmproxy addon. Abandoned because it didn’t
give me sufficient control over WebSocket connection lifetimes.
This reverts commit 27c5272.

(I just want to keep it in the Git history for now, in case for some
reason it’s useful to return to.)
…prototype

- start-interception-proxy adapted from https://github.com/ably/sdk-test-proxy at 82e93a7

Some TODOs which aren’t really important right now because this is just
a prototype:

- TODO fix type checking for interception proxy — `npm run build` does
  it properly, but tried to reproduce the way we do it for modulereport
  and it didn’t work

- TODO fix linting for interception proxy — doesn’t seem to be catching
  lint errors

- TODO linting / type checking etc for Python code

- TODO investigate test failures in browser:

- Firefox is passing

- [Chromium is failing](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087173):

> ```
> [](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087173#step:15:35514)- offers realtime presence functionality
>
> [](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087173#step:15:35515)- is able to use the web_socket transport
>
> [](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087173#step:15:35516)- is able to subscribe to and unsubscribe from channel events, as long as a MessageFilter isn’t passed
>
> [](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087173#step:15:35517)- can take a MessageFilter argument when subscribing to and unsubscribing from channel events
> ```

> - [WebKit is failing](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087922):
> ```
> failed tests:
>
> [](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087922#step:15:27042)- allows you to use push admin functionality
>
> [](https://github.com/ably/ably-js/actions/runs/8802125604/job/24157087922#step:15:27043)- allows you to use push admin functionality
> ```

TODO update the above failures, they _should_ be all fixed now, but I
don’t know if sandbox is currently having a wobble or something

Also:

> Add test:playwright:open-browser script
>
> Lets you open a headed browser which is configured to use the
> interception proxy. Useful for local debugging of browser tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant