Skip to content

Storage STG 99 #49887

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

Merged
merged 15 commits into from
May 28, 2025
Merged

Storage STG 99 #49887

merged 15 commits into from
May 28, 2025

Conversation

seanmcc-msft
Copy link
Member

No description provided.

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label May 7, 2025
@azure-sdk
Copy link
Collaborator

azure-sdk commented May 7, 2025

API Change Check

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

Azure.Storage.Blobs
Azure.Storage.Common
Azure.Storage.Files.DataLake
Azure.Storage.Files.Shares
Azure.Storage.Queues

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - ci

Copy link

No pipelines are associated with this pull request.

@azure-sdk
Copy link
Collaborator

azure-sdk commented May 8, 2025

API change check

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

Azure.Storage.Blobs
Azure.Storage.Common
Azure.Storage.Files.DataLake
Azure.Storage.Files.Shares
Azure.Storage.Queues

seanmcc-msft and others added 10 commits May 8, 2025 19:34
* Storage Error Codes for Copies

* fixed CI

* recorded some tests

* Pattern matched StartCopyAsync_SourceErrorAndStatusCode with blobs test

* Refactored and recorded StartCopyAsync_SourceErrorAndStatusCode

* re-recorded tests

* Updated autorest

* generate code
* Generated Swagger changes for ShareSnapshotNotFoundValue added in ShareErrorCode

* Fixed autorest.md

* fixed autorest.md

* exported apis

* ShareClient.DeleteIfExists catches ShareSnapshotNotFound

* tiny test fix

* autorest + recorded tests

* Recorded test
…9000)

* Changed QueueProperties.ApproximateMessagesCount from int to long

* Changed autorest.md + exported api

* Fixed autorest

* Removed comments

* Changed to throw OverflowException if ApproximateMessagesCount overflows

* added breakingchange

* addressed arch board feedback

* Modified test

* Updated autorest

* generate code
@seanmcc-msft seanmcc-msft marked this pull request as ready for review May 21, 2025 19:19
@Copilot Copilot AI review requested due to automatic review settings May 21, 2025 19:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the SDK to support service version 2025-11-05 while also adjusting error response expectations in various tests. Key changes include:

  • Updating test assertions across multiple client test files to reflect the new error status codes and messages.
  • Updating API defaults and making the AccountName property virtual to improve mockability.
  • Bumping package versions and updating changelog entries and asset tags accordingly.

Reviewed Changes

Copilot reviewed 88 out of 88 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/storage/Azure.Storage.Blobs/tests/PageBlobClientTests.cs Updated test assertions for UploadPagesFromUriAsync error handling.
sdk/storage/Azure.Storage.Blobs/tests/ContainerClientTests.cs Refactored error code string usage and added an InvalidServiceVersion test.
sdk/storage/Azure.Storage.Blobs/tests/BlockBlobClientTests.cs Revised error assertions and modified SyncUploadFromUriAsync parameter.
sdk/storage/Azure.Storage.Blobs/tests/BlobBaseClientTests.cs Removed ignored tests and updated error message validations.
sdk/storage/Azure.Storage.Blobs/tests/AppendBlobClientTests.cs Updated error response validations for AppendBlockFromUriAsync.
sdk/storage/Azure.Storage.Blobs/src/autorest.md Updated the input API version URL for Autorest generation.
sdk/storage/Azure.Storage.Blobs/src/BlobServiceClient.cs Made the AccountName property virtual per design requirements.
sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs Added support for the new service version V2025_11_05.
sdk/storage/Azure.Storage.Blobs/*.csproj; assets.json; API files; CHANGELOG.md; ChangeFeed tests; Blobs.Batch files Bumped versions, updated configuration settings, and documented new features and breaking changes.
Comments suppressed due to low confidence (3)

sdk/storage/Azure.Storage.Blobs/tests/BlockBlobClientTests.cs:2919

  • Review the change from using GenerateSasUri() to directly passing sourceBlob.Uri to ensure the test still simulates the intended authentication error scenario.
destBlob.SyncUploadFromUriAsync(sourceBlob.Uri),

sdk/storage/Azure.Storage.Blobs/tests/PageBlobClientTests.cs:3415

  • Ensure that the updated expected error code 401 and associated error details accurately reflect the backend service behavior across all environments.
Assert.IsTrue(e.Message.Contains("CopySourceStatusCode: 401"));

sdk/storage/Azure.Storage.Blobs/tests/BlobBaseClientTests.cs:3475

  • Confirm that the updated error expectations (401 along with the new error code and message) are consistent with the documented service behavior.
Assert.IsTrue(e.Message.Contains("CopySourceStatusCode: 401"));

@seanmcc-msft seanmcc-msft merged commit 0110805 into main May 28, 2025
30 checks passed
@seanmcc-msft seanmcc-msft deleted the feature/storage/stg99base branch May 28, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants