Skip to content

Test recorder#32668

Merged
samvaity merged 126 commits intoAzure:mainfrom
billwert:test-recorder
Feb 28, 2023
Merged

Test recorder#32668
samvaity merged 126 commits intoAzure:mainfrom
billwert:test-recorder

Conversation

@billwert
Copy link
Copy Markdown
Contributor

@billwert billwert commented Dec 21, 2022

Plumbing infrastructure for enabling out of process test recordings.

A follow up doc will come which will explain use. With a couple small exceptions all existing tests should work without change.
Wiki - TestProxy Migration

Big changes:

  1. adds new policy and pipelines for communicating with the test proxy
  2. adds utilities for communicating to the test proxy, including a JDK based HttpClient implementation
  3. adds unit tests for the proxy infrastructure, including a small http server for test data.

Closes #33303

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@billwert
Copy link
Copy Markdown
Contributor Author

sorry for all the pings - I meant to open as a draft. :( Feedback definitely welcome at this point though!

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

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

azure-core-test

@billwert
Copy link
Copy Markdown
Contributor Author

@srnagar It looks like we're done with feedback. There are a couple follow up items to do (finishing the work so that recordings can be migrated and your comment about dynamic port numbers) but otherwise this is done. Folks can start using this for re-recording. Can you sign off?

@ghost
Copy link
Copy Markdown

ghost commented Feb 28, 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.

Copy link
Copy Markdown
Member

@srnagar srnagar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice work @billwert and @samvaity enabling test proxy for Java client libraries!

* Before tests are executed, determines the test mode by reading the {@code AZURE_TEST_MODE} environment variable.
* If it is not set, {@link TestMode#PLAYBACK}
*/
@SuppressWarnings({"deprecation", "resource"})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not needed, then let's remove this before merging.

@samvaity samvaity merged commit 2ff2de8 into Azure:main Feb 28, 2023
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.

Integrate with Test Proxy Server

5 participants