[Formrecognizer] Migrate recordings to asset repo #35178
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR migrates the test recordings using test proxy for
formrecognizer
SDK to the assets repo.Migrate recordings from language repositories to assets repo
Prerequisites:
The script generate-assets-json.ps1 will execute the initial migration of your recordings from within a language repo to the assets repo as well as creating the assets.json file for those assets.
Test-proxy needs to be on the machine and in the path. Instructions for that are here.
Running the script:
The script needs to be executed inside an
sdk/ServiceDirectory/Library
level directory.Examples of current assets.json locations:
After running a script, executing a
git status
from within the language repo, where the script was invoked from, will reflect two primary results:assets.json
will be present in the directory from which they invoked the transition script.deleted files
from where their recordings were before they were pushed to the assets repo.Using test proxy going forward:
https://github.com/Azure/azure-sdk-for-java/wiki/Test-Proxy-Migration#3-using-test-proxy-going-forward