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

Add http clients to test proxy #33939

Merged
6 commits merged into from
Mar 9, 2023
Merged

Conversation

billwert
Copy link
Contributor

@billwert billwert commented Mar 9, 2023

Fixes two bugs:

  1. Use the default HTTP client for record/playback. This should eliminate many header mismatch errors.
  2. Prevent getting record/playback objects in LIVE mode. At least some tests have been adding a record policy to anything that was not PLAYBACK. In the old record path this was a no-op. In the new path even if we made the recording step a no-op there would still be lots of work starting up the proxy, etc. Arguably tests that were doing this have a bug: there's no reason to have added a record policy to LIVE, so I'm preventing it.

See the wiki for details about this and other potential issues.

This does not yet enable using more than one HTTP client for playback/record. That's a feature request we'll do in the future.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-core-test

@ghost
Copy link

ghost commented Mar 9, 2023

Hello @billwert!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 56ea660 into Azure:main Mar 9, 2023
@billwert billwert deleted the add-http-clients-to-test-proxy branch April 4, 2023 22:38
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core azure-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants