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, ECO-15] Add interception proxy to unified test suite #1818

Conversation

lawrence-forooghian
Copy link
Collaborator

@lawrence-forooghian lawrence-forooghian commented Jul 16, 2024

The title of this PR is misleading; this is currently holding some changes that I’ll integrate back into the prototype branch.

@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 16, 2024 22:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 16, 2024 22:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 16, 2024 22:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 17, 2024 16:43 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 17, 2024 16:43 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 17, 2024 16:43 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-15-unified-test-suite-with-interception-proxy branch from a8b980e to 09907d2 Compare July 18, 2024 15:02
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 18, 2024 15:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 18, 2024 15:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 18, 2024 15:02 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-15-unified-test-suite-with-interception-proxy branch from 09907d2 to 0288761 Compare July 18, 2024 17:20
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 18, 2024 17:21 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 18, 2024 17:21 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 18, 2024 17:21 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 25, 2024 08:44 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 25, 2024 08:44 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 25, 2024 08:44 Inactive
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 7ad3145.

(I just want to keep it in the Git history for now, in case for some
reason it’s useful to return to.)
@lawrence-forooghian lawrence-forooghian changed the base branch from unified-test-suite to ECO-4787-prototype-interception-proxy July 25, 2024 10:38
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-15-unified-test-suite-with-interception-proxy branch from ec9b138 to 8a36f47 Compare July 25, 2024 10:46
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 25, 2024 10:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 25, 2024 10:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 25, 2024 10:47 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-15-unified-test-suite-with-interception-proxy branch from 8a36f47 to 4e613dc Compare July 25, 2024 10:58
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 25, 2024 10:59 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 25, 2024 10:59 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 25, 2024 10:59 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 25, 2024 11:21 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 25, 2024 11:22 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 25, 2024 11:22 Inactive
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-15-unified-test-suite-with-interception-proxy branch from d1d6a96 to 8f7002b Compare July 25, 2024 12:44
@github-actions github-actions bot temporarily deployed to staging/pull/1818/bundle-report July 25, 2024 12:45 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/features July 25, 2024 12:45 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1818/typedoc July 25, 2024 12:45 Inactive
- 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

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.
@lawrence-forooghian lawrence-forooghian force-pushed the ECO-4787-prototype-interception-proxy branch from cf1a729 to 656f5b7 Compare July 29, 2024 09:30
it was getting unwieldly and would have been hard to add a further
method
This also introduces the interception proxy ability to inject messages.
done the interception part; need to implement injection in the proxy
now.

TODO document the injectMessage API; it’s currently in my notes.
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.

1 participant