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

Fixed and added Tables unit tests. #22196

Merged
merged 7 commits into from
Jun 10, 2021
Merged

Fixed and added Tables unit tests. #22196

merged 7 commits into from
Jun 10, 2021

Conversation

vcolin7
Copy link
Member

@vcolin7 vcolin7 commented Jun 10, 2021

Also added recordings.

I had to modify some generated models to fit the XML shape the Storage service expects, for some reason the swagger was not enough for autorest to generate things properly. I will investigate further. It might come It may come down to some setting or adding transforms in the worst case.

Opened the following issue to track this: #22195.

@vcolin7 vcolin7 self-assigned this Jun 10, 2021
@vcolin7 vcolin7 requested a review from conniey as a code owner June 10, 2021 05:40
TableServiceAsyncClient secondaryClient = new TableServiceClientBuilder()
.endpoint(secondaryEndpoint)
.serviceVersion(serviceClient.getServiceVersion())
.pipeline(serviceClient.getHttpPipeline())
Copy link
Member

Choose a reason for hiding this comment

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

A new pipeline is created if it's not provided in the builder. So, this isn't required.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it would be better to use the same pipeline from the first client to use the same configuration. I think can write things better to make it so that we can get those settings in the test class itself.

*
* @return This client's {@link HttpPipeline}.
*/
HttpPipeline getHttpPipeline() {
Copy link
Member

Choose a reason for hiding this comment

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

This API is not required.

…'operation' in samples and error messages.
@vcolin7 vcolin7 merged commit c73bdf1 into Azure:master Jun 10, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this pull request Feb 22, 2023
release 2023 02 01 (Azure#22474)

* Adds base for updating Microsoft.SecurityInsights from version stable/2022-11-01 to version 2023-02-01

* Updates readme

* Updates API version in new specs and examples

* Provider sync properties (Azure#22198)

* Alert Rules - add alert details override changes and PUT example (Azure#22196)

* add alert details override changes and PUT example

* add missing brace

* add closing brace for alertDetailsOverride

* add dynamic properties to 200 response

* add dynamic details to 201 response

---------

Co-authored-by: ShaniFelig <shfelifelig@microsoft.com>

* Release Metadata 2023-02-01 stable version. (Azure#22161)

* Release Metadata 2023-02-01 stable version.

* Fix Swagger spec validation errors.

* Revert Metadata service version to 2022-12-01-preview

* Bring back changes for version 2023-02-01

* Fix model validation

---------

Co-authored-by: Dor Siso <60354892+dosiso@users.noreply.github.com>
Co-authored-by: ShaniFelig <74960756+ShaniFelig@users.noreply.github.com>
Co-authored-by: ShaniFelig <shfelifelig@microsoft.com>
Co-authored-by: Samuel Kuang <samuk@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants