Skip to content

Commit a725a5d

Browse files
[Storage] Fix Etag serde rename (#2841)
1 parent 02157c3 commit a725a5d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

sdk/storage/azure_storage_blob/src/generated/models/pub_models.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/azure_storage_blob/tests/blob_container_client.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,12 @@ async fn test_list_blobs(ctx: TestContext) -> Result<(), Box<dyn Error>> {
106106
let blob_list = list_blob_segment_response.segment.blob_items;
107107
for blob in blob_list {
108108
let blob_name = blob.name.unwrap().content.unwrap();
109-
let blob_type = blob.properties.unwrap().blob_type.unwrap();
109+
let properties = blob.properties.unwrap();
110+
let blob_type = properties.blob_type.unwrap();
111+
let etag = properties.etag;
110112
assert!(blob_names.contains(&blob_name));
111113
assert_eq!(BlobType::BlockBlob, blob_type);
114+
assert!(etag.is_some());
112115
}
113116

114117
container_client.delete_container(None).await?;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/storage/Microsoft.BlobStorage
2-
commit: ac2d7f6cf9e37d6d4d35bd917bd2a06c31f9c1c4
2+
commit: 107ee0188cea644df542eb028052d671eb8293d5
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

0 commit comments

Comments
 (0)