-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Perf framework] Use Proxy tool to mock/replay the requests (#16518)
* test-proxy in options * recordingClient from recorder-new * getRecordingClient public method * blobServiceClient uses getRecordingClient * not browser * checkpoint * add login steps in getting started * checkpoint * NaN bug fix * remove temp-location note * logs and minor tweaks - some bug at playback * remove logs * update options * rushx format * fix sendRequest * removing unneeded details * getting started and removing console.log * improve type readability * do not redeclare static PerfStressTest.recorder * rushx format * simplified tsconfig * create project * create project * simple and batch tests * core-v2 prototype with addPolicy * readem disclaimer * Address Mike's feedback * rename recorder to testProxyHttpClient * rename * fix build failures * rushx format * fix test * readme and getting started * pnpm-lock file * rename policy * swap v1 and v2 * bug fix * update getting started * update getting started * rushx format * changelog * Scott says no need to login anymore * Add workflow in comments * description * pnpm-lock file * RecordingStateManager * URLBuilder -> URL * rushx format * readme * lock file * Update sdk/test-utils/perfstress/src/options.ts Co-authored-by: Mike Harder <[email protected]> * configureClientOptionsCoreV1 & configureClient * update types * comments * getting started * testProxyClient is not set, please make sure the client/options are configured properly. * if (!request.headers.get("x-recording-upstream-base-uri")) set upstream uri * Add undici * Investigate hanging docker or image (#33) * getting started * testProxyClient is not set, please make sure the client/options are configured properly. * if (!request.headers.get("x-recording-upstream-base-uri")) set upstream uri * Add undici * checkpoint * make core-v2 client identical to core-v1 except for sendReq * update error message * formatting * TestProxyHttpClientV1 depends on V2 * rushx format * Mike's final minor feedback * For corev1, extend TestProxyHttpClient instead of DefaultHttpClient * update tests file * no instaceof checks * move to http.request * Jeff's feedback * CachedProxyClients * keep clients on the test class * bad merge conflict resolution * Update sdk/test-utils/perfstress/GettingStarted.md * final minor feedback * remove CachedProxyClients wrapper Co-authored-by: Jose Manuel Heredia Hidalgo <[email protected]> Co-authored-by: Mike Harder <[email protected]>
- Loading branch information
1 parent
a78a4c8
commit f931704
Showing
15 changed files
with
771 additions
and
301 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.