Skip to content

chore(har recorder): ensure we respect minimal mode - #32658

Merged
Simon Knott (Skn0tt) merged 2 commits into
microsoft:mainfrom
Skn0tt:har-api-respect-omit
Sep 17, 2024
Merged

chore(har recorder): ensure we respect minimal mode#32658
Simon Knott (Skn0tt) merged 2 commits into
microsoft:mainfrom
Skn0tt:har-api-respect-omit

Conversation

@Skn0tt

@Skn0tt Simon Knott (Skn0tt) commented Sep 17, 2024

Copy link
Copy Markdown
Member

Closes #32653.

Adds some test coverage to ensure we respect minimal mode for API Requests in HAR tracing.

omit setting result
omitCookies added test for it
omitTiming already covered
omitSecurityDetails not recorded yet
omitServerIP we don't record it yet, so no action here. gonna open a separate issue
omitPages not relevant to API requests
omitSizes added test for it
omitScripts not relevant to API requests

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [playwright-test] › babel.spec.ts:135:5 › should not transform external

2 flaky ⚠️ [chromium-library] › library/capabilities.spec.ts:141:3 › should not crash on showDirectoryPicker
⚠️ [firefox-page] › page/page-event-request.spec.ts:169:3 › should return response body when Cross-Origin-Opener-Policy is set

35487 passed, 659 skipped
✔️✔️✔️

Merge workflow run.

@Skn0tt
Simon Knott (Skn0tt) merged commit f1390cc into microsoft:main Sep 17, 2024
Simon Knott (Skn0tt) added a commit that referenced this pull request Sep 18, 2024
While working on #32658 I
discovered that we're recording `securityDetails` for browser requests,
but not for API requests. This PR fixes that.
Simon Knott (Skn0tt) added a commit that referenced this pull request Sep 18, 2024
Discovered working on
#32658. We're recording the
remote server address for browser requests, but not for API requests.
This PR adds that for API requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[internal] respect HAR recorder minimal mode for API requests

2 participants