-
Notifications
You must be signed in to change notification settings - Fork 268
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
[Storage] stage_block
, commit_block_list
for BlobClient
, get_container_properties
for ContainerClient
, get_service_properties
for ServiceClient
#2273
base: main
Are you sure you want to change the base?
Conversation
sdk/storage/azure_storage_blob/src/models/container_properties.rs
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,23 @@ | |||
[package] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need/want a whole new crate for these helpers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I was following the convention that:
- azure_core_test exists for test utilities for client libraries built on
azure_core
- azure_security_keyvault_test exists for test utilities for
KeyVault
tests
I am happy to move these into the main azure_storage_blob
crate, but we should check with Azure SDK what is idiomatic here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this should probably be a helper sub-module in the test module of the SDK itself. The core test package provides all the stuff for other packages so that makes sense and keyvault has some actual tests in there so I don't think plain utilities have a precedent here.
Curious on Heath's thoughts though.
This PR introduces the following:
BlobClient
stage_block
commit_block_list
ContainerClient
get_container_properties
ServiceClient
ServiceClient
get_service_properties
This PR also moves to the standardized way to fetch randomized seeded names (
random_string
) and includes a helper utility for test setup.