Skip to content

Conversation

@weirongw23-msft
Copy link
Member

No description provided.

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Nov 19, 2025
@weirongw23-msft weirongw23-msft marked this pull request as ready for review November 19, 2025 20:39
Copilot AI review requested due to automatic review settings November 19, 2025 20:39
Copilot finished reviewing on behalf of weirongw23-msft November 19, 2025 20:41
Copy link
Contributor

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 fixes 100 live tests in the Azure Storage SDK by addressing test failures in queue and blob storage test suites. The changes include correcting test names for uniqueness, fixing SAS permissions to include necessary operations, correcting client object references, and updating datetime variable names for consistency.

Key changes:

  • Renamed queue user delegation OID tests to include "queue" prefix for clarity and uniqueness
  • Added missing read and process permissions to queue SAS tokens that were causing test failures
  • Fixed incorrect variable name in blob tags conditional headers tests from 'expiry_time' to 'early'

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sdk/storage/azure-storage-queue/tests/test_queue_async.py Renamed test function, added missing SAS permissions, fixed client object usage in message receiving, and improved test assertions
sdk/storage/azure-storage-queue/tests/test_queue.py Renamed test function, added missing SAS permissions, and fixed client object usage in message receiving
sdk/storage/azure-storage-blob/tests/test_blob_tags_async.py Corrected datetime variable name from 'expiry_time' to 'early' for consistency
sdk/storage/azure-storage-blob/tests/test_blob_tags.py Corrected datetime variable name from 'expiry_time' to 'early' for consistency
sdk/storage/azure-storage-blob/assets.json Updated test recording assets tag reference

async for m in queue.receive_messages():
async for m in queue_client.receive_messages():
messages.append(m)
assert messages is not None
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

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

The assertion assert messages is not None will always pass since messages is initialized as an empty list and will never be None. Consider either removing this assertion or changing it to assert len(messages) > 0 to verify that at least one message was received.

Suggested change
assert messages is not None
assert len(messages) > 0

Copilot uses AI. Check for mistakes.
@weirongw23-msft
Copy link
Member Author

/azp run python - pullrequest

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@weirongw23-msft
Copy link
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

1 participant