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

[@azure/confidential-ledger-rest] Migrate to latest test recorder and externalize recordings #26305

Merged
merged 20 commits into from
Jun 23, 2023

Conversation

xirzec
Copy link
Member

@xirzec xirzec commented Jun 22, 2023

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.

@xirzec xirzec added Client This issue points to a problem in the data-plane of the library. Confidential Ledger RestLevelClient labels Jun 22, 2023
@xirzec xirzec self-assigned this Jun 22, 2023
@azure-sdk
Copy link
Collaborator

API change check

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

azure-rest-confidential-ledger

@xirzec
Copy link
Member Author

xirzec commented Jun 22, 2023

/azp run js - confidentialledger - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

/**
* When a service uses a custom SSL certificate to communicate with the client.
*/
tlsValidationCert?: string;
Copy link
Member

@HarshaNalluru HarshaNalluru Jun 22, 2023

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

Copy link
Member

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? 😎

@HarshaNalluru
Copy link
Member

/azp run js - confidentialledger - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xirzec xirzec force-pushed the confidentialLedgerTestProxy branch from cee1bf6 to 66b7091 Compare June 22, 2023 21:18
@xirzec xirzec force-pushed the confidentialLedgerTestProxy branch from c72d1f8 to 2b1d69a Compare June 22, 2023 21:44
@xirzec
Copy link
Member Author

xirzec commented Jun 22, 2023

/azp run js - confidentialledger - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xirzec xirzec merged commit 593fc57 into Azure:main Jun 23, 2023
24 checks passed
@xirzec xirzec deleted the confidentialLedgerTestProxy branch June 23, 2023 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Confidential Ledger RestLevelClient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Confidential Ledger tests to new recorder
3 participants