Closed samvaity closed 2 months ago
cc: @kurtzeborn as fyi on progress
Hi @samvaity, I tried to use TestProxyTestBase
to record, but meet issue on connecting to test proxy when start recording,(see below screenshot) I debugged into the code, seems it connects to localhost
test proxy server, but I cannot find the steps about setting up the test proxy locally in the migration document. Do we have guidelines on how to record locally?
@haolingdong-msft Please check @BeforeEach of TestBase is invoked. It could be shadowed by the subclass.
Haoling Dong We could probably add a gotcha in the doc saying: if you meet connection issue, make sure TestProxyBase.setup() is called before running the tests, because it is very likely that subclass named the @BeforeAll method as 'setup' and it will override the super class(i.e. TestProxyBase) setup(i.e. BeforeAll hook).
This solved the above-mentioned error.
What is Test-Proxy-Migration
Migration efforts =~ 3-4 dev days.
Steps to integrate with Test Proxy:
azure-core-test
.TestBase
toTestProxyTestBase
sdk\servicedirector\librarylevel
directory path - this will move the test recordings to asset repo and create an asset.json file for respective SDK. Detailed steps hereasset.json
file for each SDK i.esdk/tables/azure-data-tables/assets.json
PR Reference & deleted language repo recordings from yoursrc/test/sessions-records/
Potential gotchas
Test-Proxy overall progress per language - 2023-08-17
Java team SDKs: (April)
azure-storage-blob-nio
azure-storage-blob-cryptography
July - August release SDKs:
Management SDKs
https://azure.github.io/azure-sdk/releases/latest/mgmt/java.html