Skip to content

[Storage] Fixing test_blob_tags versioning issues #23693

Description

@vincenttran-msft
  • Package Name: azure.storage.blob
  • Package Version: 12.10.0
  • Operating System: Windows 10
  • Python Version: 3.10.2

Describe the bug
Currently in test_blob_tags.py, we added testing for functionality that is only supported in later service versions (i.e. some features are only supported after ServiceVersion 2019-12-12), and so we used a skipif mark to skip those tests if the service version that you are running the tests on. However, as observed by @jalauzon-msft (thanks Jacob!), the use of self.create_storage_client to construct the BlobServiceClient object incorrectly represented the service version you are running locally.

To alleviate this problem, we have switched to directly constructing the BlobServiceClient in order to accurately pull the service version.

After doing so, all tests were re-run, and any failing tests will be linked to this GitHub issue. These may require further investigation as their failures don't seem rooted in this odd skipif behavior.

Remaining Failing Tests:

  1. test_filter_blobs_using_account_sas ✔️ RESOLVED
  2. test_set_blob_tags_using_blob_sas ❌ STILL REPRODUCING

Metadata

Metadata

Labels

StorageStorage Service (Queues, Blobs, Files)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions