-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[@azure/confidential-ledger-rest] Migrate to latest test recorder and externalize recordings #26305
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
/azp run js - confidentialledger - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
sdk/confidentialledger/confidential-ledger-rest/test/public/historicalRangeQuery.spec.ts
Outdated
Show resolved
Hide resolved
/** | ||
* When a service uses a custom SSL certificate to communicate with the client. | ||
*/ | ||
tlsValidationCert?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change, @xirzec 🍏
I was reading.. Test proxy supports more than this. Adding here for future reference.
https://github.com/Azure/azure-sdk-tools/blob/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/README.md#recording-options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind adding a line in the changelog? 😎
/azp run js - confidentialledger - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
cee1bf6
to
66b7091
Compare
c72d1f8
to
2b1d69a
Compare
/azp run js - confidentialledger - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Packages impacted by this PR
@azure-rest/confidential-ledger
@azure-tools/test-recorder
Issues associated with this PR
Fixes #20495
Describe the problem that is addressed by this PR
Migrate to the latest test recorder in order to use the test proxy and externalize recordings. I also had to regenerate the RLC in order to fix an issue with
isUnexpected
not working properly for the user endpoint.Getting the test resources to deploy correctly also took some doing since it uses the
oid
and not the normal client id of the test app.The tests themselves were a bit busted in places; I shored them up as best I could given the odd behavior of the service.
Lastly, the test recorder didn't have support for any custom transport options, so I had to add one in order to pass the
TLSValidationCert
in order for it to work properly with confidential ledger.