From 484ab9ef1b46b619a219b64f0c250a0b339f9ad9 Mon Sep 17 00:00:00 2001 From: vincenttran-msft <101599632+vincenttran-msft@users.noreply.github.com> Date: Tue, 4 Oct 2022 18:04:43 -0700 Subject: [PATCH] [Storage] Migrate `test_directory.py` to test proxy (#26519) --- .../tests/conftest.py | 57 +- ...orageDirectorytest_create_directories.json | 71 ++ ...test_create_directories_fail_on_exist.json | 106 +++ ...test_create_directories_with_metadata.json | 109 +++ ...t_create_directory_set_smb_properties.json | 106 +++ ...irectorytest_create_file_in_directory.json | 186 +++++ ...geDirectorytest_create_subdirectories.json | 110 +++ ...t_create_subdirectories_with_metadata.json | 148 ++++ ..._delete_directory_with_existing_share.json | 126 ++++ ...directory_with_non_existing_directory.json | 63 ++ ...irectorytest_delete_file_in_directory.json | 195 +++++ ...geDirectorytest_delete_subdirectories.json | 165 ++++ ...StorageDirectorytest_directory_exists.json | 105 +++ ...rytest_directory_exists_with_snapshot.json | 158 ++++ ...ageDirectorytest_directory_not_exists.json | 62 ++ ...st_directory_not_exists_with_snapshot.json | 129 ++++ ...ctorytest_directory_parent_not_exists.json | 62 ++ ..._get_directory_metadata_with_snapshot.json | 167 +++++ ...irectorytest_get_directory_properties.json | 105 +++ ...irectory_properties_server_encryption.json | 105 +++ ...roperties_with_non_existing_directory.json | 62 ++ ...et_directory_properties_with_snapshot.json | 167 +++++ ...ectorytest_get_set_directory_metadata.json | 137 ++++ ..._list_nested_subdirectories_and_files.json | 435 +++++++++++ ...orytest_list_subdirectories_and_files.json | 435 +++++++++++ ...ories_and_files_include_extended_info.json | 136 ++++ ...ectories_and_files_include_other_data.json | 460 ++++++++++++ ..._subdirectories_and_files_with_prefix.json | 435 +++++++++++ ...ubdirectories_and_files_with_snapshot.json | 463 ++++++++++++ ...StorageDirectorytest_rename_directory.json | 141 ++++ ...ctorytest_rename_directory_dest_lease.json | 287 +++++++ ..._rename_directory_different_directory.json | 219 ++++++ ...test_rename_directory_file_permission.json | 171 +++++ ...test_rename_directory_ignore_readonly.json | 223 ++++++ ..._rename_directory_preserve_permission.json | 176 +++++ ...ectorytest_rename_directory_share_sas.json | 141 ++++ ...ytest_rename_directory_smb_properties.json | 145 ++++ ..._properties_with_empty_smb_properties.json | 178 +++++ ...y_properties_with_file_permission_key.json | 179 +++++ ...eDirectorytest_share_directory_exists.json | 135 ++++ ...est_directory.test_create_directories.yaml | 102 --- ...test_create_directories_fail_on_exist.yaml | 149 ---- ...test_create_directories_with_metadata.yaml | 162 ---- ...t_create_directory_set_smb_properties.yaml | 156 ---- ...rectory.test_create_file_in_directory.yaml | 282 ------- ..._directory.test_create_subdirectories.yaml | 164 ---- ...t_create_subdirectories_with_metadata.yaml | 224 ------ ..._delete_directory_with_existing_share.yaml | 173 ----- ...directory_with_non_existing_directory.yaml | 79 -- ...rectory.test_delete_file_in_directory.yaml | 284 ------- ..._directory.test_delete_subdirectories.yaml | 235 ------ .../test_directory.test_directory_exists.yaml | 154 ---- ...y.test_directory_exists_with_snapshot.yaml | 228 ------ ...t_directory.test_directory_not_exists.yaml | 77 -- ...st_directory_not_exists_with_snapshot.yaml | 179 ----- ...tory.test_directory_parent_not_exists.yaml | 77 -- ..._get_directory_metadata_with_snapshot.yaml | 246 ------ ...rectory.test_get_directory_properties.yaml | 154 ---- ...irectory_properties_server_encryption.yaml | 154 ---- ...roperties_with_non_existing_directory.yaml | 77 -- ...et_directory_properties_with_snapshot.yaml | 246 ------ ...ctory.test_get_set_directory_metadata.yaml | 202 ----- ..._list_nested_subdirectories_and_files.yaml | 667 ----------------- ...ry.test_list_subdirectories_and_files.yaml | 668 ----------------- ...ories_and_files_include_extended_info.yaml | 203 ----- ...ectories_and_files_include_other_data.yaml | 707 ----------------- ..._subdirectories_and_files_with_prefix.yaml | 668 ----------------- ...ubdirectories_and_files_with_snapshot.yaml | 708 ------------------ .../test_directory.test_rename_directory.yaml | 210 ------ ...tory.test_rename_directory_dest_lease.yaml | 436 ----------- ..._rename_directory_different_directory.yaml | 334 --------- ...test_rename_directory_file_permission.yaml | 250 ------- ...test_rename_directory_ignore_readonly.yaml | 342 --------- ..._rename_directory_preserve_permission.yaml | 264 ------- ....test_rename_directory_smb_properties.yaml | 218 ------ ..._properties_with_empty_smb_properties.yaml | 268 ------- ...y_properties_with_file_permission_key.yaml | 270 ------- ...directory.test_share_directory_exists.yaml | 191 ----- ...DirectoryAsynctest_create_directories.json | 69 ++ ...test_create_directories_fail_on_exist.json | 103 +++ ...test_create_directories_with_metadata.json | 106 +++ ...t_create_directory_set_smb_properties.json | 103 +++ ...oryAsynctest_create_file_in_directory.json | 181 +++++ ...ectoryAsynctest_create_subdirectories.json | 107 +++ ...t_create_subdirectories_with_metadata.json | 144 ++++ ..._delete_directory_with_existing_share.json | 122 +++ ...directory_with_non_existing_directory.json | 61 ++ ...oryAsynctest_delete_file_in_directory.json | 189 +++++ ...ectoryAsynctest_delete_subdirectories.json | 160 ++++ ...geDirectoryAsynctest_directory_exists.json | 102 +++ ...nctest_directory_exists_with_snapshot.json | 153 ++++ ...rectoryAsynctest_directory_not_exists.json | 60 ++ ...st_directory_not_exists_with_snapshot.json | 125 ++++ ...Asynctest_directory_parent_not_exists.json | 60 ++ ..._get_directory_metadata_with_snapshot.json | 162 ++++ ...oryAsynctest_get_directory_properties.json | 102 +++ ...irectory_properties_server_encryption.json | 102 +++ ...roperties_with_non_existing_directory.json | 60 ++ ...et_directory_properties_with_snapshot.json | 162 ++++ ...yAsynctest_get_set_directory_metadata.json | 133 ++++ ..._list_nested_subdirectories_and_files.json | 423 +++++++++++ ...ynctest_list_subdirectories_and_files.json | 423 +++++++++++ ...ories_and_files_include_extended_info.json | 132 ++++ ...ectories_and_files_include_other_data.json | 447 +++++++++++ ..._subdirectories_and_files_with_prefix.json | 423 +++++++++++ ...ubdirectories_and_files_with_snapshot.json | 450 +++++++++++ ...geDirectoryAsynctest_rename_directory.json | 137 ++++ ...Asynctest_rename_directory_dest_lease.json | 279 +++++++ ..._rename_directory_different_directory.json | 213 ++++++ ...test_rename_directory_file_permission.json | 166 ++++ ...test_rename_directory_ignore_readonly.json | 217 ++++++ ..._rename_directory_preserve_permission.json | 171 +++++ ...yAsynctest_rename_directory_share_sas.json | 137 ++++ ...ctest_rename_directory_smb_properties.json | 141 ++++ ..._properties_with_empty_smb_properties.json | 173 +++++ ...y_properties_with_file_permission_key.json | 174 +++++ ...ctoryAsynctest_share_directory_exists.json | 131 ++++ ...y_async.test_create_directories_async.yaml | 82 -- ...reate_directories_fail_on_exist_async.yaml | 123 --- ...reate_directories_with_metadata_async.yaml | 128 ---- ...t_create_directory_set_smb_properties.yaml | 109 --- ...c.test_create_file_in_directory_async.yaml | 226 ------ ...sync.test_create_subdirectories_async.yaml | 130 ---- ...te_subdirectories_with_metadata_async.yaml | 176 ----- ...e_directory_with_existing_share_async.yaml | 145 ---- ...ory_with_non_existing_directory_async.yaml | 67 -- ...c.test_delete_file_in_directory_async.yaml | 237 ------ ...sync.test_delete_subdirectories_async.yaml | 193 ----- ...ory_async.test_directory_exists_async.yaml | 122 --- ..._directory_exists_with_snapshot_async.yaml | 185 ----- ...async.test_directory_not_exists_async.yaml | 67 -- ...ectory_not_exists_with_snapshot_async.yaml | 148 ---- ...est_directory_parent_not_exists_async.yaml | 67 -- ...irectory_metadata_with_snapshot_async.yaml | 198 ----- ...c.test_get_directory_properties_async.yaml | 122 --- ...ry_properties_server_encryption_async.yaml | 122 --- ...ies_with_non_existing_directory_async.yaml | 67 -- ...ectory_properties_with_snapshot_async.yaml | 198 ----- ...test_get_set_directory_metadata_async.yaml | 161 ---- ...nested_subdirectories_and_files_async.yaml | 544 -------------- ...t_list_subdirectories_and_files_async.yaml | 545 -------------- ...and_files_include_extended_info_async.yaml | 146 ---- ...es_and_files_include_other_data_async.yaml | 488 ------------ ...rectories_and_files_with_prefix_async.yaml | 545 -------------- ...ctories_and_files_with_snapshot_async.yaml | 578 -------------- ...directory_async.test_rename_directory.yaml | 144 ---- ...sync.test_rename_directory_dest_lease.yaml | 309 -------- ..._rename_directory_different_directory.yaml | 230 ------ ...test_rename_directory_file_permission.yaml | 176 ----- ...test_rename_directory_ignore_readonly.yaml | 238 ------ ..._rename_directory_preserve_permission.yaml | 181 ----- ....test_rename_directory_smb_properties.yaml | 152 ---- ..._properties_with_empty_smb_properties.yaml | 210 ------ ...rties_with_empty_smb_properties_async.yaml | 281 ------- ...y_properties_with_file_permission_key.yaml | 187 ----- ...erties_with_file_permission_key_async.yaml | 281 ------- ...ync.test_share_directory_exists_async.yaml | 135 ---- .../tests/test_directory.py | 487 +++++++----- .../tests/test_directory_async.py | 544 ++++++++------ 159 files changed, 14478 insertions(+), 19067 deletions(-) create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_fail_on_exist.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_with_metadata.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directory_set_smb_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_file_in_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories_with_metadata.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_existing_share.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_non_existing_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_file_in_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_subdirectories.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_parent_not_exists.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_metadata_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_server_encryption.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_non_existing_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_set_directory_metadata.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_nested_subdirectories_and_files.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_extended_info.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_other_data.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_prefix.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_dest_lease.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_different_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_file_permission.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_ignore_readonly.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_preserve_permission.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_share_sas.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_smb_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_empty_smb_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_file_permission_key.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_share_directory_exists.json delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_fail_on_exist.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_with_metadata.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directory_set_smb_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_file_in_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories_with_metadata.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_existing_share.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_non_existing_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_file_in_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_subdirectories.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists_with_snapshot.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists_with_snapshot.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_parent_not_exists.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_metadata_with_snapshot.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_server_encryption.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_non_existing_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_snapshot.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_set_directory_metadata.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_nested_subdirectories_and_files.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_extended_info.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_other_data.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_prefix.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_snapshot.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_dest_lease.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_different_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_file_permission.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_ignore_readonly.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_preserve_permission.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_smb_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_empty_smb_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_file_permission_key.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_share_directory_exists.yaml create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_fail_on_exist.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_with_metadata.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directory_set_smb_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_file_in_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories_with_metadata.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_existing_share.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_non_existing_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_file_in_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_subdirectories.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_parent_not_exists.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_metadata_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_server_encryption.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_non_existing_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_set_directory_metadata.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_nested_subdirectories_and_files.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_extended_info.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_other_data.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_prefix.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_snapshot.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_dest_lease.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_different_directory.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_file_permission.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_ignore_readonly.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_preserve_permission.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_share_sas.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_smb_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_empty_smb_properties.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_file_permission_key.json create mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_share_directory_exists.json delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_fail_on_exist_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_with_metadata_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directory_set_smb_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_file_in_directory_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_with_metadata_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_existing_share_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_non_existing_directory_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_file_in_directory_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_subdirectories_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_with_snapshot_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_with_snapshot_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_parent_not_exists_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_metadata_with_snapshot_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_server_encryption_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_non_existing_directory_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_snapshot_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_set_directory_metadata_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_nested_subdirectories_and_files_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_extended_info_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_other_data_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_prefix_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_snapshot_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_dest_lease.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_different_directory.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_file_permission.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_ignore_readonly.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_preserve_permission.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_smb_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key_async.yaml delete mode 100644 sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_share_directory_exists_async.yaml diff --git a/sdk/storage/azure-storage-file-share/tests/conftest.py b/sdk/storage/azure-storage-file-share/tests/conftest.py index d1e8f4dcc6d6..7cfaf858a389 100644 --- a/sdk/storage/azure-storage-file-share/tests/conftest.py +++ b/sdk/storage/azure-storage-file-share/tests/conftest.py @@ -1,33 +1,32 @@ -# -------------------------------------------------------------------------- -# +# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for +# license information. # -------------------------------------------------------------------------- -import sys -# fixture needs to be visible from conftest +import os +import platform + +import pytest + +from devtools_testutils import ( + add_general_regex_sanitizer, + add_header_regex_sanitizer, + add_oauth_response_sanitizer, + add_uri_string_sanitizer, + test_proxy +) + +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + tenant_id = os.environ.get("STORAGE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000") + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_oauth_response_sanitizer() + + add_header_regex_sanitizer(key="x-ms-encryption-key", value="Sanitized") -# Ignore async tests for Python < 3.5 -collect_ignore_glob = [] -if sys.version_info < (3, 5): - collect_ignore_glob.append("*_async.py") + add_uri_string_sanitizer(target=".preprod.", value=".") diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories.json new file mode 100644 index 000000000000..ae63df672af7 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories.json @@ -0,0 +1,71 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharefb732c36?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:53 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:51 GMT", + "ETag": "\u00220x8DAA197BE0C6EF8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:52 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharefb732c36/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:54 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:51 GMT", + "ETag": "\u00220x8DAA197BE23A58F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:52 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:52.8487311Z", + "x-ms-file-creation-time": "2022-09-28T21:23:52.8487311Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:52.8487311Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_fail_on_exist.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_fail_on_exist.json new file mode 100644 index 000000000000..80f38587a408 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_fail_on_exist.json @@ -0,0 +1,106 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9c5331f9?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:55 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:52 GMT", + "ETag": "\u00220x8DAA197BEBC450B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:53 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9c5331f9/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:55 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:53 GMT", + "ETag": "\u00220x8DAA197BECDFD36\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:53 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:53.9650870Z", + "x-ms-file-creation-time": "2022-09-28T21:23:53.9650870Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:53.9650870Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9c5331f9/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:55 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 409, + "ResponseHeaders": { + "Content-Length": "228", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:23:53 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceAlreadyExists", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceAlreadyExists\u003C/Code\u003E\u003CMessage\u003EThe specified resource already exists.\n", + "RequestId:f6f2ae1a-701a-0051-4e80-d3d02c000000\n", + "Time:2022-09-28T21:23:54.0678394Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_with_metadata.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_with_metadata.json new file mode 100644 index 000000000000..c2e7b02b91a4 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directories_with_metadata.json @@ -0,0 +1,109 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9d4b31f1?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:54 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:52 GMT", + "ETag": "\u00220x8DAA197BE6223EC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:53 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9d4b31f1/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:54 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:52 GMT", + "ETag": "\u00220x8DAA197BE7478C3\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:53 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:53.3784259Z", + "x-ms-file-creation-time": "2022-09-28T21:23:53.3784259Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:53.3784259Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9d4b31f1/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:54 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:52 GMT", + "ETag": "\u00220x8DAA197BE7478C3\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:53 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:53.3784259Z", + "x-ms-file-creation-time": "2022-09-28T21:23:53.3784259Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:53.3784259Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directory_set_smb_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directory_set_smb_properties.json new file mode 100644 index 000000000000..23b1db7cfa09 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_directory_set_smb_properties.json @@ -0,0 +1,106 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b563366?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:55 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:53 GMT", + "ETag": "\u00220x8DAA197BF18AFCD\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:54 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b563366/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:55 GMT", + "x-ms-file-attributes": "ReadOnly|Directory", + "x-ms-file-change-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-last-write-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:53 GMT", + "ETag": "\u00220x8DA027EC4121240\u0022", + "Last-Modified": "Thu, 10 Mar 2022 10:14:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b563366/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:56 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:53 GMT", + "ETag": "\u00220x8DA027EC4121240\u0022", + "Last-Modified": "Thu, 10 Mar 2022 10:14:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_file_in_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_file_in_directory.json new file mode 100644 index 000000000000..3c3e4272543c --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_file_in_directory.json @@ -0,0 +1,186 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare107c2ea3?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:55 GMT", + "ETag": "\u00220x8DAA197C02B5854\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare107c2ea3/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:55 GMT", + "ETag": "\u00220x8DAA197C03E46AE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:56.3786926Z", + "x-ms-file-creation-time": "2022-09-28T21:23:56.3786926Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:56.3786926Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare107c2ea3/dir1/file107c2ea3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "8192", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:55 GMT", + "ETag": "\u00220x8DAA197C04D86AE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:23:56.4786350Z", + "x-ms-file-creation-time": "2022-09-28T21:23:56.4786350Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:56.4786350Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare107c2ea3/dir1/file107c2ea3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "8192", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-range": "bytes=0-8191", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2Nzg=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "L8MEum9/C3zMQV5vDJbgTA==", + "Date": "Wed, 28 Sep 2022 21:23:55 GMT", + "ETag": "\u00220x8DAA197C05FAC6F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:23:56.5975663Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare107c2ea3/dir1/file107c2ea3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:58 GMT", + "x-ms-range": "bytes=0-33554431", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 206, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "8192", + "Content-Range": "bytes 0-8191/8192", + "Content-Type": "application/octet-stream", + "Date": "Wed, 28 Sep 2022 21:23:55 GMT", + "ETag": "\u00220x8DAA197C05FAC6F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:23:56.5975663Z", + "x-ms-file-creation-time": "2022-09-28T21:23:56.4786350Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:56.5975663Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-type": "File", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2Nzg=" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories.json new file mode 100644 index 000000000000..9860a66733ce --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories.json @@ -0,0 +1,110 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85ff2d80?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:56 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BF6E64B9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85ff2d80/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:56 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BF7F319E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:55.1264158Z", + "x-ms-file-creation-time": "2022-09-28T21:23:55.1264158Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:55.1264158Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85ff2d80/dir1%2Fdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:56 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BF8E4A95\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:55.2253589Z", + "x-ms-file-creation-time": "2022-09-28T21:23:55.2253589Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:55.2253589Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories_with_metadata.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories_with_metadata.json new file mode 100644 index 000000000000..fc716b840088 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_create_subdirectories_with_metadata.json @@ -0,0 +1,148 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare39e3333b?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:56 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BFBEC33C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare39e3333b/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BFD004CF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:55.6561103Z", + "x-ms-file-creation-time": "2022-09-28T21:23:55.6561103Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:55.6561103Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare39e3333b/dir1%2Fdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BFE11949\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:55.7680457Z", + "x-ms-file-creation-time": "2022-09-28T21:23:55.7680457Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:55.7680457Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare39e3333b/dir1%2Fdir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:57 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:54 GMT", + "ETag": "\u00220x8DAA197BFE11949\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:55 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:55.7680457Z", + "x-ms-file-creation-time": "2022-09-28T21:23:55.7680457Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:55.7680457Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_existing_share.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_existing_share.json new file mode 100644 index 000000000000..c495a2d7516e --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_existing_share.json @@ -0,0 +1,126 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare700733c4?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "ETag": "\u00220x8DAA197CCD89C7D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:17 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare700733c4/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:19 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "ETag": "\u00220x8DAA197CCEBC6F8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:17 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:17.6484088Z", + "x-ms-file-creation-time": "2022-09-28T21:24:17.6484088Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:17.6484088Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare700733c4/dir1?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:19 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare700733c4/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:19 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2aeff-701a-0051-7080-d3d02c000000\n", + "Time:2022-09-28T21:24:17.8716087Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_non_existing_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_non_existing_directory.json new file mode 100644 index 000000000000..64602d4f6c71 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_directory_with_non_existing_directory.json @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare24ab3730?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:19 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:17 GMT", + "ETag": "\u00220x8DAA197CD3729C6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:18 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare24ab3730/dir1?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:19 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:17 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2af02-701a-0051-7280-d3d02c000000\n", + "Time:2022-09-28T21:24:18.2493985Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_file_in_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_file_in_directory.json new file mode 100644 index 000000000000..ff1d04db827e --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_file_in_directory.json @@ -0,0 +1,195 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare10502ea2?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:58 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:56 GMT", + "ETag": "\u00220x8DAA197C0A6914F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare10502ea2/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:58 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:56 GMT", + "ETag": "\u00220x8DAA197C0B7D186\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:57.1752326Z", + "x-ms-file-creation-time": "2022-09-28T21:23:57.1752326Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:57.1752326Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare10502ea2/dir1/file10502ea2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "11", + "x-ms-date": "Wed, 28 Sep 2022 21:23:58 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:56 GMT", + "ETag": "\u00220x8DAA197C0CDA03A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:23:57.3181498Z", + "x-ms-file-creation-time": "2022-09-28T21:23:57.3181498Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:57.3181498Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare10502ea2/dir1/file10502ea2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:58 GMT", + "x-ms-range": "bytes=0-10", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 28 Sep 2022 21:23:56 GMT", + "ETag": "\u00220x8DAA197C0E1255B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:23:57.4460763Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare10502ea2/dir1/file10502ea2", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:58 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare10502ea2/dir1/file10502ea2", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:59 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Wed, 28 Sep 2022 21:23:56 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_subdirectories.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_subdirectories.json new file mode 100644 index 000000000000..232d1cb4e990 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_delete_subdirectories.json @@ -0,0 +1,165 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85d62d7f?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:00 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:57 GMT", + "ETag": "\u00220x8DAA197C1B62CFD\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85d62d7f/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:00 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:58 GMT", + "ETag": "\u00220x8DAA197C1C76BAB\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:58.9552043Z", + "x-ms-file-creation-time": "2022-09-28T21:23:58.9552043Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:58.9552043Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85d62d7f/dir1%2Fdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:00 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:58 GMT", + "ETag": "\u00220x8DAA197C1D6F9C4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:59.0571460Z", + "x-ms-file-creation-time": "2022-09-28T21:23:59.0571460Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:23:59.0571460Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85d62d7f/dir1%2Fdir2?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:00 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85d62d7f/dir1%2Fdir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:00 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2ae43-701a-0051-6c80-d3d02c000000\n", + "Time:2022-09-28T21:23:59.2559596Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists.json new file mode 100644 index 000000000000..b62b06602fb4 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea50c2b9a?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:01 GMT", + "ETag": "\u00220x8DAA197C4093E41\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea50c2b9a/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:01 GMT", + "ETag": "\u00220x8DAA197C41DFB7D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:02.8779389Z", + "x-ms-file-creation-time": "2022-09-28T21:24:02.8779389Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:02.8779389Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea50c2b9a/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:02 GMT", + "ETag": "\u00220x8DAA197C41DFB7D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:02.8779389Z", + "x-ms-file-creation-time": "2022-09-28T21:24:02.8779389Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:02.8779389Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists_with_snapshot.json new file mode 100644 index 000000000000..8f828a903ede --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_exists_with_snapshot.json @@ -0,0 +1,158 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40473184?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:03 GMT", + "ETag": "\u00220x8DAA197C52D9778\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40473184/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:03 GMT", + "ETag": "\u00220x8DAA197C53EF83B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:04.7718459Z", + "x-ms-file-creation-time": "2022-09-28T21:24:04.7718459Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:04.7718459Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40473184?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:03 GMT", + "ETag": "\u00220x8DAA197C52D9778\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:24:04.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40473184/dir1?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40473184/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:24:04.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:04 GMT", + "ETag": "\u00220x8DAA197C53EF83B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:04.7718459Z", + "x-ms-file-creation-time": "2022-09-28T21:24:04.7718459Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:04.7718459Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists.json new file mode 100644 index 000000000000..3c2f9d470237 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b0b2d4a?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:02 GMT", + "ETag": "\u00220x8DAA197C46867B7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b0b2d4a/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2ae73-701a-0051-0280-d3d02c000000\n", + "Time:2022-09-28T21:24:03.4686192Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists_with_snapshot.json new file mode 100644 index 000000000000..b091952be19f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_not_exists_with_snapshot.json @@ -0,0 +1,129 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharede63334?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:04 GMT", + "ETag": "\u00220x8DAA197C5A5006B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:05 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharede63334?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:04 GMT", + "ETag": "\u00220x8DAA197C5A5006B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:05 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:24:05.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharede63334/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:07 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:04 GMT", + "ETag": "\u00220x8DAA197C5C99781\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:05 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:05.6803201Z", + "x-ms-file-creation-time": "2022-09-28T21:24:05.6803201Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:05.6803201Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharede63334/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:24:05.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2ae86-701a-0051-0d80-d3d02c000000\n", + "Time:2022-09-28T21:24:05.7773354Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_parent_not_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_parent_not_exists.json new file mode 100644 index 000000000000..1ebda6ade91c --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_directory_parent_not_exists.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea8c33033?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:32:57 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:32:56 GMT", + "ETag": "\u00220x8DAA199027AC07D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:32:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea8c33033/missing1%2Fmissing2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:32:58 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "224", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:32:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ParentNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EParentNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified parent path does not exist.\n", + "RequestId:e98fce46-e01a-0031-3981-d3acb3000000\n", + "Time:2022-09-28T21:32:57.1433006Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_metadata_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_metadata_with_snapshot.json new file mode 100644 index 000000000000..0f6f612041e0 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_metadata_with_snapshot.json @@ -0,0 +1,167 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6f4a33c4?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:02 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:00 GMT", + "ETag": "\u00220x8DAA197C330B052\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6f4a33c4/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:02 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:00 GMT", + "ETag": "\u00220x8DAA197C34631F4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:01.4637556Z", + "x-ms-file-creation-time": "2022-09-28T21:24:01.4637556Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:01.4637556Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6f4a33c4?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:02 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:00 GMT", + "ETag": "\u00220x8DAA197C330B052\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:24:01.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6f4a33c4/dir1?restype=directory\u0026comp=metadata", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:03 GMT", + "x-ms-meta-test100": "foo100", + "x-ms-meta-test200": "bar200", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:00 GMT", + "ETag": "\u00220x8DAA197C36833E1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6f4a33c4/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:24:01.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:03 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:00 GMT", + "ETag": "\u00220x8DAA197C34631F4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:01.4637556Z", + "x-ms-file-creation-time": "2022-09-28T21:24:01.4637556Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:01.4637556Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties.json new file mode 100644 index 000000000000..fc203f225fea --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare16102ee6?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:01 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:58 GMT", + "ETag": "\u00220x8DAA197C240F422\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare16102ee6/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:01 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:58 GMT", + "ETag": "\u00220x8DAA197C2539162\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:59.8736738Z", + "x-ms-file-creation-time": "2022-09-28T21:23:59.8736738Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:59.8736738Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare16102ee6/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:01 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:59 GMT", + "ETag": "\u00220x8DAA197C2539162\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:59.8736738Z", + "x-ms-file-creation-time": "2022-09-28T21:23:59.8736738Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:59.8736738Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_server_encryption.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_server_encryption.json new file mode 100644 index 000000000000..f197da965001 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_server_encryption.json @@ -0,0 +1,105 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareba933686?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:19 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:17 GMT", + "ETag": "\u00220x8DAA197CD74ED4B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:18 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareba933686/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:20 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:17 GMT", + "ETag": "\u00220x8DAA197CD872CAE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:18 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:18.6668206Z", + "x-ms-file-creation-time": "2022-09-28T21:24:18.6668206Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:18.6668206Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareba933686/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:20 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:17 GMT", + "ETag": "\u00220x8DAA197CD872CAE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:18 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:18.6668206Z", + "x-ms-file-creation-time": "2022-09-28T21:24:18.6668206Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:18.6668206Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_non_existing_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_non_existing_directory.json new file mode 100644 index 000000000000..396e6bf6aaed --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_non_existing_directory.json @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef9e03aa9?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:03 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:01 GMT", + "ETag": "\u00220x8DAA197C3BA1810\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef9e03aa9/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:03 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2ae6c-701a-0051-7d80-d3d02c000000\n", + "Time:2022-09-28T21:24:02.3272523Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_snapshot.json new file mode 100644 index 000000000000..0694d097aaa5 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_directory_properties_with_snapshot.json @@ -0,0 +1,167 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedf6434d0?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:01 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:59 GMT", + "ETag": "\u00220x8DAA197C2A5E92C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:00 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedf6434d0/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:01 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:59 GMT", + "ETag": "\u00220x8DAA197C2B79B9A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:00 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:00.5292954Z", + "x-ms-file-creation-time": "2022-09-28T21:24:00.5292954Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:00.5292954Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedf6434d0?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:02 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:59 GMT", + "ETag": "\u00220x8DAA197C2A5E92C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:00 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:24:00.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedf6434d0/dir1?restype=directory\u0026comp=metadata", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:02 GMT", + "x-ms-meta-test100": "foo100", + "x-ms-meta-test200": "bar200", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:59 GMT", + "ETag": "\u00220x8DAA197C2DCF864\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:00 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedf6434d0/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:24:00.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:02 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:59 GMT", + "ETag": "\u00220x8DAA197C2B79B9A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:00 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:00.5292954Z", + "x-ms-file-creation-time": "2022-09-28T21:24:00.5292954Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:00.5292954Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_set_directory_metadata.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_set_directory_metadata.json new file mode 100644 index 000000000000..21366f1d7a89 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_get_set_directory_metadata.json @@ -0,0 +1,137 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73f32f85?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C605D751\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73f32f85/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:07 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C619596A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:06.2030186Z", + "x-ms-file-creation-time": "2022-09-28T21:24:06.2030186Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:06.2030186Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73f32f85/dir1?restype=directory\u0026comp=metadata", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:07 GMT", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "43", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C62ABBFC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73f32f85/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C62ABBFC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:06.3169532Z", + "x-ms-file-creation-time": "2022-09-28T21:24:06.2030186Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:06.2030186Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "43", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_nested_subdirectories_and_files.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_nested_subdirectories_and_files.json new file mode 100644 index 000000000000..a30d75132e4b --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_nested_subdirectories_and_files.json @@ -0,0 +1,435 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:17 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "ETag": "\u00220x8DAA197CBE362EC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:15 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:17 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CBF55664\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:16.0333412Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.0333412Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.0333412Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:17 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC04E479\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:16.1352825Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.1352825Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.1352825Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1%2Fsubdir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:17 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC175858\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:16.2562136Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.2562136Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.2562136Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1%2Fsubdir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:17 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC262332\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:16.3531570Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.3531570Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.3531570Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:17 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC39332D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:16.4780845Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.4780845Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.4780845Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC53E330\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:16.6529840Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1/subdir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC687991\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:16.7879057Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.7879057Z", + "x-ms-file-id": "12682206919419494400", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.7879057Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1/subdir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:24:15 GMT", + "ETag": "\u00220x8DAA197CC7855B8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:16.8918456Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1/subdir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "ETag": "\u00220x8DAA197CC88A6FF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:16.9987839Z", + "x-ms-file-creation-time": "2022-09-28T21:24:16.9987839Z", + "x-ms-file-id": "17293892937846882304", + "x-ms-file-last-write-time": "2022-09-28T21:24:16.9987839Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1/subdir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "ETag": "\u00220x8DAA197CC999472\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:17 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:17.1097202Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare70a033ae/dir1?restype=directory\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:18 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:16 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare70a033ae\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E14988049928633188352\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files.json new file mode 100644 index 000000000000..36db18a63cb7 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files.json @@ -0,0 +1,435 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C7570686\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C76752E7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:08.3917543Z", + "x-ms-file-creation-time": "2022-09-28T21:24:08.3917543Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:08.3917543Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C7761DC8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:08.4886984Z", + "x-ms-file-creation-time": "2022-09-28T21:24:08.4886984Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:08.4886984Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C784E8A9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:08.5856425Z", + "x-ms-file-creation-time": "2022-09-28T21:24:08.5856425Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:08.5856425Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C7938C7C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:08.6815868Z", + "x-ms-file-creation-time": "2022-09-28T21:24:08.6815868Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:24:08.6815868Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C7A786B8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:08.8125112Z", + "x-ms-file-creation-time": "2022-09-28T21:24:08.8125112Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:24:08.8125112Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "ETag": "\u00220x8DAA197C7C48051\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:09.0024017Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "ETag": "\u00220x8DAA197C7D4D193\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:09.1093395Z", + "x-ms-file-creation-time": "2022-09-28T21:24:09.1093395Z", + "x-ms-file-id": "12682206919419494400", + "x-ms-file-last-write-time": "2022-09-28T21:24:09.1093395Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "ETag": "\u00220x8DAA197C7E9B61A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:09.2462618Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "ETag": "\u00220x8DAA197C7F8F610\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:09.3462032Z", + "x-ms-file-creation-time": "2022-09-28T21:24:09.3462032Z", + "x-ms-file-id": "17293892937846882304", + "x-ms-file-last-write-time": "2022-09-28T21:24:09.3462032Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:10 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "ETag": "\u00220x8DAA197C80DDA88\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:09.4831240Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9a230cc/dir1?restype=directory\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare9a230cc\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E14988049928633188352\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile2\u003C/Name\u003E\u003CFileId\u003E12682206919419494400\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile3\u003C/Name\u003E\u003CFileId\u003E17293892937846882304\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E16140971433240035328\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir3\u003C/Name\u003E\u003CFileId\u003E10376363910205800448\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_extended_info.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_extended_info.json new file mode 100644 index 000000000000..21f6d6390896 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_extended_info.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb47839ca?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:13 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:10 GMT", + "ETag": "\u00220x8DAA197C978FC91\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb47839ca/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:13 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197C98A7E42\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:11.9776834Z", + "x-ms-file-creation-time": "2022-09-28T21:24:11.9776834Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:11.9776834Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb47839ca/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:13 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197C99B6BAF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:12.0886191Z", + "x-ms-file-creation-time": "2022-09-28T21:24:12.0886191Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:12.0886191Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb47839ca/dir1?restype=directory\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:13 GMT", + "x-ms-file-extended-info": "true", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshareb47839ca\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_other_data.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_other_data.json new file mode 100644 index 000000000000..115769a9afc8 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_include_other_data.json @@ -0,0 +1,460 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:08 GMT", + "ETag": "\u00220x8DAA197C852CEDF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C865B18B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:10.0587915Z", + "x-ms-file-creation-time": "2022-09-28T21:24:10.0587915Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:10.0587915Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C87566AB\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:10.1617323Z", + "x-ms-file-creation-time": "2022-09-28T21:24:10.1617323Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:10.1617323Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C8845891\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:10.2596753Z", + "x-ms-file-creation-time": "2022-09-28T21:24:10.2596753Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:10.2596753Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C8967E56\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:10.3786070Z", + "x-ms-file-creation-time": "2022-09-28T21:24:10.3786070Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:24:10.3786070Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C8ABD7EC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:10.5185260Z", + "x-ms-file-creation-time": "2022-09-28T21:24:10.5185260Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:24:10.5185260Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C8C72415\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:10.6974229Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C8D66413\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:10.7973651Z", + "x-ms-file-creation-time": "2022-09-28T21:24:10.7973651Z", + "x-ms-file-id": "12682206919419494400", + "x-ms-file-last-write-time": "2022-09-28T21:24:10.7973651Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:24:09 GMT", + "ETag": "\u00220x8DAA197C8EBE4B2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:10.9382834Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:10 GMT", + "ETag": "\u00220x8DAA197C8FD6E4A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:11.0532170Z", + "x-ms-file-creation-time": "2022-09-28T21:24:11.0532170Z", + "x-ms-file-id": "17293892937846882304", + "x-ms-file-last-write-time": "2022-09-28T21:24:11.0532170Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:24:10 GMT", + "ETag": "\u00220x8DAA197C90F1EEE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:11.1691502Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889/dir1?restype=directory\u0026comp=list\u0026include=timestamps,Etag,Attributes,PermissionKey", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare5b23889\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E14988049928633188352\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003CCreationTime\u003E2022-09-28T21:24:10.5185260Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:24:10.5185260Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:24:10.6974229Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:24:10.6974229Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:24:10 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA197C8C72415\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EArchive\u003C/Attributes\u003E\u003CPermissionKey\u003E3254952746172754359*9622787259914961209\u003C/PermissionKey\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile2\u003C/Name\u003E\u003CFileId\u003E12682206919419494400\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003CCreationTime\u003E2022-09-28T21:24:10.7973651Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:24:10.7973651Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:24:10.9382834Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:24:10.9382834Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:24:10 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA197C8EBE4B2\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EArchive\u003C/Attributes\u003E\u003CPermissionKey\u003E3254952746172754359*9622787259914961209\u003C/PermissionKey\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile3\u003C/Name\u003E\u003CFileId\u003E17293892937846882304\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003CCreationTime\u003E2022-09-28T21:24:11.0532170Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:24:11.0532170Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:24:11.1691502Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:24:11.1691502Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:24:11 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA197C90F1EEE\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EArchive\u003C/Attributes\u003E\u003CPermissionKey\u003E3254952746172754359*9622787259914961209\u003C/PermissionKey\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties\u003E\u003CCreationTime\u003E2022-09-28T21:24:10.1617323Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:24:10.1617323Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:24:10.1617323Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:24:10.1617323Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:24:10 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA197C87566AB\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EDirectory\u003C/Attributes\u003E\u003CPermissionKey\u003E17100207456270243504*9622787259914961209\u003C/PermissionKey\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E16140971433240035328\u003C/FileId\u003E\u003CProperties\u003E\u003CCreationTime\u003E2022-09-28T21:24:10.2596753Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:24:10.2596753Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:24:10.2596753Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:24:10.2596753Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:24:10 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA197C8845891\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EDirectory\u003C/Attributes\u003E\u003CPermissionKey\u003E17100207456270243504*9622787259914961209\u003C/PermissionKey\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir3\u003C/Name\u003E\u003CFileId\u003E10376363910205800448\u003C/FileId\u003E\u003CProperties\u003E\u003CCreationTime\u003E2022-09-28T21:24:10.3786070Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:24:10.3786070Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:24:10.3786070Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:24:10.3786070Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:24:10 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA197C8967E56\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EDirectory\u003C/Attributes\u003E\u003CPermissionKey\u003E17100207456270243504*9622787259914961209\u003C/PermissionKey\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare5b23889?restype=share", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:12 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_prefix.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_prefix.json new file mode 100644 index 000000000000..9567594b791d --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_prefix.json @@ -0,0 +1,435 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:13 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197C9E17383\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197C9F27F7D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:12.6592893Z", + "x-ms-file-creation-time": "2022-09-28T21:24:12.6592893Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:12.6592893Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197CA0345E2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:12.7692258Z", + "x-ms-file-creation-time": "2022-09-28T21:24:12.7692258Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:12.7692258Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197CA1210C4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:12.8661700Z", + "x-ms-file-creation-time": "2022-09-28T21:24:12.8661700Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:12.8661700Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:11 GMT", + "ETag": "\u00220x8DAA197CA22B022\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:12.9751074Z", + "x-ms-file-creation-time": "2022-09-28T21:24:12.9751074Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:24:12.9751074Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "ETag": "\u00220x8DAA197CA33C49B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:13 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:13.0870427Z", + "x-ms-file-creation-time": "2022-09-28T21:24:13.0870427Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:24:13.0870427Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "ETag": "\u00220x8DAA197CA513350\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:13 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:13.2799312Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "ETag": "\u00220x8DAA197CA63F53C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:13 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:13.4028604Z", + "x-ms-file-creation-time": "2022-09-28T21:24:13.4028604Z", + "x-ms-file-id": "12682206919419494400", + "x-ms-file-last-write-time": "2022-09-28T21:24:13.4028604Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:14 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "ETag": "\u00220x8DAA197CA79EAF9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:13 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:13.5467769Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "ETag": "\u00220x8DAA197CA8D220A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:13 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:13.6727050Z", + "x-ms-file-creation-time": "2022-09-28T21:24:13.6727050Z", + "x-ms-file-id": "17293892937846882304", + "x-ms-file-last-write-time": "2022-09-28T21:24:13.6727050Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "ETag": "\u00220x8DAA197CA9ED2A4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:13 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:13.7886372Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare7e6e35d4/dir1?restype=directory\u0026comp=list\u0026prefix=sub", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare7e6e35d4\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CPrefix\u003Esub\u003C/Prefix\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E16140971433240035328\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir3\u003C/Name\u003E\u003CFileId\u003E10376363910205800448\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_snapshot.json new file mode 100644 index 000000000000..32451f1e920b --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_list_subdirectories_and_files_with_snapshot.json @@ -0,0 +1,463 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CAE3075E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CAF6A9AF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:14.3643055Z", + "x-ms-file-creation-time": "2022-09-28T21:24:14.3643055Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:14.3643055Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CB05C2A0\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:14.4632480Z", + "x-ms-file-creation-time": "2022-09-28T21:24:14.4632480Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:14.4632480Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:15 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CB16D71C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:14.5751836Z", + "x-ms-file-creation-time": "2022-09-28T21:24:14.5751836Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:14.5751836Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CB2AD157\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:14.7061079Z", + "x-ms-file-creation-time": "2022-09-28T21:24:14.7061079Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:24:14.7061079Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CB3AFB90\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:14.8120464Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:13 GMT", + "ETag": "\u00220x8DAA197CAE3075E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:24:14.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "ETag": "\u00220x8DAA197CB5B7713\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:15 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:15.0249235Z", + "x-ms-file-creation-time": "2022-09-28T21:24:15.0249235Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:24:15.0249235Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "ETag": "\u00220x8DAA197CB6C166E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:15 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:15.1338606Z", + "x-ms-file-creation-time": "2022-09-28T21:24:15.1338606Z", + "x-ms-file-id": "12682206919419494400", + "x-ms-file-last-write-time": "2022-09-28T21:24:15.1338606Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "ETag": "\u00220x8DAA197CB7C8EC1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:15 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:15.2417985Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "ETag": "\u00220x8DAA197CB8BCEBD\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:15 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:24:15.3417405Z", + "x-ms-file-creation-time": "2022-09-28T21:24:15.3417405Z", + "x-ms-file-id": "17293892937846882304", + "x-ms-file-last-write-time": "2022-09-28T21:24:15.3417405Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "ETag": "\u00220x8DAA197CB9C6E1C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:15 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:24:15.4506780Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareed8a36b6/dir1?restype=directory\u0026comp=list\u0026sharesnapshot=2022-09-28T21:24:14.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:16 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:24:14 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshareed8a36b6\u0022 ShareSnapshot=\u00222022-09-28T21:24:14.0000000Z\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E10376363910205800448\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E16140971433240035328\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory.json new file mode 100644 index 000000000000..8cdc1255c3d5 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory.json @@ -0,0 +1,141 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea29f2b72?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:20 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:18 GMT", + "ETag": "\u00220x8DAA197CDD3EFAE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:19 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea29f2b72/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:20 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:18 GMT", + "ETag": "\u00220x8DAA197CDE62E93\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:19 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-creation-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea29f2b72/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:20 GMT", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utsharea29f2b72/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:18 GMT", + "ETag": "\u00220x8DAA197CE028C05\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:19 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:19.4753541Z", + "x-ms-file-creation-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea29f2b72/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:20 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:18 GMT", + "ETag": "\u00220x8DAA197CE028C05\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:19 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:19.4753541Z", + "x-ms-file-creation-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:19.2894611Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_dest_lease.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_dest_lease.json new file mode 100644 index 000000000000..2025d31bc556 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_dest_lease.json @@ -0,0 +1,287 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:25 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:35:23 GMT", + "ETag": "\u00220x8DAA1995A694A40\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:24 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:35:23 GMT", + "ETag": "\u00220x8DAA1995A80C4EF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:24 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-creation-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:35:24 GMT", + "ETag": "\u00220x8DAA1995A8FDDE6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:24 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:35:24.7792614Z", + "x-ms-file-creation-time": "2022-09-28T21:35:24.7792614Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:35:24.7792614Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir2/test", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "11", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:35:24 GMT", + "ETag": "\u00220x8DAA1995AA02F26\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:24 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:35:24.8861990Z", + "x-ms-file-creation-time": "2022-09-28T21:35:24.8861990Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:35:24.8861990Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir2/test?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-range": "bytes=0-10", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "SGVsbG8gV29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "sQqNsWTgdUEFt6mb5y4/5Q==", + "Date": "Wed, 28 Sep 2022 21:35:24 GMT", + "ETag": "\u00220x8DAA1995AB3DB4F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:35:25.0151247Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir2/test?comp=lease", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-lease-action": "acquire", + "x-ms-lease-duration": "-1", + "x-ms-proposed-lease-id": "00000000-1111-2222-3333-444444444444", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Date": "Wed, 28 Sep 2022 21:35:24 GMT", + "ETag": "\u00220x8DAA1995AB3DB4F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-lease-id": "00000000-1111-2222-3333-444444444444", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir2%2Ftest?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-destination-lease-id": "00000000-1111-2222-3333-444444444444", + "x-ms-file-rename-replace-if-exists": "true", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utsharea4022fea/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:35:24 GMT", + "ETag": "\u00220x8DAA1995AED595F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:35:25.3919071Z", + "x-ms-file-creation-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea4022fea/dir2%2Ftest?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:35:26 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:35:24 GMT", + "ETag": "\u00220x8DAA1995AED595F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:35:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:35:25.3919071Z", + "x-ms-file-creation-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:35:24.6803183Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_different_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_different_directory.json new file mode 100644 index 000000000000..7a17fee1889c --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_different_directory.json @@ -0,0 +1,219 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6df833bc?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:21 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:18 GMT", + "ETag": "\u00220x8DAA197CE45DB20\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:19 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6df833bc/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:21 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CE5644F1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.0240369Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.0240369Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.0240369Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6df833bc/dir1%2Fsub1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:21 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CE64E8CA\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6df833bc/dir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:21 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CE74C4ED\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.2239213Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.2239213Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.2239213Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6df833bc/dir2%2Fsub2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:21 GMT", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshare6df833bc/dir1%2Fsub1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CE838FD2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.3208658Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-parent-id": "16140971433240035328", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6df833bc/dir2%2Fsub2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:21 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CE838FD2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.3208658Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.1199818Z", + "x-ms-file-parent-id": "16140971433240035328", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_file_permission.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_file_permission.json new file mode 100644 index 000000000000..ad85f32d8dce --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_file_permission.json @@ -0,0 +1,171 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f223219?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CF4DFDB9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f223219?restype=share\u0026comp=filepermission", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": { + "permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-file-permission-key": "2471577523372201160*9622787259914961209", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f223219/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CF712812\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-creation-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f223219/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-file-permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshare9f223219/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CF810434\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:21.9819060Z", + "x-ms-file-creation-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "2471577523372201160*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f223219/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:21 GMT", + "ETag": "\u00220x8DAA197CF810434\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:21.9819060Z", + "x-ms-file-creation-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:21.8779666Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "2471577523372201160*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_ignore_readonly.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_ignore_readonly.json new file mode 100644 index 000000000000..0726811e328f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_ignore_readonly.json @@ -0,0 +1,223 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f123212?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:22 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CEC3ABC0\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f123212/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:22 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:19 GMT", + "ETag": "\u00220x8DAA197CED76FCB\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f123212/dir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:22 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CEE8F95F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:20 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:20.9854815Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.9854815Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.9854815Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f123212/dir2/test", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "1024", + "x-ms-date": "Wed, 28 Sep 2022 21:24:22 GMT", + "x-ms-file-attributes": "ReadOnly", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CEFA5BEC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Archive", + "x-ms-file-change-time": "2022-09-28T21:24:21.0994156Z", + "x-ms-file-creation-time": "2022-09-28T21:24:21.0994156Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:24:21.0994156Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f123212/dir2%2Ftest?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:22 GMT", + "x-ms-file-rename-ignore-readonly": "true", + "x-ms-file-rename-replace-if-exists": "true", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshare9f123212/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CF113BED\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:21.2493293Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9f123212/dir2%2Ftest?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:22 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:20 GMT", + "ETag": "\u00220x8DAA197CF113BED\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:21 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:21.2493293Z", + "x-ms-file-creation-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:20.8705483Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_preserve_permission.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_preserve_permission.json new file mode 100644 index 000000000000..71081426a250 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_preserve_permission.json @@ -0,0 +1,176 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare71ff33e5?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:21 GMT", + "ETag": "\u00220x8DAA197CFC8E897\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:22 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare71ff33e5/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:23 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:21 GMT", + "ETag": "\u00220x8DAA197CFE4C05A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:22 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-creation-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare71ff33e5/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:21 GMT", + "ETag": "\u00220x8DAA197CFE4C05A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:22 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-creation-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare71ff33e5/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-file-permission": "preserve", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshare71ff33e5/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:21 GMT", + "ETag": "\u00220x8DAA197D005D802\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:22 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:22.8524034Z", + "x-ms-file-creation-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare71ff33e5/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:21 GMT", + "ETag": "\u00220x8DAA197D005D802\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:22 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:22.8524034Z", + "x-ms-file-creation-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:22.6355290Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_share_sas.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_share_sas.json new file mode 100644 index 000000000000..1ef8f33ffebb --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_share_sas.json @@ -0,0 +1,141 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73ae2f8a?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:26 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:24 GMT", + "ETag": "\u00220x8DAA197D14FED14\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73ae2f8a/dir1?restype=directory\u0026se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:26 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:24 GMT", + "ETag": "\u00220x8DAA197D16CFB1F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-creation-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73ae2f8a/dir2?restype=directory\u0026comp=rename\u0026se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:26 GMT", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshare73ae2f8a/dir1?se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:24 GMT", + "ETag": "\u00220x8DAA197D17D9A7A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:25.3149818Z", + "x-ms-file-creation-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73ae2f8a/dir2?restype=directory\u0026se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:26 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:24 GMT", + "ETag": "\u00220x8DAA197D17D9A7A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:25 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:25.3149818Z", + "x-ms-file-creation-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:25.2060447Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_smb_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_smb_properties.json new file mode 100644 index 000000000000..9ca401842f42 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_rename_directory_smb_properties.json @@ -0,0 +1,145 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6dad31bf?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:22 GMT", + "ETag": "\u00220x8DAA197D0429B1E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:23 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6dad31bf/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:22 GMT", + "ETag": "\u00220x8DAA197D053C56D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:23 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:23.3631085Z", + "x-ms-file-creation-time": "2022-09-28T21:24:23.3631085Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:23.3631085Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6dad31bf/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-file-attributes": "ReadOnly|Directory", + "x-ms-file-change-time": "2022-03-07T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-01-26T10:09:30.5000000Z", + "x-ms-file-last-write-time": "2022-01-26T10:14:30.5000000Z", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshare6dad31bf/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:22 GMT", + "ETag": "\u00220x8DAA197D062904C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:23 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-07T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-01-26T10:09:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-01-26T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6dad31bf/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:24 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:22 GMT", + "ETag": "\u00220x8DAA197D062904C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:23 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-07T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-01-26T10:09:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-01-26T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_empty_smb_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_empty_smb_properties.json new file mode 100644 index 000000000000..c91d504e153f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_empty_smb_properties.json @@ -0,0 +1,178 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare870939e8?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:08 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C66C04AE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare870939e8/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:08 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C67DB1B2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-creation-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare870939e8/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:08 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:05 GMT", + "ETag": "\u00220x8DAA197C67DB1B2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-creation-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare870939e8/dir1?restype=directory\u0026comp=properties", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:08 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "preserve", + "x-ms-file-last-write-time": "preserve", + "x-ms-file-permission": "preserve", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:06 GMT", + "ETag": "\u00220x8DAA197C69E0630\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:07.0725168Z", + "x-ms-file-creation-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare870939e8/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:08 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:06 GMT", + "ETag": "\u00220x8DAA197C69E0630\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:07.0725168Z", + "x-ms-file-creation-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:06.8606386Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_file_permission_key.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_file_permission_key.json new file mode 100644 index 000000000000..77cf1d41c072 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_set_directory_properties_with_file_permission_key.json @@ -0,0 +1,179 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4981395c?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:08 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:06 GMT", + "ETag": "\u00220x8DAA197C6E6A179\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4981395c/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:06 GMT", + "ETag": "\u00220x8DAA197C6F826C9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:07.6631753Z", + "x-ms-file-creation-time": "2022-09-28T21:24:07.6631753Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:07.6631753Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4981395c/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:06 GMT", + "ETag": "\u00220x8DAA197C6F826C9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:24:07.6631753Z", + "x-ms-file-creation-time": "2022-09-28T21:24:07.6631753Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:24:07.6631753Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4981395c/dir1?restype=directory\u0026comp=properties", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-file-attributes": "None", + "x-ms-file-change-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-creation-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-last-write-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:06 GMT", + "ETag": "\u00220x8DAA197C716F4D7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-creation-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "4688466746564951936*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4981395c/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:24:09 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:24:07 GMT", + "ETag": "\u00220x8DAA197C716F4D7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:24:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-creation-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T22:24:07.6631750Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "4688466746564951936*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_share_directory_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_share_directory_exists.json new file mode 100644 index 000000000000..e74fd7b4c860 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.pyTestStorageDirectorytest_share_directory_exists.json @@ -0,0 +1,135 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb66c2e0c?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:59 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:57 GMT", + "ETag": "\u00220x8DAA197C13E27DF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb66c2e0c/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:59 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:57 GMT", + "ETag": "\u00220x8DAA197C1509F8E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:58.1766542Z", + "x-ms-file-creation-time": "2022-09-28T21:23:58.1766542Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:58.1766542Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb66c2e0c/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:59 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:23:57 GMT", + "ETag": "\u00220x8DAA197C1509F8E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:23:58 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:23:58.1766542Z", + "x-ms-file-creation-time": "2022-09-28T21:23:58.1766542Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:23:58.1766542Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb66c2e0c/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:23:59 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:23:57 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:f6f2ae3c-701a-0051-6780-d3d02c000000\n", + "Time:2022-09-28T21:23:58.3714497Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories.yaml deleted file mode 100644 index acfb8d3be048..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories.yaml +++ /dev/null @@ -1,102 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:38 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare32270fb2?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:39 GMT - etag: - - '"0x8D79A14BF8DC35A"' - last-modified: - - Wed, 15 Jan 2020 23:43:39 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:40 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare32270fb2/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:39 GMT - etag: - - '"0x8D79A14BFBB45F1"' - last-modified: - - Wed, 15 Jan 2020 23:43:40 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:40.2959345Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:40.2959345Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:40.2959345Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_fail_on_exist.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_fail_on_exist.yaml deleted file mode 100644 index 7867c0e903d1..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_fail_on_exist.yaml +++ /dev/null @@ -1,149 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:40 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare38121575?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:40 GMT - etag: - - '"0x8D79A14BFF997C8"' - last-modified: - - Wed, 15 Jan 2020 23:43:40 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:40 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare38121575/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:40 GMT - etag: - - '"0x8D79A14C029F94A"' - last-modified: - - Wed, 15 Jan 2020 23:43:41 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:41.0214218Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:41.0214218Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:41.0214218Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:41 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare38121575/dir1?restype=directory - response: - body: - string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:b2000ca9-e01a-005d-07fd-cb1291000000\nTime:2020-01-15T23:43:41.1276512Z" - headers: - content-length: - - '228' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:40 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceAlreadyExists - x-ms-version: - - '2019-02-02' - status: - code: 409 - message: The specified resource already exists. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_with_metadata.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_with_metadata.yaml deleted file mode 100644 index dd72b52e87f6..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directories_with_metadata.yaml +++ /dev/null @@ -1,162 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:41 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3942156d?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:41 GMT - etag: - - '"0x8D79A14C0798C1B"' - last-modified: - - Wed, 15 Jan 2020 23:43:41 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:41 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-hello: - - world - x-ms-meta-number: - - '42' - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3942156d/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:41 GMT - etag: - - '"0x8D79A14C0A61C89"' - last-modified: - - Wed, 15 Jan 2020 23:43:41 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:41.8349705Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:41.8349705Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:41.8349705Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:41 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare3942156d/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:41 GMT - etag: - - '"0x8D79A14C0A61C89"' - last-modified: - - Wed, 15 Jan 2020 23:43:41 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:41.8349705Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:41.8349705Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:41.8349705Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-meta-hello: - - world - x-ms-meta-number: - - '42' - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directory_set_smb_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directory_set_smb_properties.yaml deleted file mode 100644 index 3e6ed53a576d..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_directory_set_smb_properties.yaml +++ /dev/null @@ -1,156 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.8.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 12 Mar 2022 00:38:51 GMT - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare7da616e2?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 12 Mar 2022 00:38:55 GMT - etag: - - '"0x8DA03C0B06725BE"' - last-modified: - - Sat, 12 Mar 2022 00:38:55 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-06-08' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.8.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 12 Mar 2022 00:38:56 GMT - x-ms-file-attributes: - - ReadOnly|Directory - x-ms-file-change-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-last-write-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare7da616e2/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 12 Mar 2022 00:38:55 GMT - etag: - - '"0x8DA027EC4121240"' - last-modified: - - Thu, 10 Mar 2022 10:14:30 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - ReadOnly | Directory - x-ms-file-change-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.8.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 12 Mar 2022 00:38:56 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utshare7da616e2/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sat, 12 Mar 2022 00:38:55 GMT - etag: - - '"0x8DA027EC4121240"' - last-modified: - - Thu, 10 Mar 2022 10:14:30 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - ReadOnly | Directory - x-ms-file-change-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_file_in_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_file_in_directory.yaml deleted file mode 100644 index 1613c6fc84a2..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_file_in_directory.yaml +++ /dev/null @@ -1,282 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:42 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare974d121f?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:41 GMT - etag: - - '"0x8D79A14C0F16154"' - last-modified: - - Wed, 15 Jan 2020 23:43:42 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:42 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare974d121f/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:41 GMT - etag: - - '"0x8D79A14C1005A2A"' - last-modified: - - Wed, 15 Jan 2020 23:43:42 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:42.4263722Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:42.4263722Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:42.4263722Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '8192' - x-ms-date: - - Wed, 15 Jan 2020 23:43:42 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare974d121f/dir1/file974d121f - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:41 GMT - etag: - - '"0x8D79A14C12E9E16"' - last-modified: - - Wed, 15 Jan 2020 23:43:42 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:43:42.7295766Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:42.7295766Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:42.7295766Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: '12345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '8192' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:42 GMT - x-ms-range: - - bytes=0-8191 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare974d121f/dir1/file974d121f?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - L8MEum9/C3zMQV5vDJbgTA== - date: - - Wed, 15 Jan 2020 23:43:42 GMT - etag: - - '"0x8D79A14C13E7F4D"' - last-modified: - - Wed, 15 Jan 2020 23:43:42 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:42 GMT - x-ms-range: - - bytes=0-33554431 - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare974d121f/dir1/file974d121f - response: - body: - string: '12345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678' - headers: - accept-ranges: - - bytes - content-length: - - '8192' - content-range: - - bytes 0-8191/8192 - content-type: - - application/octet-stream - date: - - Wed, 15 Jan 2020 23:43:42 GMT - etag: - - '"0x8D79A14C13E7F4D"' - last-modified: - - Wed, 15 Jan 2020 23:43:42 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:43:42.7295766Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:42.7295766Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:42.7295766Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-lease-state: - - available - x-ms-lease-status: - - unlocked - x-ms-server-encrypted: - - 'true' - x-ms-type: - - File - x-ms-version: - - '2019-02-02' - status: - code: 206 - message: Partial Content -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories.yaml deleted file mode 100644 index e7134a0bf326..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories.yaml +++ /dev/null @@ -1,164 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare643910fc?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:43 GMT - etag: - - '"0x8D79A14C18CCA56"' - last-modified: - - Wed, 15 Jan 2020 23:43:43 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:43 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare643910fc/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:43 GMT - etag: - - '"0x8D79A14C19D2A56"' - last-modified: - - Wed, 15 Jan 2020 23:43:43 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:43.4540630Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:43.4540630Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:43.4540630Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:43 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare643910fc/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:43 GMT - etag: - - '"0x8D79A14C1AD59BF"' - last-modified: - - Wed, 15 Jan 2020 23:43:43 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:43.5601343Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:43.5601343Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:43.5601343Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories_with_metadata.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories_with_metadata.yaml deleted file mode 100644 index e6861abbb5df..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_create_subdirectories_with_metadata.yaml +++ /dev/null @@ -1,224 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:43 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare7d6016b7?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:43 GMT - etag: - - '"0x8D79A14C209F45F"' - last-modified: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:44 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare7d6016b7/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:43 GMT - etag: - - '"0x8D79A14C218FF56"' - last-modified: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:44.2656086Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:44.2656086Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:44.2656086Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:44 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-hello: - - world - x-ms-meta-number: - - '42' - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare7d6016b7/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:44 GMT - etag: - - '"0x8D79A14C22CD8E0"' - last-modified: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:44.3956960Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:44.3956960Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:44.3956960Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:44 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare7d6016b7/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:44 GMT - etag: - - '"0x8D79A14C22CD8E0"' - last-modified: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:44.3956960Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:44.3956960Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:44.3956960Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-meta-hello: - - world - x-ms-meta-number: - - '42' - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_existing_share.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_existing_share.yaml deleted file mode 100644 index 9888500f887f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_existing_share.yaml +++ /dev/null @@ -1,173 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:44 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare954e1740?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:43 GMT - etag: - - '"0x8D79A14C27BF397"' - last-modified: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:44 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare954e1740/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:44 GMT - etag: - - '"0x8D79A14C28C6E95"' - last-modified: - - Wed, 15 Jan 2020 23:43:45 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:45.0221205Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:45.0221205Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:45.0221205Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:45 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare954e1740/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:45 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare954e1740/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:3c3c612a-601a-002a-2ffd-cb97d0000000\nTime:2020-01-15T23:43:45.4524929Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:44 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_non_existing_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_non_existing_directory.yaml deleted file mode 100644 index 9f26b6907f84..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_directory_with_non_existing_directory.yaml +++ /dev/null @@ -1,79 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:45 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare5e371aac?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:45 GMT - etag: - - '"0x8D79A14C31105D2"' - last-modified: - - Wed, 15 Jan 2020 23:43:45 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:46 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare5e371aac/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:faad1324-a01a-003c-08fd-cb564e000000\nTime:2020-01-15T23:43:46.2223035Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_file_in_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_file_in_directory.yaml deleted file mode 100644 index bfa7d927d556..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_file_in_directory.yaml +++ /dev/null @@ -1,284 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:46 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9728121e?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:46 GMT - etag: - - '"0x8D79A14C3A85BCE"' - last-modified: - - Wed, 15 Jan 2020 23:43:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:46 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9728121e/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:46 GMT - etag: - - '"0x8D79A14C3B4F518"' - last-modified: - - Wed, 15 Jan 2020 23:43:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:46.9654296Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:46.9654296Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:46.9654296Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '11' - x-ms-date: - - Wed, 15 Jan 2020 23:43:46 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9728121e/dir1/file9728121e - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:46 GMT - etag: - - '"0x8D79A14C3C4AF3B"' - last-modified: - - Wed, 15 Jan 2020 23:43:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:43:47.0684987Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:47.0684987Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:47.0684987Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: hello world - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:47 GMT - x-ms-range: - - bytes=0-10 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9728121e/dir1/file9728121e?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - XrY7u+Ae7tCTyyK7j1rNww== - date: - - Wed, 15 Jan 2020 23:43:46 GMT - etag: - - '"0x8D79A14C3D3F41B"' - last-modified: - - Wed, 15 Jan 2020 23:43:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:47 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare9728121e/dir1/file9728121e - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:47 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.file.core.windows.net/utshare9728121e/dir1/file9728121e - response: - body: - string: '' - headers: - date: - - Wed, 15 Jan 2020 23:43:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_subdirectories.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_subdirectories.yaml deleted file mode 100644 index fc344c4bc628..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_delete_subdirectories.yaml +++ /dev/null @@ -1,235 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:47 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare641710fb?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:47 GMT - etag: - - '"0x8D79A14C492D11A"' - last-modified: - - Wed, 15 Jan 2020 23:43:48 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:48 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare641710fb/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:48 GMT - etag: - - '"0x8D79A14C4ED35E1"' - last-modified: - - Wed, 15 Jan 2020 23:43:49 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:49.0118113Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:49.0118113Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:49.0118113Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:49 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare641710fb/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:48 GMT - etag: - - '"0x8D79A14C53BFFAF"' - last-modified: - - Wed, 15 Jan 2020 23:43:49 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:49.5281583Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:49.5281583Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:43:49.5281583Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:49 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare641710fb/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:49 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:50 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare641710fb/dir1%2Fdir2?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:9fea494a-601a-0065-55fd-cb53c8000000\nTime:2020-01-15T23:43:50.5078182Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:49 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists.yaml deleted file mode 100644 index 0e747d74cbc1..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists.yaml +++ /dev/null @@ -1,154 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:50 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare14f20f16?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:50 GMT - etag: - - '"0x8D79A14C60C08E3"' - last-modified: - - Wed, 15 Jan 2020 23:43:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:50 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare14f20f16/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:50 GMT - etag: - - '"0x8D79A14C61AC635"' - last-modified: - - Wed, 15 Jan 2020 23:43:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:50.9881397Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:50.9881397Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:50.9881397Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:51 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare14f20f16/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:50 GMT - etag: - - '"0x8D79A14C61AC635"' - last-modified: - - Wed, 15 Jan 2020 23:43:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:50.9881397Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:50.9881397Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:50.9881397Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists_with_snapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists_with_snapshot.yaml deleted file mode 100644 index ea67b121dca3..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_exists_with_snapshot.yaml +++ /dev/null @@ -1,228 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:51 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare14271500?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:50 GMT - etag: - - '"0x8D79A14C686D3CB"' - last-modified: - - Wed, 15 Jan 2020 23:43:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:51 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare14271500/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:50 GMT - etag: - - '"0x8D79A14C697FB13"' - last-modified: - - Wed, 15 Jan 2020 23:43:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:51.8086931Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:51.8086931Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:51.8086931Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:51 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare14271500?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:51 GMT - etag: - - '"0x8D79A14C686D3CB"' - last-modified: - - Wed, 15 Jan 2020 23:43:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: - - '2020-01-15T23:43:51.0000000Z' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:52 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare14271500/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:52 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare14271500/dir1?restype=directory&sharesnapshot=2020-01-15T23:43:51.0000000Z - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:51 GMT - etag: - - '"0x8D79A14C697FB13"' - last-modified: - - Wed, 15 Jan 2020 23:43:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:51.8086931Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:51.8086931Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:51.8086931Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists.yaml deleted file mode 100644 index 4ec6625b7fbc..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists.yaml +++ /dev/null @@ -1,77 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:52 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare553610c6?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:51 GMT - etag: - - '"0x8D79A14C71E57F1"' - last-modified: - - Wed, 15 Jan 2020 23:43:52 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:52 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare553610c6/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:708750b3-101a-000c-3bfd-cb0c64000000\nTime:2020-01-15T23:43:52.7913249Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists_with_snapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists_with_snapshot.yaml deleted file mode 100644 index e1db7b0d8809..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_not_exists_with_snapshot.yaml +++ /dev/null @@ -1,179 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:52 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare6c0b16b0?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:52 GMT - etag: - - '"0x8D79A14C76D46DB"' - last-modified: - - Wed, 15 Jan 2020 23:43:53 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:53 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare6c0b16b0?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:53 GMT - etag: - - '"0x8D79A14C76D46DB"' - last-modified: - - Wed, 15 Jan 2020 23:43:53 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: - - '2020-01-15T23:43:53.0000000Z' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:53 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare6c0b16b0/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:53 GMT - etag: - - '"0x8D79A14C7CF7858"' - last-modified: - - Wed, 15 Jan 2020 23:43:53 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:53.8500696Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:53.8500696Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:53.8500696Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:54 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare6c0b16b0/dir1?restype=directory&sharesnapshot=2020-01-15T23:43:53.0000000Z - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:6a831de9-a01a-005a-79fd-cbe414000000\nTime:2020-01-15T23:43:54.1562259Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:53 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_parent_not_exists.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_parent_not_exists.yaml deleted file mode 100644 index c70dd014a1d8..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_directory_parent_not_exists.yaml +++ /dev/null @@ -1,77 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:54 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshared53f13af?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:53 GMT - etag: - - '"0x8D79A14C838178F"' - last-modified: - - Wed, 15 Jan 2020 23:43:54 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:54 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshared53f13af/missing1%2Fmissing2?restype=directory - response: - body: - string: "\uFEFFParentNotFoundThe - specified parent path does not exist.\nRequestId:2269e81a-301a-001b-6bfd-cbcc07000000\nTime:2020-01-15T23:43:54.6437954Z" - headers: - content-length: - - '224' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:53 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ParentNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified parent path does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_metadata_with_snapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_metadata_with_snapshot.yaml deleted file mode 100644 index 871d687f0142..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_metadata_with_snapshot.yaml +++ /dev/null @@ -1,246 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:54 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare94911740?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:54 GMT - etag: - - '"0x8D79A14C882A6E7"' - last-modified: - - Wed, 15 Jan 2020 23:43:55 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:55 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-test1: - - foo - x-ms-meta-test2: - - bar - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare94911740/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:54 GMT - etag: - - '"0x8D79A14C89B28F1"' - last-modified: - - Wed, 15 Jan 2020 23:43:55 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:55.1849713Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:55.1849713Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:55.1849713Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:55 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare94911740?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:54 GMT - etag: - - '"0x8D79A14C882A6E7"' - last-modified: - - Wed, 15 Jan 2020 23:43:55 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: - - '2020-01-15T23:43:55.0000000Z' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:55 GMT - x-ms-meta-test100: - - foo100 - x-ms-meta-test200: - - bar200 - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare94911740/dir1?restype=directory&comp=metadata - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:54 GMT - etag: - - '"0x8D79A14C8DD94A1"' - last-modified: - - Wed, 15 Jan 2020 23:43:55 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:55 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare94911740/dir1?restype=directory&sharesnapshot=2020-01-15T23:43:55.0000000Z - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:54 GMT - etag: - - '"0x8D79A14C89B28F1"' - last-modified: - - Wed, 15 Jan 2020 23:43:55 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:55.1849713Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:55.1849713Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:55.1849713Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-meta-test1: - - foo - x-ms-meta-test2: - - bar - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties.yaml deleted file mode 100644 index a22af5569d17..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties.yaml +++ /dev/null @@ -1,154 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:55 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9b0c1262?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:55 GMT - etag: - - '"0x8D79A14C92B1827"' - last-modified: - - Wed, 15 Jan 2020 23:43:56 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:56 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9b0c1262/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:55 GMT - etag: - - '"0x8D79A14C93F748A"' - last-modified: - - Wed, 15 Jan 2020 23:43:56 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:56.2616970Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:56.2616970Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:56.2616970Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:56 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare9b0c1262/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:55 GMT - etag: - - '"0x8D79A14C93F748A"' - last-modified: - - Wed, 15 Jan 2020 23:43:56 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:56.2616970Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:56.2616970Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:56.2616970Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_server_encryption.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_server_encryption.yaml deleted file mode 100644 index 99f6a9c45171..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_server_encryption.yaml +++ /dev/null @@ -1,154 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:56 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2dc21a02?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:56 GMT - etag: - - '"0x8D79A14C9A465CE"' - last-modified: - - Wed, 15 Jan 2020 23:43:56 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:56 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2dc21a02/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:56 GMT - etag: - - '"0x8D79A14C9B5CA53"' - last-modified: - - Wed, 15 Jan 2020 23:43:57 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:57.0372179Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:57.0372179Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:57.0372179Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:57 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare2dc21a02/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:57 GMT - etag: - - '"0x8D79A14C9B5CA53"' - last-modified: - - Wed, 15 Jan 2020 23:43:57 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:57.0372179Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:57.0372179Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:57.0372179Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_non_existing_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_non_existing_directory.yaml deleted file mode 100644 index 4ac0d2429c31..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_non_existing_directory.yaml +++ /dev/null @@ -1,77 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:57 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare47651e25?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:57 GMT - etag: - - '"0x8D79A14CA19DD8E"' - last-modified: - - Wed, 15 Jan 2020 23:43:57 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:57 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare47651e25/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:d90f45ac-c01a-0027-5bfd-cb78dc000000\nTime:2020-01-15T23:43:57.7901383Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:43:57 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_snapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_snapshot.yaml deleted file mode 100644 index ded1a470f7b2..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_directory_properties_with_snapshot.yaml +++ /dev/null @@ -1,246 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:57 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec869184c?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:57 GMT - etag: - - '"0x8D79A14CA665B04"' - last-modified: - - Wed, 15 Jan 2020 23:43:58 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:58 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-test1: - - foo - x-ms-meta-test2: - - bar - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec869184c/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:57 GMT - etag: - - '"0x8D79A14CA7B3854"' - last-modified: - - Wed, 15 Jan 2020 23:43:58 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:58.3310932Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:58.3310932Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:58.3310932Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:58 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec869184c?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:57 GMT - etag: - - '"0x8D79A14CA665B04"' - last-modified: - - Wed, 15 Jan 2020 23:43:58 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: - - '2020-01-15T23:43:58.0000000Z' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:58 GMT - x-ms-meta-test100: - - foo100 - x-ms-meta-test200: - - bar200 - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec869184c/dir1?restype=directory&comp=metadata - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:58 GMT - etag: - - '"0x8D79A14CADF146D"' - last-modified: - - Wed, 15 Jan 2020 23:43:58 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:58 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharec869184c/dir1?restype=directory&sharesnapshot=2020-01-15T23:43:58.0000000Z - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:58 GMT - etag: - - '"0x8D79A14CA7B3854"' - last-modified: - - Wed, 15 Jan 2020 23:43:58 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:58.3310932Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:58.3310932Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:58.3310932Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-meta-test1: - - foo - x-ms-meta-test2: - - bar - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_set_directory_metadata.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_set_directory_metadata.yaml deleted file mode 100644 index 08d0631e3186..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_get_set_directory_metadata.yaml +++ /dev/null @@ -1,202 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:59 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharebfa81301?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:59 GMT - etag: - - '"0x8D79A14CB298618"' - last-modified: - - Wed, 15 Jan 2020 23:43:59 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:59 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharebfa81301/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:59 GMT - etag: - - '"0x8D79A14CB3A1555"' - last-modified: - - Wed, 15 Jan 2020 23:43:59 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:59.5819349Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:59.5819349Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:59.5819349Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:59 GMT - x-ms-meta-hello: - - world - x-ms-meta-number: - - '43' - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharebfa81301/dir1?restype=directory&comp=metadata - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:59 GMT - etag: - - '"0x8D79A14CB6B3FEB"' - last-modified: - - Wed, 15 Jan 2020 23:43:59 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:43:59 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharebfa81301/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:43:59 GMT - etag: - - '"0x8D79A14CB6B3FEB"' - last-modified: - - Wed, 15 Jan 2020 23:43:59 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:43:59.9041515Z' - x-ms-file-creation-time: - - '2020-01-15T23:43:59.5819349Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:43:59.5819349Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-meta-hello: - - world - x-ms-meta-number: - - '43' - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_nested_subdirectories_and_files.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_nested_subdirectories_and_files.yaml deleted file mode 100644 index 3a179b8ab082..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_nested_subdirectories_and_files.yaml +++ /dev/null @@ -1,667 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CBB3E151"' - last-modified: - - Wed, 15 Jan 2020 23:44:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CBC5F2A5"' - last-modified: - - Wed, 15 Jan 2020 23:44:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:00.4985509Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:00.4985509Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:00.4985509Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CBD5FAFB"' - last-modified: - - Wed, 15 Jan 2020 23:44:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:00.6036219Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:00.6036219Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:44:00.6036219Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1%2Fsubdir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CBE518CE"' - last-modified: - - Wed, 15 Jan 2020 23:44:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:00.7026894Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:00.7026894Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2020-01-15T23:44:00.7026894Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1%2Fsubdir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CBF45DB5"' - last-modified: - - Wed, 15 Jan 2020 23:44:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:00.8027573Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:00.8027573Z' - x-ms-file-id: - - '10376363910205800448' - x-ms-file-last-write-time: - - '2020-01-15T23:44:00.8027573Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1/file1 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CC061404"' - last-modified: - - Wed, 15 Jan 2020 23:44:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:00.9188356Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:00.9188356Z' - x-ms-file-id: - - '14988049928633188352' - x-ms-file-last-write-time: - - '2020-01-15T23:44:00.9188356Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data1 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:00 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - idkDvDXe3nJP1SxRQ3/1/Q== - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CC15A71E"' - last-modified: - - Wed, 15 Jan 2020 23:44:01 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1/subdir1/file2 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:00 GMT - etag: - - '"0x8D79A14CC2672E9"' - last-modified: - - Wed, 15 Jan 2020 23:44:01 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:01.1309801Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:01.1309801Z' - x-ms-file-id: - - '12682206919419494400' - x-ms-file-last-write-time: - - '2020-01-15T23:44:01.1309801Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data2 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:01 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1/subdir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - /5zy1pDYiMszf2v0UmthMA== - date: - - Wed, 15 Jan 2020 23:44:01 GMT - etag: - - '"0x8D79A14CC5616B0"' - last-modified: - - Wed, 15 Jan 2020 23:44:01 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1/subdir1/file3 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:01 GMT - etag: - - '"0x8D79A14CC650D67"' - last-modified: - - Wed, 15 Jan 2020 23:44:01 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:01.5412583Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:01.5412583Z' - x-ms-file-id: - - '17293892937846882304' - x-ms-file-last-write-time: - - '2020-01-15T23:44:01.5412583Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data3 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:01 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1/subdir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - eTafePeILBuqu8fUXcXaoA== - date: - - Wed, 15 Jan 2020 23:44:01 GMT - etag: - - '"0x8D79A14CC74C78E"' - last-modified: - - Wed, 15 Jan 2020 23:44:01 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:01 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare9681172a/dir1?restype=directory&comp=list - response: - body: - string: "\uFEFFfile15subdir1" - headers: - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:44:01 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files.yaml deleted file mode 100644 index 1137d92990b5..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files.yaml +++ /dev/null @@ -1,668 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:01 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CCDA72E1"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CCF1AE26"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:02.4628774Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:02.4628774Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:02.4628774Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CD03B2A0"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:02.5809568Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:02.5809568Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:44:02.5809568Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CD1170A2"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:02.6710178Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:02.6710178Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2020-01-15T23:44:02.6710178Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CD20DC97"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:02.7720855Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:02.7720855Z' - x-ms-file-id: - - '10376363910205800448' - x-ms-file-last-write-time: - - '2020-01-15T23:44:02.7720855Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1/file1 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CD2F851C"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:02.8681500Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:02.8681500Z' - x-ms-file-id: - - '14988049928633188352' - x-ms-file-last-write-time: - - '2020-01-15T23:44:02.8681500Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data1 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - idkDvDXe3nJP1SxRQ3/1/Q== - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CD3CA6BF"' - last-modified: - - Wed, 15 Jan 2020 23:44:02 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:02 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1/file2 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:02 GMT - etag: - - '"0x8D79A14CD4FBCD5"' - last-modified: - - Wed, 15 Jan 2020 23:44:03 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:03.0792917Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:03.0792917Z' - x-ms-file-id: - - '12682206919419494400' - x-ms-file-last-write-time: - - '2020-01-15T23:44:03.0792917Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data2 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:03 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - /5zy1pDYiMszf2v0UmthMA== - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CD606184"' - last-modified: - - Wed, 15 Jan 2020 23:44:03 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:03 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1/file3 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CD6FF496"' - last-modified: - - Wed, 15 Jan 2020 23:44:03 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:03.2904342Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:03.2904342Z' - x-ms-file-id: - - '17293892937846882304' - x-ms-file-last-write-time: - - '2020-01-15T23:44:03.2904342Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data3 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:03 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - eTafePeILBuqu8fUXcXaoA== - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CD877842"' - last-modified: - - Wed, 15 Jan 2020 23:44:03 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:03 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharefcf21448/dir1?restype=directory&comp=list - response: - body: - string: "\uFEFFfile15file25file35subdir1subdir2subdir3" - headers: - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:44:03 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_extended_info.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_extended_info.yaml deleted file mode 100644 index 4a50d14d1542..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_extended_info.yaml +++ /dev/null @@ -1,203 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:31 GMT - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare228d1d46?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:31 GMT - etag: - - '"0x8D924C38B034DA7"' - last-modified: - - Tue, 01 Jun 2021 06:07:31 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:31 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare228d1d46/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:31 GMT - etag: - - '"0x8D924C38B172120"' - last-modified: - - Tue, 01 Jun 2021 06:07:32 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-06-01T06:07:32.0407328Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:32.0407328Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2021-06-01T06:07:32.0407328Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:32 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare228d1d46/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:31 GMT - etag: - - '"0x8D924C38B2B4909"' - last-modified: - - Tue, 01 Jun 2021 06:07:32 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-06-01T06:07:32.1728265Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:32.1728265Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2021-06-01T06:07:32.1728265Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:32 GMT - x-ms-file-extended-info: - - 'true' - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare228d1d46/dir1?restype=directory&comp=list - response: - body: - string: "\uFEFF13835128424026341376subdir111529285414812647424" - headers: - content-type: - - application/xml - date: - - Tue, 01 Jun 2021 06:07:31 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2020-10-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_other_data.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_other_data.yaml deleted file mode 100644 index 6ab400668570..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_include_other_data.yaml +++ /dev/null @@ -1,707 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:46 GMT - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C393E25407"' - last-modified: - - Tue, 01 Jun 2021 06:07:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:46 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C393F8ED4C"' - last-modified: - - Tue, 01 Jun 2021 06:07:46 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-06-01T06:07:46.9422924Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:46.9422924Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2021-06-01T06:07:46.9422924Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C3940DB18E"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-06-01T06:07:47.0783886Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:47.0783886Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2021-06-01T06:07:47.0783886Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C39420A0BE"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-06-01T06:07:47.2024766Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:47.2024766Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2021-06-01T06:07:47.2024766Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C394353DED"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-06-01T06:07:47.3375725Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:47.3375725Z' - x-ms-file-id: - - '10376363910205800448' - x-ms-file-last-write-time: - - '2021-06-01T06:07:47.3375725Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1/file1 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C3944A5062"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2021-06-01T06:07:47.4756706Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:47.4756706Z' - x-ms-file-id: - - '14988049928633188352' - x-ms-file-last-write-time: - - '2021-06-01T06:07:47.4756706Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 4010187179898695473*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: data1 - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2020-10-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - idkDvDXe3nJP1SxRQ3/1/Q== - date: - - Tue, 01 Jun 2021 06:07:46 GMT - etag: - - '"0x8D924C3945E0306"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1/file2 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:47 GMT - etag: - - '"0x8D924C39472A030"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2021-06-01T06:07:47.7398576Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:47.7398576Z' - x-ms-file-id: - - '12682206919419494400' - x-ms-file-last-write-time: - - '2021-06-01T06:07:47.7398576Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 4010187179898695473*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: data2 - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2020-10-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - /5zy1pDYiMszf2v0UmthMA== - date: - - Tue, 01 Jun 2021 06:07:47 GMT - etag: - - '"0x8D924C39487D9AF"' - last-modified: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Tue, 01 Jun 2021 06:07:47 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1/file3 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:47 GMT - etag: - - '"0x8D924C3949C28B0"' - last-modified: - - Tue, 01 Jun 2021 06:07:48 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2021-06-01T06:07:48.0120496Z' - x-ms-file-creation-time: - - '2021-06-01T06:07:48.0120496Z' - x-ms-file-id: - - '17293892937846882304' - x-ms-file-last-write-time: - - '2021-06-01T06:07:48.0120496Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 4010187179898695473*11459378189709739967 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: data3 - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:48 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2020-10-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - eTafePeILBuqu8fUXcXaoA== - date: - - Tue, 01 Jun 2021 06:07:47 GMT - etag: - - '"0x8D924C394B273D4"' - last-modified: - - Tue, 01 Jun 2021 06:07:48 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:48 GMT - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharecbe41c05/dir1?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey - response: - body: - string: "\uFEFF13835128424026341376file11498804992863318835252021-06-01T06:07:47.4756706Z2021-06-01T06:07:47.4756706Z2021-06-01T06:07:47.4756706Z2021-06-01T06:07:47.4756706ZTue, - 01 Jun 2021 06:07:47 GMT\"0x8D924C3945E0306\"Archive4010187179898695473*11459378189709739967file21268220691941949440052021-06-01T06:07:47.7398576Z2021-06-01T06:07:47.7398576Z2021-06-01T06:07:47.7398576Z2021-06-01T06:07:47.7398576ZTue, - 01 Jun 2021 06:07:47 GMT\"0x8D924C39487D9AF\"Archive4010187179898695473*11459378189709739967file31729389293784688230452021-06-01T06:07:48.0120496Z2021-06-01T06:07:48.0120496Z2021-06-01T06:07:48.0120496Z2021-06-01T06:07:48.0120496ZTue, - 01 Jun 2021 06:07:48 GMT\"0x8D924C394B273D4\"Archive4010187179898695473*11459378189709739967subdir1115292854148126474242021-06-01T06:07:47.0783886Z2021-06-01T06:07:47.0783886Z2021-06-01T06:07:47.0783886Z2021-06-01T06:07:47.0783886ZTue, - 01 Jun 2021 06:07:47 GMT\"0x8D924C3940DB18E\"Directory17860367565182308406*11459378189709739967subdir2161409714332400353282021-06-01T06:07:47.2024766Z2021-06-01T06:07:47.2024766Z2021-06-01T06:07:47.2024766Z2021-06-01T06:07:47.2024766ZTue, - 01 Jun 2021 06:07:47 GMT\"0x8D924C39420A0BE\"Directory17860367565182308406*11459378189709739967subdir3103763639102058004482021-06-01T06:07:47.3375725Z2021-06-01T06:07:47.3375725Z2021-06-01T06:07:47.3375725Z2021-06-01T06:07:47.3375725ZTue, - 01 Jun 2021 06:07:47 GMT\"0x8D924C394353DED\"Directory17860367565182308406*11459378189709739967" - headers: - content-type: - - application/xml - date: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2020-10-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:48 GMT - x-ms-version: - - '2020-10-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utsharecbe41c05?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Tue, 01 Jun 2021 06:07:47 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2020-10-02' - status: - code: 202 - message: Accepted -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_prefix.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_prefix.yaml deleted file mode 100644 index 0a2f8fb1d948..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_prefix.yaml +++ /dev/null @@ -1,668 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:03 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CDE0D81F"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CDEF25AB"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:04.1239979Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.1239979Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.1239979Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CE00B4EA"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:04.2390762Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.2390762Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.2390762Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:03 GMT - etag: - - '"0x8D79A14CE13F222"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:04.3651618Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.3651618Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.3651618Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE224C80"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:04.4592256Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.4592256Z' - x-ms-file-id: - - '10376363910205800448' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.4592256Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1/file1 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE2ED1CB"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:04.5412811Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.5412811Z' - x-ms-file-id: - - '14988049928633188352' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.5412811Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data1 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - idkDvDXe3nJP1SxRQ3/1/Q== - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE3B2FF9"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1/file2 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE489FC9"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:04.7103945Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.7103945Z' - x-ms-file-id: - - '12682206919419494400' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.7103945Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data2 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - /5zy1pDYiMszf2v0UmthMA== - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE58A81D"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1/file3 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE688959"' - last-modified: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:04.9195353Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:04.9195353Z' - x-ms-file-id: - - '17293892937846882304' - x-ms-file-last-write-time: - - '2020-01-15T23:44:04.9195353Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data3 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:04 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - eTafePeILBuqu8fUXcXaoA== - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CE77F54E"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare10f21950/dir1?prefix=sub&restype=directory&comp=list - response: - body: - string: "\uFEFFsubsubdir1subdir2subdir3" - headers: - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:44:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_snapshot.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_snapshot.yaml deleted file mode 100644 index 54d8b33e449f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_list_subdirectories_and_files_with_snapshot.yaml +++ /dev/null @@ -1,708 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CECFA924"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CEDF063B"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:05.6960571Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:05.6960571Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:05.6960571Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CEEB8B83"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:05.7781123Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:05.7781123Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2020-01-15T23:44:05.7781123Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:04 GMT - etag: - - '"0x8D79A14CEF79B88"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:05.8571656Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:05.8571656Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2020-01-15T23:44:05.8571656Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1/file1 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF0420D0"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:05.9392208Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:05.9392208Z' - x-ms-file-id: - - '10376363910205800448' - x-ms-file-last-write-time: - - '2020-01-15T23:44:05.9392208Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data1 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:05 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - idkDvDXe3nJP1SxRQ3/1/Q== - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF10A612"' - last-modified: - - Wed, 15 Jan 2020 23:44:06 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CECFA924"' - last-modified: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: - - '2020-01-15T23:44:06.0000000Z' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF30DDD0"' - last-modified: - - Wed, 15 Jan 2020 23:44:06 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:06.2324176Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:06.2324176Z' - x-ms-file-id: - - '14988049928633188352' - x-ms-file-last-write-time: - - '2020-01-15T23:44:06.2324176Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1/file2 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF3D14EA"' - last-modified: - - Wed, 15 Jan 2020 23:44:06 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:06.3124714Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:06.3124714Z' - x-ms-file-id: - - '12682206919419494400' - x-ms-file-last-write-time: - - '2020-01-15T23:44:06.3124714Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data2 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - /5zy1pDYiMszf2v0UmthMA== - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF48FDDF"' - last-modified: - - Wed, 15 Jan 2020 23:44:06 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1/file3 - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF550DD7"' - last-modified: - - Wed, 15 Jan 2020 23:44:06 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2020-01-15T23:44:06.4695767Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:06.4695767Z' - x-ms-file-id: - - '17293892937846882304' - x-ms-file-last-write-time: - - '2020-01-15T23:44:06.4695767Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: data3 - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - eTafePeILBuqu8fUXcXaoA== - date: - - Wed, 15 Jan 2020 23:44:05 GMT - etag: - - '"0x8D79A14CF60F6C6"' - last-modified: - - Wed, 15 Jan 2020 23:44:06 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare44f21a32/dir1?sharesnapshot=2020-01-15T23:44:06.0000000Z&restype=directory&comp=list - response: - body: - string: "\uFEFFfile15subdir1subdir2" - headers: - content-type: - - application/xml - date: - - Wed, 15 Jan 2020 23:44:05 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory.yaml deleted file mode 100644 index 8ae63a94e290..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory.yaml +++ /dev/null @@ -1,210 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:04 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare139d0eee?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:04 GMT - etag: - - '"0x8D9E128CF5C41E5"' - last-modified: - - Thu, 27 Jan 2022 00:06:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:04 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare139d0eee/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:04 GMT - etag: - - '"0x8D9E128CF7003CF"' - last-modified: - - Thu, 27 Jan 2022 00:06:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:04 GMT - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare139d0eee/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare139d0eee/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:04 GMT - etag: - - '"0x8D9E128CF7D9666"' - last-modified: - - Thu, 27 Jan 2022 00:06:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:04.5691494Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:04 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare139d0eee/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:04 GMT - etag: - - '"0x8D9E128CF7D9666"' - last-modified: - - Thu, 27 Jan 2022 00:06:04 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:04.5691494Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:06:04.4801999Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_dest_lease.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_dest_lease.yaml deleted file mode 100644 index f35910c8fc76..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_dest_lease.yaml +++ /dev/null @@ -1,436 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:27 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:21:26 GMT - etag: - - '"0x8D9E12AF5BF6C25"' - last-modified: - - Thu, 27 Jan 2022 00:21:27 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:27 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:21:26 GMT - etag: - - '"0x8D9E12AF5CEF97A"' - last-modified: - - Thu, 27 Jan 2022 00:21:27 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-creation-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:27 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:21:27 GMT - etag: - - '"0x8D9E12AF5DB05AA"' - last-modified: - - Thu, 27 Jan 2022 00:21:27 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:21:27.9283626Z' - x-ms-file-creation-time: - - '2022-01-27T00:21:27.9283626Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2022-01-27T00:21:27.9283626Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '11' - x-ms-date: - - Thu, 27 Jan 2022 00:21:27 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366/dir2/test - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:21:27 GMT - etag: - - '"0x8D9E12AF5E738E5"' - last-modified: - - Thu, 27 Jan 2022 00:21:28 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2022-01-27T00:21:28.0083173Z' - x-ms-file-creation-time: - - '2022-01-27T00:21:28.0083173Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2022-01-27T00:21:28.0083173Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 8725144154719613152*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: Hello World - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '11' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:28 GMT - x-ms-range: - - bytes=0-10 - x-ms-version: - - '2021-04-10' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366/dir2/test?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - sQqNsWTgdUEFt6mb5y4/5Q== - date: - - Thu, 27 Jan 2022 00:21:27 GMT - etag: - - '"0x8D9E12AF5F39324"' - last-modified: - - Thu, 27 Jan 2022 00:21:28 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:28 GMT - x-ms-lease-action: - - acquire - x-ms-lease-duration: - - '-1' - x-ms-proposed-lease-id: - - dcbd6036-439a-404e-83af-d53809729d3d - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366/dir2/test?comp=lease - response: - body: - string: '' - headers: - date: - - Thu, 27 Jan 2022 00:21:27 GMT - etag: - - '"0x8D9E12AF5F39324"' - last-modified: - - Thu, 27 Jan 2022 00:21:28 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-lease-id: - - dcbd6036-439a-404e-83af-d53809729d3d - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:28 GMT - x-ms-destination-lease-id: - - dcbd6036-439a-404e-83af-d53809729d3d - x-ms-file-rename-replace-if-exists: - - 'true' - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshared27d1366/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshared27d1366/dir2%2Ftest?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:21:29 GMT - etag: - - '"0x8D9E12AF6C6C9D8"' - last-modified: - - Thu, 27 Jan 2022 00:21:29 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:21:29.4734808Z' - x-ms-file-creation-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:21:30 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshared27d1366/dir2%2Ftest?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:21:29 GMT - etag: - - '"0x8D9E12AF6C6C9D8"' - last-modified: - - Thu, 27 Jan 2022 00:21:29 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:21:29.4734808Z' - x-ms-file-creation-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:21:27.8494074Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_different_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_different_directory.yaml deleted file mode 100644 index 54a65fe780a0..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_different_directory.yaml +++ /dev/null @@ -1,334 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:09 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare93771738?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:09 GMT - etag: - - '"0x8D9E128D281C546"' - last-modified: - - Thu, 27 Jan 2022 00:06:09 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:09 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare93771738/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:14 GMT - etag: - - '"0x8D9E128D5F3EABE"' - last-modified: - - Thu, 27 Jan 2022 00:06:15 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:15.4109630Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:15.4109630Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:06:15.4109630Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:15 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare93771738/dir1%2Fsub1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:15 GMT - etag: - - '"0x8D9E128D5FF5AC3"' - last-modified: - - Thu, 27 Jan 2022 00:06:15 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-parent-id: - - '13835128424026341376' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:15 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare93771738/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:15 GMT - etag: - - '"0x8D9E128D609445F"' - last-modified: - - Thu, 27 Jan 2022 00:06:15 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:15.5508831Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:15.5508831Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2022-01-27T00:06:15.5508831Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:15 GMT - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare93771738/dir1%2Fsub1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare93771738/dir2%2Fsub2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:26 GMT - etag: - - '"0x8D9E128DADC381A"' - last-modified: - - Thu, 27 Jan 2022 00:06:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:23.6442650Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-parent-id: - - '16140971433240035328' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:06:26 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare93771738/dir2%2Fsub2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:06:26 GMT - etag: - - '"0x8D9E128DADC381A"' - last-modified: - - Thu, 27 Jan 2022 00:06:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:06:23.6442650Z' - x-ms-file-creation-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2022-01-27T00:06:15.4859203Z' - x-ms-file-parent-id: - - '16140971433240035328' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_file_permission.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_file_permission.yaml deleted file mode 100644 index bb07958b7e66..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_file_permission.yaml +++ /dev/null @@ -1,250 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:16:23 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a011595?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:16:22 GMT - etag: - - '"0x8D9E12A404FB9DC"' - last-modified: - - Thu, 27 Jan 2022 00:16:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: '{"permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)"}' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '207' - Content-Type: - - application/json - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:16:23 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a011595?restype=share&comp=filepermission - response: - body: - string: '' - headers: - date: - - Thu, 27 Jan 2022 00:16:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: - - chunked - x-ms-file-permission-key: - - 8535117954115489183*15111010650564761710 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:16:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a011595/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:16:23 GMT - etag: - - '"0x8D9E12A407A9E6F"' - last-modified: - - Thu, 27 Jan 2022 00:16:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-creation-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:16:23 GMT - x-ms-file-permission: - - O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964) - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare3a011595/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a011595/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:16:23 GMT - etag: - - '"0x8D9E12A4095006A"' - last-modified: - - Thu, 27 Jan 2022 00:16:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:16:23.8018666Z' - x-ms-file-creation-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 8535117954115489183*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:16:23 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare3a011595/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:16:23 GMT - etag: - - '"0x8D9E12A4095006A"' - last-modified: - - Thu, 27 Jan 2022 00:16:23 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:16:23.8018666Z' - x-ms-file-creation-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:16:23.6289647Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 8535117954115489183*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_ignore_readonly.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_ignore_readonly.yaml deleted file mode 100644 index d99f2e553dad..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_ignore_readonly.yaml +++ /dev/null @@ -1,342 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:15:50 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a22158e?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:15:49 GMT - etag: - - '"0x8D9E12A2CD842FF"' - last-modified: - - Thu, 27 Jan 2022 00:15:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:15:50 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a22158e/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:15:50 GMT - etag: - - '"0x8D9E12A2CE43CD3"' - last-modified: - - Thu, 27 Jan 2022 00:15:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-creation-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:15:50 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a22158e/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:15:50 GMT - etag: - - '"0x8D9E12A2CEF37BC"' - last-modified: - - Thu, 27 Jan 2022 00:15:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:15:50.8386748Z' - x-ms-file-creation-time: - - '2022-01-27T00:15:50.8386748Z' - x-ms-file-id: - - '11529285414812647424' - x-ms-file-last-write-time: - - '2022-01-27T00:15:50.8386748Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '1024' - x-ms-date: - - Thu, 27 Jan 2022 00:15:50 GMT - x-ms-file-attributes: - - ReadOnly - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a22158e/dir2/test - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:15:50 GMT - etag: - - '"0x8D9E12A2CFDDB95"' - last-modified: - - Thu, 27 Jan 2022 00:15:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - ReadOnly | Archive - x-ms-file-change-time: - - '2022-01-27T00:15:50.9346197Z' - x-ms-file-creation-time: - - '2022-01-27T00:15:50.9346197Z' - x-ms-file-id: - - '16140971433240035328' - x-ms-file-last-write-time: - - '2022-01-27T00:15:50.9346197Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 8725144154719613152*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:15:50 GMT - x-ms-file-rename-ignore-readonly: - - 'true' - x-ms-file-rename-replace-if-exists: - - 'true' - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare3a22158e/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3a22158e/dir2%2Ftest?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:15:50 GMT - etag: - - '"0x8D9E12A2D1F686E"' - last-modified: - - Thu, 27 Jan 2022 00:15:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:15:51.1544942Z' - x-ms-file-creation-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:15:51 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare3a22158e/dir2%2Ftest?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:15:50 GMT - etag: - - '"0x8D9E12A2D1F686E"' - last-modified: - - Thu, 27 Jan 2022 00:15:51 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:15:51.1544942Z' - x-ms-file-creation-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:15:50.7667155Z' - x-ms-file-parent-id: - - '11529285414812647424' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_preserve_permission.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_preserve_permission.yaml deleted file mode 100644 index b481518b10dd..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_preserve_permission.yaml +++ /dev/null @@ -1,264 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:19:59 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare965f1761?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:19:59 GMT - etag: - - '"0x8D9E12AC168AE4C"' - last-modified: - - Thu, 27 Jan 2022 00:19:59 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:19:59 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964) - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare965f1761/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:19:59 GMT - etag: - - '"0x8D9E12AC173FA40"' - last-modified: - - Thu, 27 Jan 2022 00:20:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-creation-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 3717868340301450459*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:20:00 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare965f1761/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:19:59 GMT - etag: - - '"0x8D9E12AC173FA40"' - last-modified: - - Thu, 27 Jan 2022 00:20:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-creation-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 3717868340301450459*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:20:00 GMT - x-ms-file-permission: - - preserve - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare965f1761/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare965f1761/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:19:59 GMT - etag: - - '"0x8D9E12AC199A532"' - last-modified: - - Thu, 27 Jan 2022 00:20:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:20:00.2583858Z' - x-ms-file-creation-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 3717868340301450459*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:20:00 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare965f1761/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 27 Jan 2022 00:19:59 GMT - etag: - - '"0x8D9E12AC199A532"' - last-modified: - - Thu, 27 Jan 2022 00:20:00 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-01-27T00:20:00.2583858Z' - x-ms-file-creation-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-27T00:20:00.0115264Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 3717868340301450459*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-04-10' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_smb_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_smb_properties.yaml deleted file mode 100644 index 25c7e48ce99f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_rename_directory_smb_properties.yaml +++ /dev/null @@ -1,218 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 09 Mar 2022 22:46:24 GMT - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2579153b?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 09 Mar 2022 22:46:24 GMT - etag: - - '"0x8DA021EA3ED8514"' - last-modified: - - Wed, 09 Mar 2022 22:46:24 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-06-08' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 09 Mar 2022 22:46:24 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2579153b/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 09 Mar 2022 22:46:24 GMT - etag: - - '"0x8DA021EA3FAEB59"' - last-modified: - - Wed, 09 Mar 2022 22:46:24 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-03-09T22:46:24.9751385Z' - x-ms-file-creation-time: - - '2022-03-09T22:46:24.9751385Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-09T22:46:24.9751385Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 09 Mar 2022 22:46:25 GMT - x-ms-file-attributes: - - ReadOnly|Directory - x-ms-file-change-time: - - '2022-03-07T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-01-26T10:09:30.5000000Z' - x-ms-file-last-write-time: - - '2022-01-26T10:14:30.5000000Z' - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare2579153b/dir1 - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2579153b/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 09 Mar 2022 22:46:25 GMT - etag: - - '"0x8DA021EA4461A2D"' - last-modified: - - Wed, 09 Mar 2022 22:46:25 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - ReadOnly | Directory - x-ms-file-change-time: - - '2022-03-07T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-01-26T10:09:30.5000000Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-26T10:14:30.5000000Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 09 Mar 2022 22:46:25 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utshare2579153b/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 09 Mar 2022 22:46:25 GMT - etag: - - '"0x8DA021EA4461A2D"' - last-modified: - - Wed, 09 Mar 2022 22:46:25 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - ReadOnly | Directory - x-ms-file-change-time: - - '2022-03-07T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-01-26T10:09:30.5000000Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-01-26T10:14:30.5000000Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_empty_smb_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_empty_smb_properties.yaml deleted file mode 100644 index b9b7964fb4a8..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_empty_smb_properties.yaml +++ /dev/null @@ -1,268 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:06 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareec31d64?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:06 GMT - etag: - - '"0x8D79A14CFD766DC"' - last-modified: - - Wed, 15 Jan 2020 23:44:07 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:07 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareec31d64/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:06 GMT - etag: - - '"0x8D79A14CFE50ACB"' - last-modified: - - Wed, 15 Jan 2020 23:44:07 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:07 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshareec31d64/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:06 GMT - etag: - - '"0x8D79A14CFE50ACB"' - last-modified: - - Wed, 15 Jan 2020 23:44:07 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:07 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - preserve - x-ms-file-last-write-time: - - preserve - x-ms-file-permission: - - preserve - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareec31d64/dir1?restype=directory&comp=properties - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:07 GMT - etag: - - '"0x8D79A14D067E5E3"' - last-modified: - - Wed, 15 Jan 2020 23:44:08 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:08.2707939Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:08 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshareec31d64/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Wed, 15 Jan 2020 23:44:07 GMT - etag: - - '"0x8D79A14D067E5E3"' - last-modified: - - Wed, 15 Jan 2020 23:44:08 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2020-01-15T23:44:08.2707939Z' - x-ms-file-creation-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2020-01-15T23:44:07.4132171Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2019-02-02' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_file_permission_key.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_file_permission_key.yaml deleted file mode 100644 index 952a1e15b9b5..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_set_directory_properties_with_file_permission_key.yaml +++ /dev/null @@ -1,270 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 10 Mar 2022 22:14:26 GMT - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshareef771cd8?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 10 Mar 2022 22:14:26 GMT - etag: - - '"0x8DA02E356D582B4"' - last-modified: - - Thu, 10 Mar 2022 22:14:26 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2021-06-08' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 10 Mar 2022 22:14:26 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshareef771cd8/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 10 Mar 2022 22:14:26 GMT - etag: - - '"0x8DA02E356E42396"' - last-modified: - - Thu, 10 Mar 2022 22:14:26 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-03-10T22:14:26.4970134Z' - x-ms-file-creation-time: - - '2022-03-10T22:14:26.4970134Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-10T22:14:26.4970134Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 10 Mar 2022 22:14:26 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utshareef771cd8/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 10 Mar 2022 22:14:26 GMT - etag: - - '"0x8DA02E356E42396"' - last-modified: - - Thu, 10 Mar 2022 22:14:26 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-03-10T22:14:26.4970134Z' - x-ms-file-creation-time: - - '2022-03-10T22:14:26.4970134Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-10T22:14:26.4970134Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 10 Mar 2022 22:14:26 GMT - x-ms-file-attributes: - - None - x-ms-file-change-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-creation-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-last-write-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshareef771cd8/dir1?restype=directory&comp=properties - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 10 Mar 2022 22:14:26 GMT - etag: - - '"0x8DA02E356FA195A"' - last-modified: - - Thu, 10 Mar 2022 22:14:26 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-creation-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 1526400922095216343*15111010650564761710 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 10 Mar 2022 22:14:26 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utshareef771cd8/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 10 Mar 2022 22:14:26 GMT - etag: - - '"0x8DA02E356FA195A"' - last-modified: - - Thu, 10 Mar 2022 22:14:26 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-creation-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2022-03-10T23:14:26.4970130Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 1526400922095216343*15111010650564761710 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2021-06-08' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_share_directory_exists.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_share_directory_exists.yaml deleted file mode 100644 index 9c3890d3edf7..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory.test_share_directory_exists.yaml +++ /dev/null @@ -1,191 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:25:37 GMT - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare765b1188?restype=share - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 04 Nov 2021 06:25:38 GMT - etag: - - '"0x8D99F5BEB060D63"' - last-modified: - - Thu, 04 Nov 2021 06:25:38 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:25:38 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare765b1188/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 04 Nov 2021 06:25:38 GMT - etag: - - '"0x8D99F5BEB238366"' - last-modified: - - Thu, 04 Nov 2021 06:25:38 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-11-04T06:25:38.5449318Z' - x-ms-file-creation-time: - - '2021-11-04T06:25:38.5449318Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2021-11-04T06:25:38.5449318Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 8772442282881623900*1253935651986682069 - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:25:38 GMT - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare765b1188/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 04 Nov 2021 06:25:38 GMT - etag: - - '"0x8D99F5BEB238366"' - last-modified: - - Thu, 04 Nov 2021 06:25:38 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Directory - x-ms-file-change-time: - - '2021-11-04T06:25:38.5449318Z' - x-ms-file-creation-time: - - '2021-11-04T06:25:38.5449318Z' - x-ms-file-id: - - '13835128424026341376' - x-ms-file-last-write-time: - - '2021-11-04T06:25:38.5449318Z' - x-ms-file-parent-id: - - '0' - x-ms-file-permission-key: - - 8772442282881623900*1253935651986682069 - x-ms-server-encrypted: - - 'true' - x-ms-version: - - '2020-10-02' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:25:39 GMT - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare765b1188/dir2?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:567d7016-d01a-0058-5244-d195ff000000\nTime:2021-11-04T06:25:38.9185299Z" - headers: - content-length: - - '223' - content-type: - - application/xml - date: - - Thu, 04 Nov 2021 06:25:38 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: - - ResourceNotFound - x-ms-version: - - '2020-10-02' - status: - code: 404 - message: The specified resource does not exist. -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories.json new file mode 100644 index 000000000000..d01cf0af3438 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb5a30b1?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:27 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:26 GMT", + "ETag": "\u00220x8DAA19AE547B124\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:27 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb5a30b1/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:28 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:27 GMT", + "ETag": "\u00220x8DAA19AE574DEB4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:27 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:27.3023668Z", + "x-ms-file-creation-time": "2022-09-28T21:46:27.3023668Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:27.3023668Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_fail_on_exist.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_fail_on_exist.json new file mode 100644 index 000000000000..8e2d70509ef9 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_fail_on_exist.json @@ -0,0 +1,103 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeae53674?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:29 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:28 GMT", + "ETag": "\u00220x8DAA19AE5FA4529\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:28 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeae53674/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:29 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:28 GMT", + "ETag": "\u00220x8DAA19AE60BB10F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:28 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:28.2907919Z", + "x-ms-file-creation-time": "2022-09-28T21:46:28.2907919Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:28.2907919Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeae53674/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:29 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 409, + "ResponseHeaders": { + "Content-Length": "228", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:28 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceAlreadyExists", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceAlreadyExists\u003C/Code\u003E\u003CMessage\u003EThe specified resource already exists.\n", + "RequestId:d2d08dc2-b01a-0013-4083-d369ac000000\n", + "Time:2022-09-28T21:46:28.3904964Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_with_metadata.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_with_metadata.json new file mode 100644 index 000000000000..b004d1e5745a --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directories_with_metadata.json @@ -0,0 +1,106 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareebdd366c?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:29 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:27 GMT", + "ETag": "\u00220x8DAA19AE5AE2C21\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:27 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareebdd366c/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:29 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:27 GMT", + "ETag": "\u00220x8DAA19AE5C16CAB\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:27 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:27.8040747Z", + "x-ms-file-creation-time": "2022-09-28T21:46:27.8040747Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:27.8040747Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareebdd366c/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:29 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:27 GMT", + "ETag": "\u00220x8DAA19AE5C16CAB\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:27 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:27.8040747Z", + "x-ms-file-creation-time": "2022-09-28T21:46:27.8040747Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:27.8040747Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directory_set_smb_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directory_set_smb_properties.json new file mode 100644 index 000000000000..40c42b2236c8 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_directory_set_smb_properties.json @@ -0,0 +1,103 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare975937e1?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:30 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:28 GMT", + "ETag": "\u00220x8DAA19AE6506EDF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:28 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare975937e1/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:30 GMT", + "x-ms-file-attributes": "ReadOnly|Directory", + "x-ms-file-change-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-last-write-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:28 GMT", + "ETag": "\u00220x8DA027EC4121240\u0022", + "Last-Modified": "Thu, 10 Mar 2022 10:14:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare975937e1/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:30 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:28 GMT", + "ETag": "\u00220x8DA027EC4121240\u0022", + "Last-Modified": "Thu, 10 Mar 2022 10:14:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-03-10T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_file_in_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_file_in_directory.json new file mode 100644 index 000000000000..770cf1c7a699 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_file_in_directory.json @@ -0,0 +1,181 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b36331e?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:30 GMT", + "ETag": "\u00220x8DAA19AE739743C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b36331e/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:30 GMT", + "ETag": "\u00220x8DAA19AE748BCC0\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:30.3685824Z", + "x-ms-file-creation-time": "2022-09-28T21:46:30.3685824Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:30.3685824Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b36331e/dir1/file3b36331e", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "8192", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:30 GMT", + "ETag": "\u00220x8DAA19AE75BA5B1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:30.4925105Z", + "x-ms-file-creation-time": "2022-09-28T21:46:30.4925105Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:30.4925105Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b36331e/dir1/file3b36331e?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "8192", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-range": "bytes=0-8191", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2Nzg=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "L8MEum9/C3zMQV5vDJbgTA==", + "Date": "Wed, 28 Sep 2022 21:46:30 GMT", + "ETag": "\u00220x8DAA19AE775E089\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:30.6644105Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b36331e/dir1/file3b36331e", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:32 GMT", + "x-ms-range": "bytes=0-33554431", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 206, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "8192", + "Content-Range": "bytes 0-8191/8192", + "Content-Type": "application/octet-stream", + "Date": "Wed, 28 Sep 2022 21:46:30 GMT", + "ETag": "\u00220x8DAA19AE775E089\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:30 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:30.6644105Z", + "x-ms-file-creation-time": "2022-09-28T21:46:30.4925105Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:30.6644105Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-server-encrypted": "true", + "x-ms-type": "File", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2NzgxMjM0NTY3ODEyMzQ1Njc4MTIzNDU2Nzg=" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories.json new file mode 100644 index 000000000000..4bcf024a5fc8 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories.json @@ -0,0 +1,107 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea34831fb?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:30 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE697A6A2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea34831fb/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:30 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE6A764A9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:29.3111977Z", + "x-ms-file-creation-time": "2022-09-28T21:46:29.3111977Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:29.3111977Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea34831fb/dir1%2Fdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:30 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE6B78EE6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:29.4171366Z", + "x-ms-file-creation-time": "2022-09-28T21:46:29.4171366Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:29.4171366Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories_with_metadata.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories_with_metadata.json new file mode 100644 index 000000000000..a48b75f76d27 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_create_subdirectories_with_metadata.json @@ -0,0 +1,144 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare95e637b6?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE6DEB757\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare95e637b6/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE6EF5F73\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:29.7829235Z", + "x-ms-file-creation-time": "2022-09-28T21:46:29.7829235Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:29.7829235Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare95e637b6/dir1%2Fdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE6FF89A8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:29.8888616Z", + "x-ms-file-creation-time": "2022-09-28T21:46:29.8888616Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:29.8888616Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare95e637b6/dir1%2Fdir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:31 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:29 GMT", + "ETag": "\u00220x8DAA19AE6FF89A8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:29 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:29.8888616Z", + "x-ms-file-creation-time": "2022-09-28T21:46:29.8888616Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:29.8888616Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "42", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_existing_share.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_existing_share.json new file mode 100644 index 000000000000..6bb5816568ed --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_existing_share.json @@ -0,0 +1,122 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshared085383f?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFBE344F6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared085383f/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:06 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFBF47596\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:05 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:05.0484118Z", + "x-ms-file-creation-time": "2022-09-28T21:47:05.0484118Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:05.0484118Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared085383f/dir1?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared085383f/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:aa645c98-c01a-006b-3f83-d3ca54000000\n", + "Time:2022-09-28T21:47:05.2365843Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_non_existing_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_non_existing_directory.json new file mode 100644 index 000000000000..66813c39c12a --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_directory_with_non_existing_directory.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea9013bab?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFC3C0663\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:05 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea9013bab/dir1?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:aa645cb8-c01a-006b-5d83-d3ca54000000\n", + "Time:2022-09-28T21:47:05.6213650Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_file_in_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_file_in_directory.json new file mode 100644 index 000000000000..82214bbf7f7c --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_file_in_directory.json @@ -0,0 +1,189 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b0a331d?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:32 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "ETag": "\u00220x8DAA19AE7D3EFEE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:31 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b0a331d/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:32 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "ETag": "\u00220x8DAA19AE7E42246\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:31 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:31.3869894Z", + "x-ms-file-creation-time": "2022-09-28T21:46:31.3869894Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:31.3869894Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b0a331d/dir1/file3b0a331d", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "11", + "x-ms-date": "Wed, 28 Sep 2022 21:46:32 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "ETag": "\u00220x8DAA19AE7F250FA\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:31 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:31.4799354Z", + "x-ms-file-creation-time": "2022-09-28T21:46:31.4799354Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:31.4799354Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b0a331d/dir1/file3b0a331d?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:32 GMT", + "x-ms-range": "bytes=0-10", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "aGVsbG8gd29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "XrY7u\u002BAe7tCTyyK7j1rNww==", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "ETag": "\u00220x8DAA19AE8022D20\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:31 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:31.5838752Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b0a331d/dir1/file3b0a331d", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare3b0a331d/dir1/file3b0a331d", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_subdirectories.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_subdirectories.json new file mode 100644 index 000000000000..9c213f9cd417 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_delete_subdirectories.json @@ -0,0 +1,160 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea31f31fa?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "ETag": "\u00220x8DAA19AE848C0AF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea31f31fa/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:31 GMT", + "ETag": "\u00220x8DAA19AE85AC73E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:32.1645374Z", + "x-ms-file-creation-time": "2022-09-28T21:46:32.1645374Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:32.1645374Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea31f31fa/dir1%2Fdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:32 GMT", + "ETag": "\u00220x8DAA19AE86A7C54\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:32.2674772Z", + "x-ms-file-creation-time": "2022-09-28T21:46:32.2674772Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:32.2674772Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea31f31fa/dir1%2Fdir2?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea31f31fa/dir1%2Fdir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:33 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:d2d08de4-b01a-0013-5a83-d369ac000000\n", + "Time:2022-09-28T21:46:32.4721618Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists.json new file mode 100644 index 000000000000..34f9505f516f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists.json @@ -0,0 +1,102 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareabee3015?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:37 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "ETag": "\u00220x8DAA19AEA78BC2C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareabee3015/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:37 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "ETag": "\u00220x8DAA19AEA8877B6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:35.8194102Z", + "x-ms-file-creation-time": "2022-09-28T21:46:35.8194102Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:35.8194102Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareabee3015/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:37 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "ETag": "\u00220x8DAA19AEA8877B6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:35.8194102Z", + "x-ms-file-creation-time": "2022-09-28T21:46:35.8194102Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:35.8194102Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists_with_snapshot.json new file mode 100644 index 000000000000..0198ef1d1cd8 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_exists_with_snapshot.json @@ -0,0 +1,153 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85e335ff?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:38 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:36 GMT", + "ETag": "\u00220x8DAA19AEB37AA76\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:36 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85e335ff/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:38 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:36 GMT", + "ETag": "\u00220x8DAA19AEB47658B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:37.0706827Z", + "x-ms-file-creation-time": "2022-09-28T21:46:37.0706827Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:37.0706827Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85e335ff?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:38 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:36 GMT", + "ETag": "\u00220x8DAA19AEB37AA76\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:36 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:46:37.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85e335ff/dir1?restype=directory", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:38 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare85e335ff/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:46:37.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:38 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:37 GMT", + "ETag": "\u00220x8DAA19AEB47658B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:37.0706827Z", + "x-ms-file-creation-time": "2022-09-28T21:46:37.0706827Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:37.0706827Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists.json new file mode 100644 index 000000000000..0e044d7106c5 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists.json @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73d931c5?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:37 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "ETag": "\u00220x8DAA19AEABFF3EE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:36 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare73d931c5/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:37 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:36 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:d2d08e0a-b01a-0013-7483-d369ac000000\n", + "Time:2022-09-28T21:46:36.2799827Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists_with_snapshot.json new file mode 100644 index 000000000000..7dbb245219a2 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_not_exists_with_snapshot.json @@ -0,0 +1,125 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare656e37af?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:37 GMT", + "ETag": "\u00220x8DAA19AEBA26A93\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare656e37af?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:37 GMT", + "ETag": "\u00220x8DAA19AEBA26A93\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:46:37.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare656e37af/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:37 GMT", + "ETag": "\u00220x8DAA19AEBC4722A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:37.8902058Z", + "x-ms-file-creation-time": "2022-09-28T21:46:37.8902058Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:37.8902058Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare656e37af/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:46:37.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:37 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:d2d08e1a-b01a-0013-7f83-d369ac000000\n", + "Time:2022-09-28T21:46:37.9870065Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_parent_not_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_parent_not_exists.json new file mode 100644 index 000000000000..e7dc3af89c0d --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_directory_parent_not_exists.json @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee0ee34ae?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:37 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:36 GMT", + "ETag": "\u00220x8DAA19AEAF887D3\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:36 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee0ee34ae/missing1%2Fmissing2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:38 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "224", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:36 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ParentNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EParentNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified parent path does not exist.\n", + "RequestId:d2d08e0d-b01a-0013-7683-d369ac000000\n", + "Time:2022-09-28T21:46:36.6507703Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_metadata_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_metadata_with_snapshot.json new file mode 100644 index 000000000000..0662e4f7d3c3 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_metadata_with_snapshot.json @@ -0,0 +1,162 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharecfc8383f?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE97EA24E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharecfc8383f/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE98D4D37\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:34.1733687Z", + "x-ms-file-creation-time": "2022-09-28T21:46:34.1733687Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:34.1733687Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharecfc8383f?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:34 GMT", + "ETag": "\u00220x8DAA19AE97EA24E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:46:34.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharecfc8383f/dir1?restype=directory\u0026comp=metadata", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-meta-test100": "foo100", + "x-ms-meta-test200": "bar200", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:34 GMT", + "ETag": "\u00220x8DAA19AE9AE8BDD\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharecfc8383f/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:46:34.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:34 GMT", + "ETag": "\u00220x8DAA19AE98D4D37\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:34.1733687Z", + "x-ms-file-creation-time": "2022-09-28T21:46:34.1733687Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:34.1733687Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties.json new file mode 100644 index 000000000000..bdcc02762154 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties.json @@ -0,0 +1,102 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40ca3361?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:34 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:32 GMT", + "ETag": "\u00220x8DAA19AE8B79EEA\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40ca3361/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:34 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:32 GMT", + "ETag": "\u00220x8DAA19AE8C70D7C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:32.8741244Z", + "x-ms-file-creation-time": "2022-09-28T21:46:32.8741244Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:32.8741244Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare40ca3361/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:34 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:32 GMT", + "ETag": "\u00220x8DAA19AE8C70D7C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:32 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:32.8741244Z", + "x-ms-file-creation-time": "2022-09-28T21:46:32.8741244Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:32.8741244Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_server_encryption.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_server_encryption.json new file mode 100644 index 000000000000..38cd05466d6e --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_server_encryption.json @@ -0,0 +1,102 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare36023b01?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:05 GMT", + "ETag": "\u00220x8DAA19AFC75D2A5\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:05 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare36023b01/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:07 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:05 GMT", + "ETag": "\u00220x8DAA19AFC86DBCC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:06.0078540Z", + "x-ms-file-creation-time": "2022-09-28T21:47:06.0078540Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:06.0078540Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare36023b01/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:05 GMT", + "ETag": "\u00220x8DAA19AFC86DBCC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:06.0078540Z", + "x-ms-file-creation-time": "2022-09-28T21:47:06.0078540Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:06.0078540Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_non_existing_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_non_existing_directory.json new file mode 100644 index 000000000000..e401ff88c12d --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_non_existing_directory.json @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea21d3f24?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:36 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:34 GMT", + "ETag": "\u00220x8DAA19AE9E3E4F8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea21d3f24/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:36 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:34 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:d2d08dfd-b01a-0013-6b83-d369ac000000\n", + "Time:2022-09-28T21:46:34.8408060Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_snapshot.json new file mode 100644 index 000000000000..609662a18f08 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_directory_properties_with_snapshot.json @@ -0,0 +1,162 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare48e7394b?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:34 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE901474C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:33 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare48e7394b/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:34 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE9128A31\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:33 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:33.3688369Z", + "x-ms-file-creation-time": "2022-09-28T21:46:33.3688369Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:33.3688369Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare48e7394b?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:34 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE901474C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:33 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:46:33.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare48e7394b/dir1?restype=directory\u0026comp=metadata", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-meta-test100": "foo100", + "x-ms-meta-test200": "bar200", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE9441A20\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:33 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare48e7394b/dir1?restype=directory\u0026sharesnapshot=2022-09-28T21:46:33.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:35 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:33 GMT", + "ETag": "\u00220x8DAA19AE9128A31\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:33 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:33.3688369Z", + "x-ms-file-creation-time": "2022-09-28T21:46:33.3688369Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:33.3688369Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-test1": "foo", + "x-ms-meta-test2": "bar", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_set_directory_metadata.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_set_directory_metadata.json new file mode 100644 index 000000000000..c588e2149505 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_get_set_directory_metadata.json @@ -0,0 +1,133 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea7a33400?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEBFE11BA\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea7a33400/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC0DCC4F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:38.3709263Z", + "x-ms-file-creation-time": "2022-09-28T21:46:38.3709263Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:38.3709263Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea7a33400/dir1?restype=directory\u0026comp=metadata", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "43", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC1C220E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea7a33400/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:39 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC1C220E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:38.4648718Z", + "x-ms-file-creation-time": "2022-09-28T21:46:38.3709263Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:38.3709263Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-meta-hello": "world", + "x-ms-meta-number": "43", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_nested_subdirectories_and_files.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_nested_subdirectories_and_files.json new file mode 100644 index 000000000000..1932e2a084f8 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_nested_subdirectories_and_files.json @@ -0,0 +1,423 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFB3912A9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFB4A6C38\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:03.9340600Z", + "x-ms-file-creation-time": "2022-09-28T21:47:03.9340600Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:03.9340600Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFB595E1F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:04.0320031Z", + "x-ms-file-creation-time": "2022-09-28T21:47:04.0320031Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:04.0320031Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1%2Fsubdir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFB6B0EB8\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:04.1479352Z", + "x-ms-file-creation-time": "2022-09-28T21:47:04.1479352Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:47:04.1479352Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1%2Fsubdir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFB7D0D6D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:04.2658669Z", + "x-ms-file-creation-time": "2022-09-28T21:47:04.2658669Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:47:04.2658669Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFB917CBE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:04.3997886Z", + "x-ms-file-creation-time": "2022-09-28T21:47:04.3997886Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:47:04.3997886Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1/subdir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFB965E07\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:04.4317703Z", + "x-ms-file-creation-time": "2022-09-28T21:47:04.4317703Z", + "x-ms-file-id": "13835093239654252544", + "x-ms-file-last-write-time": "2022-09-28T21:47:04.4317703Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1/subdir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFB96AC18\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:04.4337688Z", + "x-ms-file-creation-time": "2022-09-28T21:47:04.4337688Z", + "x-ms-file-id": "13835163608398430208", + "x-ms-file-last-write-time": "2022-09-28T21:47:04.4337688Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFBA1A6F7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:04.5057271Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1/subdir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:47:04 GMT", + "ETag": "\u00220x8DAA19AFBA883C1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:04.5507009Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1/subdir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:05 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFBAAF464\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:04 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:04.5666916Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared11e3829/dir1?restype=directory\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:06 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshared11e3829\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E14988049928633188352\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files.json new file mode 100644 index 000000000000..99de384e6bd5 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files.json @@ -0,0 +1,423 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED2A7ED7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED3C3437\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:40.3527735Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.3527735Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.3527735Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED4BE94C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:40.4557132Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.4557132Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.4557132Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED592DC6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:40.5426630Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.5426630Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.5426630Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED686DBC\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:40.6426044Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.6426044Z", + "x-ms-file-id": "10376363910205800448", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.6426044Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED77D4C0\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:40.7435456Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.7435456Z", + "x-ms-file-id": "14988049928633188352", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.7435456Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED7E8A80\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:40.7875200Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.7875200Z", + "x-ms-file-id": "13835093239654252544", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.7875200Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED858E5A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:40.8334938Z", + "x-ms-file-creation-time": "2022-09-28T21:46:40.8334938Z", + "x-ms-file-id": "13835163608398430208", + "x-ms-file-last-write-time": "2022-09-28T21:46:40.8334938Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED8A4894\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:40.8644756Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED903B1E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:40.9034526Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AED95DF9D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:40.9404317Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare4ac33547/dir1?restype=directory\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare4ac33547\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E13835093239654252544\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile2\u003C/Name\u003E\u003CFileId\u003E14988049928633188352\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile3\u003C/Name\u003E\u003CFileId\u003E13835163608398430208\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E10376363910205800448\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir3\u003C/Name\u003E\u003CFileId\u003E16140971433240035328\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_extended_info.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_extended_info.json new file mode 100644 index 000000000000..04b575381fef --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_extended_info.json @@ -0,0 +1,132 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare583a3e45?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:01 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:00 GMT", + "ETag": "\u00220x8DAA19AF9AC9DB0\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare583a3e45/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:02 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:00 GMT", + "ETag": "\u00220x8DAA19AF9C47B6F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:01.3785455Z", + "x-ms-file-creation-time": "2022-09-28T21:47:01.3785455Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:01.3785455Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare583a3e45/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:02 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:00 GMT", + "ETag": "\u00220x8DAA19AF9D3945F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:01.4774879Z", + "x-ms-file-creation-time": "2022-09-28T21:47:01.4774879Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:01.4774879Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare583a3e45/dir1?restype=directory\u0026comp=list", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:02 GMT", + "x-ms-file-extended-info": "true", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:47:00 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare583a3e45\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_other_data.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_other_data.json new file mode 100644 index 000000000000..0ee5029ad936 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_include_other_data.json @@ -0,0 +1,447 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AEDD291C5\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AEDE41B07\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:41.4531335Z", + "x-ms-file-creation-time": "2022-09-28T21:46:41.4531335Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:41.4531335Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AEDF4934E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:41.5610702Z", + "x-ms-file-creation-time": "2022-09-28T21:46:41.5610702Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:46:41.5610702Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:41 GMT", + "ETag": "\u00220x8DAA19AEDF9E9B2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:41.5960498Z", + "x-ms-file-creation-time": "2022-09-28T21:46:41.5960498Z", + "x-ms-file-id": "13835093239654252544", + "x-ms-file-last-write-time": "2022-09-28T21:46:41.5960498Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AEDFBBE2A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:41.6080426Z", + "x-ms-file-creation-time": "2022-09-28T21:46:41.6080426Z", + "x-ms-file-id": "13835163608398430208", + "x-ms-file-last-write-time": "2022-09-28T21:46:41.6080426Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:41 GMT", + "ETag": "\u00220x8DAA19AEDFF8E2E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:41.6330286Z", + "x-ms-file-creation-time": "2022-09-28T21:46:41.6330286Z", + "x-ms-file-id": "13835075647468208128", + "x-ms-file-last-write-time": "2022-09-28T21:46:41.6330286Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AEDFF8E2E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:41.6330286Z", + "x-ms-file-creation-time": "2022-09-28T21:46:41.6330286Z", + "x-ms-file-id": "13835146016212385792", + "x-ms-file-last-write-time": "2022-09-28T21:46:41.6330286Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:43 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:46:41 GMT", + "ETag": "\u00220x8DAA19AEE0E0AFA\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:41.7279738Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:43 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:46:40 GMT", + "ETag": "\u00220x8DAA19AEE0F6A50\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:41 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:41.7369680Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:46:42 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:59 GMT", + "ETag": "\u00220x8DAA19AF8CF6A74\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:46:59.7724788Z", + "x-ms-file-creation-time": "2022-09-28T21:46:59.7724788Z", + "x-ms-file-id": "13835110831840296960", + "x-ms-file-last-write-time": "2022-09-28T21:46:59.7724788Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:01 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:46:59 GMT", + "ETag": "\u00220x8DAA19AF8F0A922\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:46:59.9903522Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04/dir1?restype=directory\u0026comp=list\u0026include=timestamps,Etag,Attributes,PermissionKey", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:01 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare9bf43d04\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E13835075647468208128\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003CCreationTime\u003E2022-09-28T21:46:41.6330286Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:46:41.6330286Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:46:41.7279738Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:46:41.7279738Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:46:41 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA19AEE0E0AFA\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EArchive\u003C/Attributes\u003E\u003CPermissionKey\u003E3254952746172754359*9622787259914961209\u003C/PermissionKey\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile2\u003C/Name\u003E\u003CFileId\u003E13835110831840296960\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003CCreationTime\u003E2022-09-28T21:46:59.7724788Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:46:59.7724788Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:46:59.9903522Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:46:59.9903522Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:46:59 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA19AF8F0A922\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EArchive\u003C/Attributes\u003E\u003CPermissionKey\u003E3254952746172754359*9622787259914961209\u003C/PermissionKey\u003E\u003C/File\u003E\u003CFile\u003E\u003CName\u003Efile3\u003C/Name\u003E\u003CFileId\u003E13835146016212385792\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003CCreationTime\u003E2022-09-28T21:46:41.6330286Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:46:41.6330286Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:46:41.7369680Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:46:41.7369680Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:46:41 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA19AEE0F6A50\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EArchive\u003C/Attributes\u003E\u003CPermissionKey\u003E3254952746172754359*9622787259914961209\u003C/PermissionKey\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties\u003E\u003CCreationTime\u003E2022-09-28T21:46:41.5610702Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:46:41.5610702Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:46:41.5610702Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:46:41.5610702Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:46:41 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA19AEDF4934E\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EDirectory\u003C/Attributes\u003E\u003CPermissionKey\u003E17100207456270243504*9622787259914961209\u003C/PermissionKey\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E13835093239654252544\u003C/FileId\u003E\u003CProperties\u003E\u003CCreationTime\u003E2022-09-28T21:46:41.5960498Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:46:41.5960498Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:46:41.5960498Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:46:41.5960498Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:46:41 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA19AEDF9E9B2\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EDirectory\u003C/Attributes\u003E\u003CPermissionKey\u003E17100207456270243504*9622787259914961209\u003C/PermissionKey\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir3\u003C/Name\u003E\u003CFileId\u003E13835163608398430208\u003C/FileId\u003E\u003CProperties\u003E\u003CCreationTime\u003E2022-09-28T21:46:41.6080426Z\u003C/CreationTime\u003E\u003CLastAccessTime\u003E2022-09-28T21:46:41.6080426Z\u003C/LastAccessTime\u003E\u003CLastWriteTime\u003E2022-09-28T21:46:41.6080426Z\u003C/LastWriteTime\u003E\u003CChangeTime\u003E2022-09-28T21:46:41.6080426Z\u003C/ChangeTime\u003E\u003CLast-Modified\u003EWed, 28 Sep 2022 21:46:41 GMT\u003C/Last-Modified\u003E\u003CEtag\u003E\u00220x8DAA19AEDFBBE2A\u0022\u003C/Etag\u003E\u003C/Properties\u003E\u003CAttributes\u003EDirectory\u003C/Attributes\u003E\u003CPermissionKey\u003E17100207456270243504*9622787259914961209\u003C/PermissionKey\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare9bf43d04?restype=share", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:01 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:59 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_prefix.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_prefix.json new file mode 100644 index 000000000000..f912717051a3 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_prefix.json @@ -0,0 +1,423 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA0BEDCF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA1FD443\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:01.9771971Z", + "x-ms-file-creation-time": "2022-09-28T21:47:01.9771971Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:01.9771971Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA2EED35\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:02.0761397Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.0761397Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.0761397Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA32210D\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:02.0971277Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.0971277Z", + "x-ms-file-id": "13835093239654252544", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.0971277Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA346AA9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:02.1121193Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.1121193Z", + "x-ms-file-id": "13835163608398430208", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.1121193Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA346AA9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:02.1121193Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.1121193Z", + "x-ms-file-id": "13835075647468208128", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.1121193Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA36662C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:02.1251116Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.1251116Z", + "x-ms-file-id": "13835110831840296960", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.1251116Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA3491B3\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:02.1131187Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.1131187Z", + "x-ms-file-id": "13835146016212385792", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.1131187Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFA45CD30\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:02.2260528Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFA472C89\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:02.2350473Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA469063\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:02.2310499Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharef5533a4f/dir1?restype=directory\u0026comp=list\u0026prefix=sub", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:03 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utsharef5533a4f\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CPrefix\u003Esub\u003C/Prefix\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E13835110831840296960\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir3\u003C/Name\u003E\u003CFileId\u003E13835093239654252544\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_snapshot.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_snapshot.json new file mode 100644 index 000000000000..f8520e6467a0 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_list_subdirectories_and_files_with_snapshot.json @@ -0,0 +1,450 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA845D5A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:01 GMT", + "ETag": "\u00220x8DAA19AFA9826AD\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:02.7657389Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.7657389Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.7657389Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1%2Fsubdir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFAAA2562\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:02.8836706Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.8836706Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.8836706Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1%2Fsubdir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFAAE1C6A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:02.9096554Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.9096554Z", + "x-ms-file-id": "13835093239654252544", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.9096554Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1/file1", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFAB06600\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:02.9246464Z", + "x-ms-file-creation-time": "2022-09-28T21:47:02.9246464Z", + "x-ms-file-id": "13835163608398430208", + "x-ms-file-last-write-time": "2022-09-28T21:47:02.9246464Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1/file1?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTE=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "idkDvDXe3nJP1SxRQ3/1/Q==", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFAC34EF3\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:03.0485747Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31?restype=share\u0026comp=snapshot", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFA845D5A\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:02 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-snapshot": "2022-09-28T21:47:03.0000000Z", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1/file2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFAE96EE7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:03.2984295Z", + "x-ms-file-creation-time": "2022-09-28T21:47:03.2984295Z", + "x-ms-file-id": "11529250230440558592", + "x-ms-file-last-write-time": "2022-09-28T21:47:03.2984295Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1%2Fsubdir3?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFAE85D9B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:03.2914331Z", + "x-ms-file-creation-time": "2022-09-28T21:47:03.2914331Z", + "x-ms-file-id": "11529320599184736256", + "x-ms-file-last-write-time": "2022-09-28T21:47:03.2914331Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1/file3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "5", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFAE96EE7\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:03.2984295Z", + "x-ms-file-creation-time": "2022-09-28T21:47:03.2984295Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:47:03.2984295Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1/file2?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTI=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "/5zy1pDYiMszf2v0UmthMA==", + "Date": "Wed, 28 Sep 2022 21:47:02 GMT", + "ETag": "\u00220x8DAA19AFAFB4687\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:03.4153607Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1/file3?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "5", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-range": "bytes=0-4", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "ZGF0YTM=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "eTafePeILBuqu8fUXcXaoA==", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "ETag": "\u00220x8DAA19AFAFBBBB1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:03.4183601Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare6d743b31/dir1?restype=directory\u0026comp=list\u0026sharesnapshot=2022-09-28T21:47:03.0000000Z", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:04 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:47:03 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CEnumerationResults ServiceEndpoint=\u0022https://storagename.file.core.windows.net/\u0022 ShareName=\u0022utshare6d743b31\u0022 ShareSnapshot=\u00222022-09-28T21:47:03.0000000Z\u0022 DirectoryPath=\u0022dir1\u0022\u003E\u003CDirectoryId\u003E13835128424026341376\u003C/DirectoryId\u003E\u003CEntries\u003E\u003CFile\u003E\u003CName\u003Efile1\u003C/Name\u003E\u003CFileId\u003E13835163608398430208\u003C/FileId\u003E\u003CProperties\u003E\u003CContent-Length\u003E5\u003C/Content-Length\u003E\u003C/Properties\u003E\u003C/File\u003E\u003CDirectory\u003E\u003CName\u003Esubdir1\u003C/Name\u003E\u003CFileId\u003E11529285414812647424\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003CDirectory\u003E\u003CName\u003Esubdir2\u003C/Name\u003E\u003CFileId\u003E13835093239654252544\u003C/FileId\u003E\u003CProperties /\u003E\u003C/Directory\u003E\u003C/Entries\u003E\u003CNextMarker /\u003E\u003C/EnumerationResults\u003E" + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory.json new file mode 100644 index 000000000000..ea392c5b95f8 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory.json @@ -0,0 +1,137 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea9812fed?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:07 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:05 GMT", + "ETag": "\u00220x8DAA19AFCC1C4AF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea9812fed/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:07 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:05 GMT", + "ETag": "\u00220x8DAA19AFCD2CD9F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-creation-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea9812fed/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:08 GMT", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utsharea9812fed/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:05 GMT", + "ETag": "\u00220x8DAA19AFCFDCED9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:06.7874009Z", + "x-ms-file-creation-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea9812fed/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:08 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFCFDCED9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:06 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:06.7874009Z", + "x-ms-file-creation-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:06.5055647Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_dest_lease.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_dest_lease.json new file mode 100644 index 000000000000..19c6641a9c3e --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_dest_lease.json @@ -0,0 +1,279 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFF8ADCE0\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFF9B95B2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-creation-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFFAD9463\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:11.2947811Z", + "x-ms-file-creation-time": "2022-09-28T21:47:11.2947811Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:11.2947811Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir2/test", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "11", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFFC203B5\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2022-09-28T21:47:11.4287029Z", + "x-ms-file-creation-time": "2022-09-28T21:47:11.4287029Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:47:11.4287029Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir2/test?comp=range", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "11", + "Content-Type": "application/octet-stream", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-range": "bytes=0-10", + "x-ms-version": "2021-06-08", + "x-ms-write": "update" + }, + "RequestBody": "SGVsbG8gV29ybGQ=", + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Content-MD5": "sQqNsWTgdUEFt6mb5y4/5Q==", + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFFD36640\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-last-write-time": "2022-09-28T21:47:11.5426368Z", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir2/test?comp=lease", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-lease-action": "acquire", + "x-ms-lease-duration": "-1", + "x-ms-proposed-lease-id": "00000000-1111-2222-3333-444444444444", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFFD36640\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-lease-id": "00000000-1111-2222-3333-444444444444", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir2%2Ftest?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-destination-lease-id": "00000000-1111-2222-3333-444444444444", + "x-ms-file-rename-replace-if-exists": "true", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utsharedc2d3465/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:10 GMT", + "ETag": "\u00220x8DAA19AFFF71590\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:11.7765008Z", + "x-ms-file-creation-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharedc2d3465/dir2%2Ftest?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:11 GMT", + "ETag": "\u00220x8DAA19AFFF71590\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:11 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:11.7765008Z", + "x-ms-file-creation-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:11.1768498Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_different_directory.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_different_directory.json new file mode 100644 index 000000000000..26a2b7f13af0 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_different_directory.json @@ -0,0 +1,213 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharece763837?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:08 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFD390628\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharece763837/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:08 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFD4A0EBF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:07.2871103Z", + "x-ms-file-creation-time": "2022-09-28T21:47:07.2871103Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:07.2871103Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharece763837/dir1%2Fsub1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:08 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFD5BE66B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-creation-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharece763837/dir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:08 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFD6B7477\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:07.5059831Z", + "x-ms-file-creation-time": "2022-09-28T21:47:07.5059831Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:47:07.5059831Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharece763837/dir2%2Fsub2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utsharece763837/dir1%2Fsub1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFD7D9A35\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:07.6249141Z", + "x-ms-file-creation-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-parent-id": "16140971433240035328", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharece763837/dir2%2Fsub2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:06 GMT", + "ETag": "\u00220x8DAA19AFD7D9A35\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:07 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:07.6249141Z", + "x-ms-file-creation-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:07.4040427Z", + "x-ms-file-parent-id": "16140971433240035328", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_file_permission.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_file_permission.json new file mode 100644 index 000000000000..84a312b19dc2 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_file_permission.json @@ -0,0 +1,166 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareedb43694?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:10 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:08 GMT", + "ETag": "\u00220x8DAA19AFE46573B\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareedb43694?restype=share\u0026comp=filepermission", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:10 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": { + "permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Date": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-file-permission-key": "2471577523372201160*9622787259914961209", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareedb43694/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:10 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:08 GMT", + "ETag": "\u00220x8DAA19AFE687385\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareedb43694/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:10 GMT", + "x-ms-file-permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshareedb43694/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:08 GMT", + "ETag": "\u00220x8DAA19AFE7C1FA2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:09.2929442Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "2471577523372201160*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareedb43694/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:10 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:08 GMT", + "ETag": "\u00220x8DAA19AFE7C1FA2\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:09.2929442Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.1640197Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "2471577523372201160*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_ignore_readonly.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_ignore_readonly.json new file mode 100644 index 000000000000..023fc385c3e2 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_ignore_readonly.json @@ -0,0 +1,217 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeda4368d?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:07 GMT", + "ETag": "\u00220x8DAA19AFDB85CC9\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeda4368d/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:07 GMT", + "ETag": "\u00220x8DAA19AFDCF578C\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-creation-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeda4368d/dir2?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:07 GMT", + "ETag": "\u00220x8DAA19AFDDF33AB\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:08.2645419Z", + "x-ms-file-creation-time": "2022-09-28T21:47:08.2645419Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2022-09-28T21:47:08.2645419Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeda4368d/dir2/test", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-content-length": "1024", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-file-attributes": "ReadOnly", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "Inherit", + "x-ms-type": "file", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:07 GMT", + "ETag": "\u00220x8DAA19AFDF18075\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Archive", + "x-ms-file-change-time": "2022-09-28T21:47:08.3844725Z", + "x-ms-file-creation-time": "2022-09-28T21:47:08.3844725Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2022-09-28T21:47:08.3844725Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "3254952746172754359*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeda4368d/dir2%2Ftest?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:09 GMT", + "x-ms-file-rename-ignore-readonly": "true", + "x-ms-file-rename-replace-if-exists": "true", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshareeda4368d/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:07 GMT", + "ETag": "\u00220x8DAA19AFE05C8C4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:08.5173956Z", + "x-ms-file-creation-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareeda4368d/dir2%2Ftest?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:10 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:07 GMT", + "ETag": "\u00220x8DAA19AFE05C8C4\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:08 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:08.5173956Z", + "x-ms-file-creation-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:08.1606028Z", + "x-ms-file-parent-id": "11529285414812647424", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_preserve_permission.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_preserve_permission.json new file mode 100644 index 000000000000..b1afe6792938 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_preserve_permission.json @@ -0,0 +1,171 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshared27d3860?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:08 GMT", + "ETag": "\u00220x8DAA19AFEC279FE\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared27d3860/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFED57CFF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared27d3860/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFED57CFF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:09 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared27d3860/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-file-permission": "preserve", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshared27d3860/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFEF55C51\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:10.0874833Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared27d3860/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFEF55C51\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:10.0874833Z", + "x-ms-file-creation-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:09.8786047Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "7468832583480677772*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_share_sas.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_share_sas.json new file mode 100644 index 000000000000..f1ad41372afc --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_share_sas.json @@ -0,0 +1,137 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea75e3405?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:11 GMT", + "ETag": "\u00220x8DAA19B00324F0F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea75e3405/dir1?restype=directory\u0026se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:11 GMT", + "ETag": "\u00220x8DAA19B004BDFB5\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-creation-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea75e3405/dir2?restype=directory\u0026comp=rename\u0026se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utsharea75e3405/dir1?se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:11 GMT", + "ETag": "\u00220x8DAA19B0060C429\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:12.4690985Z", + "x-ms-file-creation-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharea75e3405/dir2?restype=directory\u0026se=end\u0026sp=rw\u0026sv=2021-06-08\u0026sr=s\u0026sig=fake_token_value", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:13 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:11 GMT", + "ETag": "\u00220x8DAA19B0060C429\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:12 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:12.4690985Z", + "x-ms-file-creation-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:12.3321781Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_smb_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_smb_properties.json new file mode 100644 index 000000000000..827957fd04fd --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_rename_directory_smb_properties.json @@ -0,0 +1,141 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb7c4363a?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFF2CEC16\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb7c4363a/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:11 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFF3DCC34\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:47:10.5622068Z", + "x-ms-file-creation-time": "2022-09-28T21:47:10.5622068Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:47:10.5622068Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb7c4363a/dir2?restype=directory\u0026comp=rename", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-file-attributes": "ReadOnly|Directory", + "x-ms-file-change-time": "2022-03-07T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-01-26T10:09:30.5000000Z", + "x-ms-file-last-write-time": "2022-01-26T10:14:30.5000000Z", + "x-ms-file-rename-source": "https://storagename.file.core.windows.net/utshareb7c4363a/dir1", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFF4EB99F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-07T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-01-26T10:09:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-01-26T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshareb7c4363a/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:47:12 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:47:09 GMT", + "ETag": "\u00220x8DAA19AFF4EB99F\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:47:10 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "ReadOnly | Directory", + "x-ms-file-change-time": "2022-03-07T10:14:30.5000000Z", + "x-ms-file-creation-time": "2022-01-26T10:09:30.5000000Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-01-26T10:14:30.5000000Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_empty_smb_properties.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_empty_smb_properties.json new file mode 100644 index 000000000000..385de6fdf2e3 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_empty_smb_properties.json @@ -0,0 +1,173 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshare26503e63?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:40 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC543B69\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare26503e63/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:40 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC6359A1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-creation-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare26503e63/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:40 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC6359A1\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:38 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-creation-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare26503e63/dir1?restype=directory\u0026comp=properties", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:40 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "preserve", + "x-ms-file-last-write-time": "preserve", + "x-ms-file-permission": "preserve", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:38 GMT", + "ETag": "\u00220x8DAA19AEC816476\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:39.1284854Z", + "x-ms-file-creation-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshare26503e63/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:40 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:39 GMT", + "ETag": "\u00220x8DAA19AEC816476\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:39.1284854Z", + "x-ms-file-creation-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:38.9316001Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_file_permission_key.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_file_permission_key.json new file mode 100644 index 000000000000..4ef73502ae83 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_set_directory_properties_with_file_permission_key.json @@ -0,0 +1,174 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee43e3dd7?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:40 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:39 GMT", + "ETag": "\u00220x8DAA19AECBBEEB6\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee43e3dd7/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:39 GMT", + "ETag": "\u00220x8DAA19AECCE4080\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:39.6321920Z", + "x-ms-file-creation-time": "2022-09-28T21:46:39.6321920Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:39.6321920Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee43e3dd7/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:39 GMT", + "ETag": "\u00220x8DAA19AECCE4080\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:39.6321920Z", + "x-ms-file-creation-time": "2022-09-28T21:46:39.6321920Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:39.6321920Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee43e3dd7/dir1?restype=directory\u0026comp=properties", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-file-attributes": "None", + "x-ms-file-change-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-creation-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-last-write-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:39 GMT", + "ETag": "\u00220x8DAA19AECEFF44E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-creation-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "4688466746564951936*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utsharee43e3dd7/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:41 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:39 GMT", + "ETag": "\u00220x8DAA19AECEFF44E\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:39 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-creation-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T22:46:39.6321920Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "4688466746564951936*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_share_directory_exists.json b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_share_directory_exists.json new file mode 100644 index 000000000000..27804fc8d09c --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.pyTestStorageDirectoryAsynctest_share_directory_exists.json @@ -0,0 +1,131 @@ +{ + "Entries": [ + { + "RequestUri": "https://storagename.file.core.windows.net/utshared8303287?restype=share", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:36 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:34 GMT", + "ETag": "\u00220x8DAA19AEA1C03C3\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared8303287/dir1?restype=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:36 GMT", + "x-ms-file-attributes": "none", + "x-ms-file-creation-time": "now", + "x-ms-file-last-write-time": "now", + "x-ms-file-permission": "inherit", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "ETag": "\u00220x8DAA19AEA2D45EF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:35.2217583Z", + "x-ms-file-creation-time": "2022-09-28T21:46:35.2217583Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:35.2217583Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared8303287/dir1?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:36 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "ETag": "\u00220x8DAA19AEA2D45EF\u0022", + "Last-Modified": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2022-09-28T21:46:35.2217583Z", + "x-ms-file-creation-time": "2022-09-28T21:46:35.2217583Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2022-09-28T21:46:35.2217583Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "17100207456270243504*9622787259914961209", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://storagename.file.core.windows.net/utshared8303287/dir2?restype=directory", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-storage-file-share/12.10.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)", + "x-ms-date": "Wed, 28 Sep 2022 21:46:36 GMT", + "x-ms-version": "2021-06-08" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "223", + "Content-Type": "application/xml", + "Date": "Wed, 28 Sep 2022 21:46:35 GMT", + "Server": [ + "Windows-Azure-File/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-error-code": "ResourceNotFound", + "x-ms-version": "2021-06-08" + }, + "ResponseBody": [ + "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EResourceNotFound\u003C/Code\u003E\u003CMessage\u003EThe specified resource does not exist.\n", + "RequestId:d2d08e02-b01a-0013-6f83-d369ac000000\n", + "Time:2022-09-28T21:46:35.4184757Z\u003C/Message\u003E\u003C/Error\u003E" + ] + } + ], + "Variables": {} +} diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_async.yaml deleted file mode 100644 index c81b3efc3af5..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_async.yaml +++ /dev/null @@ -1,82 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:11 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareff014ac?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:11 GMT - etag: '"0x8D79A14D2988E63"' - last-modified: Wed, 15 Jan 2020 23:44:11 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareff014ac - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:11 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareff014ac/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:11 GMT - etag: '"0x8D79A14D2A1482C"' - last-modified: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:12.0023084Z' - x-ms-file-creation-time: '2020-01-15T23:44:12.0023084Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:12.0023084Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareff014ac/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_fail_on_exist_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_fail_on_exist_async.yaml deleted file mode 100644 index e74e8ba9e49c..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_fail_on_exist_async.yaml +++ /dev/null @@ -1,123 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare5b431a6f?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D2C30F3C"' - last-modified: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare5b431a6f - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare5b431a6f/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D2CC5735"' - last-modified: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:12.2844981Z' - x-ms-file-creation-time: '2020-01-15T23:44:12.2844981Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:12.2844981Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare5b431a6f/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare5b431a6f/dir1?restype=directory - response: - body: - string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:50d04836-401a-001f-04fd-cb3985000000\nTime:2020-01-15T23:44:12.3627710Z" - headers: - content-length: '228' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceAlreadyExists - x-ms-version: '2019-02-02' - status: - code: 409 - message: The specified resource already exists. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare5b431a6f/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_with_metadata_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_with_metadata_async.yaml deleted file mode 100644 index 0c584a076972..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directories_with_metadata_async.yaml +++ /dev/null @@ -1,128 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare5c431a67?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D3068DA8"' - last-modified: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare5c431a67 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-hello: - - world - x-ms-meta-number: - - '42' - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare5c431a67/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D3129419"' - last-modified: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:12.7448089Z' - x-ms-file-creation-time: '2020-01-15T23:44:12.7448089Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:12.7448089Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare5c431a67/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare5c431a67/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D3129419"' - last-modified: Wed, 15 Jan 2020 23:44:12 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:12.7448089Z' - x-ms-file-creation-time: '2020-01-15T23:44:12.7448089Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:12.7448089Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-meta-hello: world - x-ms-meta-number: '42' - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare5c431a67/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directory_set_smb_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directory_set_smb_properties.yaml deleted file mode 100644 index 1ce451dfc103..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_directory_set_smb_properties.yaml +++ /dev/null @@ -1,109 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.8.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 12 Mar 2022 00:39:13 GMT - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare100d195f?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 12 Mar 2022 00:39:13 GMT - etag: '"0x8DA03C0BAFD59B0"' - last-modified: Sat, 12 Mar 2022 00:39:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-06-08' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare100d195f?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.8.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 12 Mar 2022 00:39:13 GMT - x-ms-file-attributes: - - ReadOnly|Directory - x-ms-file-change-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-last-write-time: - - '2022-03-10T10:14:30.5000000Z' - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshare100d195f/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 12 Mar 2022 00:39:13 GMT - etag: '"0x8DA027EC4121240"' - last-modified: Thu, 10 Mar 2022 10:14:30 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: ReadOnly | Directory - x-ms-file-change-time: '2022-03-10T10:14:30.5000000Z' - x-ms-file-creation-time: '2022-03-10T10:14:30.5000000Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-10T10:14:30.5000000Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare100d195f/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.8.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Sat, 12 Mar 2022 00:39:13 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utshare100d195f/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Sat, 12 Mar 2022 00:39:13 GMT - etag: '"0x8DA027EC4121240"' - last-modified: Thu, 10 Mar 2022 10:14:30 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: ReadOnly | Directory - x-ms-file-change-time: '2022-03-10T10:14:30.5000000Z' - x-ms-file-creation-time: '2022-03-10T10:14:30.5000000Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-10T10:14:30.5000000Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare100d195f/dir1?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_file_in_directory_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_file_in_directory_async.yaml deleted file mode 100644 index 63feb2f325a6..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_file_in_directory_async.yaml +++ /dev/null @@ -1,226 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:12 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare92921719?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D3553606"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92921719 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare92921719/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:12 GMT - etag: '"0x8D79A14D361AC33"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:13.2631603Z' - x-ms-file-creation-time: '2020-01-15T23:44:13.2631603Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:13.2631603Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92921719/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '8192' - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare92921719/dir1/file92921719 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D36A121B"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:13.3181979Z' - x-ms-file-creation-time: '2020-01-15T23:44:13.3181979Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:13.3181979Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92921719/dir1/file92921719 - - '' - - '' -- request: - body: '12345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678' - headers: - Content-Length: - - '8192' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-range: - - bytes=0-8191 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare92921719/dir1/file92921719?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: L8MEum9/C3zMQV5vDJbgTA== - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D373D7D2"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92921719/dir1/file92921719 - - comp=range - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-range: - - bytes=0-33554431 - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare92921719/dir1/file92921719 - response: - body: - string: '12345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678' - headers: - accept-ranges: bytes - content-length: '8192' - content-range: bytes 0-8191/8192 - content-type: application/octet-stream - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D373D7D2"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:13.3181979Z' - x-ms-file-creation-time: '2020-01-15T23:44:13.3181979Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:13.3181979Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-lease-state: available - x-ms-lease-status: unlocked - x-ms-server-encrypted: 'true' - x-ms-type: File - x-ms-version: '2019-02-02' - status: - code: 206 - message: Partial Content - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92921719/dir1/file92921719 - - '' - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_async.yaml deleted file mode 100644 index 1558ab3dc10c..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_async.yaml +++ /dev/null @@ -1,130 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare513515f6?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D3B2DFB4"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare513515f6 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare513515f6/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D3C05752"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:13.8835794Z' - x-ms-file-creation-time: '2020-01-15T23:44:13.8835794Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:13.8835794Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare513515f6/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:13 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare513515f6/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D3C9A7BE"' - last-modified: Wed, 15 Jan 2020 23:44:13 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:13.9446206Z' - x-ms-file-creation-time: '2020-01-15T23:44:13.9446206Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:13.9446206Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare513515f6/dir1%2Fdir2 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_with_metadata_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_with_metadata_async.yaml deleted file mode 100644 index 392e2fbbb01b..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_create_subdirectories_with_metadata_async.yaml +++ /dev/null @@ -1,176 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareaf941bb1?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D4046BE6"' - last-modified: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareaf941bb1 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareaf941bb1/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D40D9A3C"' - last-modified: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:14.3899196Z' - x-ms-file-creation-time: '2020-01-15T23:44:14.3899196Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:14.3899196Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareaf941bb1/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-hello: - - world - x-ms-meta-number: - - '42' - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareaf941bb1/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:13 GMT - etag: '"0x8D79A14D419F86B"' - last-modified: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:14.4709739Z' - x-ms-file-creation-time: '2020-01-15T23:44:14.4709739Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:14.4709739Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareaf941bb1/dir1%2Fdir2 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshareaf941bb1/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:14 GMT - etag: '"0x8D79A14D419F86B"' - last-modified: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:14.4709739Z' - x-ms-file-creation-time: '2020-01-15T23:44:14.4709739Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:14.4709739Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-meta-hello: world - x-ms-meta-number: '42' - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareaf941bb1/dir1%2Fdir2 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_existing_share_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_existing_share_async.yaml deleted file mode 100644 index cc928bca5cbb..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_existing_share_async.yaml +++ /dev/null @@ -1,145 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecd351c3a?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:14 GMT - etag: '"0x8D79A14D451548C"' - last-modified: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecd351c3a - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecd351c3a/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:14 GMT - etag: '"0x8D79A14D45A67E1"' - last-modified: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:14.8932577Z' - x-ms-file-creation-time: '2020-01-15T23:44:14.8932577Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:14.8932577Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecd351c3a/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utsharecd351c3a/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecd351c3a/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:14 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharecd351c3a/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:545a4e27-e01a-0012-1afd-cbd689000000\nTime:2020-01-15T23:44:15.0229139Z" - headers: - content-length: '223' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecd351c3a/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_non_existing_directory_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_non_existing_directory_async.yaml deleted file mode 100644 index 3ebb14074c7b..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_directory_with_non_existing_directory_async.yaml +++ /dev/null @@ -1,67 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharebe8e1fa6?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:14 GMT - etag: '"0x8D79A14D4960B51"' - last-modified: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharebe8e1fa6 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utsharebe8e1fa6/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:d41d03d4-301a-0010-44fd-cbd473000000\nTime:2020-01-15T23:44:15.3441455Z" - headers: - content-length: '223' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharebe8e1fa6/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_file_in_directory_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_file_in_directory_async.yaml deleted file mode 100644 index fc8cdae9e844..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_file_in_directory_async.yaml +++ /dev/null @@ -1,237 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare92671718?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D4CE0024"' - last-modified: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92671718 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare92671718/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D4D971C9"' - last-modified: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:15.7258185Z' - x-ms-file-creation-time: '2020-01-15T23:44:15.7258185Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:15.7258185Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92671718/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '11' - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare92671718/dir1/file92671718 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D4E3377C"' - last-modified: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:15.7898620Z' - x-ms-file-creation-time: '2020-01-15T23:44:15.7898620Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:15.7898620Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92671718/dir1/file92671718 - - '' - - '' -- request: - body: hello world - headers: - Content-Length: - - '11' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-range: - - bytes=0-10 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare92671718/dir1/file92671718?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: XrY7u+Ae7tCTyyK7j1rNww== - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D4EDC0A3"' - last-modified: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92671718/dir1/file92671718 - - comp=range - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare92671718/dir1/file92671718 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92671718/dir1/file92671718 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:15 GMT - x-ms-version: - - '2019-02-02' - method: HEAD - uri: https://storagename.file.core.windows.net/utshare92671718/dir1/file92671718 - response: - body: - string: '' - headers: - date: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare92671718/dir1/file92671718 - - '' - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_subdirectories_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_subdirectories_async.yaml deleted file mode 100644 index 9a20e1cd7da8..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_delete_subdirectories_async.yaml +++ /dev/null @@ -1,193 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare510d15f5?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D52C8BE7"' - last-modified: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare510d15f5 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare510d15f5/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D535D2A4"' - last-modified: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:16.3312292Z' - x-ms-file-creation-time: '2020-01-15T23:44:16.3312292Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:16.3312292Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare510d15f5/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare510d15f5/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - etag: '"0x8D79A14D53DC34A"' - last-modified: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:16.3832650Z' - x-ms-file-creation-time: '2020-01-15T23:44:16.3832650Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:16.3832650Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare510d15f5/dir1%2Fdir2 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare510d15f5/dir1%2Fdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare510d15f5/dir1%2Fdir2 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare510d15f5/dir1%2Fdir2?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:740e3b12-301a-005f-7efd-cb106b000000\nTime:2020-01-15T23:44:16.5005990Z" - headers: - content-length: '223' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare510d15f5/dir1%2Fdir2 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_async.yaml deleted file mode 100644 index 29113eac57b1..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_async.yaml +++ /dev/null @@ -1,122 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareea0a1410?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D57A2571"' - last-modified: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareea0a1410 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareea0a1410/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D58698A8"' - last-modified: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:16.8605864Z' - x-ms-file-creation-time: '2020-01-15T23:44:16.8605864Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:16.8605864Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareea0a1410/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:16 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshareea0a1410/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D58698A8"' - last-modified: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:16.8605864Z' - x-ms-file-creation-time: '2020-01-15T23:44:16.8605864Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:16.8605864Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareea0a1410/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_with_snapshot_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_with_snapshot_async.yaml deleted file mode 100644 index 10c8b79179b0..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_exists_with_snapshot_async.yaml +++ /dev/null @@ -1,185 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2fa019fa?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D5B6EC61"' - last-modified: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare2fa019fa - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2fa019fa/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D5BEF070"' - last-modified: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:17.2298352Z' - x-ms-file-creation-time: '2020-01-15T23:44:17.2298352Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:17.2298352Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare2fa019fa/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2fa019fa?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D5B6EC61"' - last-modified: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: '2020-01-15T23:44:17.0000000Z' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare2fa019fa - - restype=share&comp=snapshot - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: DELETE - uri: https://storagename.file.core.windows.net/utshare2fa019fa/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 202 - message: Accepted - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare2fa019fa/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare2fa019fa/dir1?restype=directory&sharesnapshot=2020-01-15T23:44:17.0000000Z - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:16 GMT - etag: '"0x8D79A14D5BEF070"' - last-modified: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:17.2298352Z' - x-ms-file-creation-time: '2020-01-15T23:44:17.2298352Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:17.2298352Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare2fa019fa/dir1 - - restype=directory&sharesnapshot=2020-01-15T23:44:17.0000000Z - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_async.yaml deleted file mode 100644 index e92ebfa18050..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_async.yaml +++ /dev/null @@ -1,67 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e7115c0?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:17 GMT - etag: '"0x8D79A14D6121A4B"' - last-modified: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare3e7115c0 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare3e7115c0/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:4cb570be-e01a-0030-30fd-cbb8bf000000\nTime:2020-01-15T23:44:17.8338969Z" - headers: - content-length: '223' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare3e7115c0/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_with_snapshot_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_with_snapshot_async.yaml deleted file mode 100644 index 5f555f7aea4f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_not_exists_with_snapshot_async.yaml +++ /dev/null @@ -1,148 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:17 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9b981baa?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:17 GMT - etag: '"0x8D79A14D644FB52"' - last-modified: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9b981baa - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:18 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9b981baa?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:17 GMT - etag: '"0x8D79A14D644FB52"' - last-modified: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: '2020-01-15T23:44:18.0000000Z' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9b981baa - - restype=share&comp=snapshot - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:18 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9b981baa/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:17 GMT - etag: '"0x8D79A14D65ECE5A"' - last-modified: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:18.2775386Z' - x-ms-file-creation-time: '2020-01-15T23:44:18.2775386Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:18.2775386Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9b981baa/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:18 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare9b981baa/dir1?restype=directory&sharesnapshot=2020-01-15T23:44:18.0000000Z - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:70fe9429-e01a-0056-29fd-cb0ae5000000\nTime:2020-01-15T23:44:18.3454644Z" - headers: - content-length: '223' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:17 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9b981baa/dir1 - - restype=directory&sharesnapshot=2020-01-15T23:44:18.0000000Z - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_parent_not_exists_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_parent_not_exists_async.yaml deleted file mode 100644 index 7d65d74a7760..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_directory_parent_not_exists_async.yaml +++ /dev/null @@ -1,67 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:18 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharee15b18a9?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:18 GMT - etag: '"0x8D79A14D699BFC1"' - last-modified: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharee15b18a9 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:18 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharee15b18a9/missing1%2Fmissing2?restype=directory - response: - body: - string: "\uFEFFParentNotFoundThe - specified parent path does not exist.\nRequestId:28a47214-001a-0018-22fd-cbcf00000000\nTime:2020-01-15T23:44:18.7148629Z" - headers: - content-length: '224' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ParentNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified parent path does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharee15b18a9/missing1%2Fmissing2 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_metadata_with_snapshot_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_metadata_with_snapshot_async.yaml deleted file mode 100644 index 29815143a925..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_metadata_with_snapshot_async.yaml +++ /dev/null @@ -1,198 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:18 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecc781c3a?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:18 GMT - etag: '"0x8D79A14D6CC5295"' - last-modified: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecc781c3a - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-test1: - - foo - x-ms-meta-test2: - - bar - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecc781c3a/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:19 GMT - etag: '"0x8D79A14D6D74767"' - last-modified: Wed, 15 Jan 2020 23:44:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:19.0670695Z' - x-ms-file-creation-time: '2020-01-15T23:44:19.0670695Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:19.0670695Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecc781c3a/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecc781c3a?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:19 GMT - etag: '"0x8D79A14D6CC5295"' - last-modified: Wed, 15 Jan 2020 23:44:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: '2020-01-15T23:44:19.0000000Z' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecc781c3a - - restype=share&comp=snapshot - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-meta-test100: - - foo100 - x-ms-meta-test200: - - bar200 - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecc781c3a/dir1?restype=directory&comp=metadata - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:19 GMT - etag: '"0x8D79A14D6F1B1C4"' - last-modified: Wed, 15 Jan 2020 23:44:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecc781c3a/dir1 - - restype=directory&comp=metadata - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharecc781c3a/dir1?restype=directory&sharesnapshot=2020-01-15T23:44:19.0000000Z - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:19 GMT - etag: '"0x8D79A14D6D74767"' - last-modified: Wed, 15 Jan 2020 23:44:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:19.0670695Z' - x-ms-file-creation-time: '2020-01-15T23:44:19.0670695Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:19.0670695Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-meta-test1: foo - x-ms-meta-test2: bar - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecc781c3a/dir1 - - restype=directory&sharesnapshot=2020-01-15T23:44:19.0000000Z - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_async.yaml deleted file mode 100644 index 46c33fc783c4..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_async.yaml +++ /dev/null @@ -1,122 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare97e3175c?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:18 GMT - etag: '"0x8D79A14D72D1527"' - last-modified: Wed, 15 Jan 2020 23:44:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare97e3175c - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare97e3175c/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:18 GMT - etag: '"0x8D79A14D7355620"' - last-modified: Wed, 15 Jan 2020 23:44:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:19.6834848Z' - x-ms-file-creation-time: '2020-01-15T23:44:19.6834848Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:19.6834848Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare97e3175c/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare97e3175c/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:18 GMT - etag: '"0x8D79A14D7355620"' - last-modified: Wed, 15 Jan 2020 23:44:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:19.6834848Z' - x-ms-file-creation-time: '2020-01-15T23:44:19.6834848Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:19.6834848Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare97e3175c/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_server_encryption_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_server_encryption_async.yaml deleted file mode 100644 index ad6485b0fd0e..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_server_encryption_async.yaml +++ /dev/null @@ -1,122 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:19 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare85231efc?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:19 GMT - etag: '"0x8D79A14D77315D9"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare85231efc - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare85231efc/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D782E75A"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:20.1918298Z' - x-ms-file-creation-time: '2020-01-15T23:44:20.1918298Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:20.1918298Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare85231efc/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare85231efc/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D782E75A"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:20.1918298Z' - x-ms-file-creation-time: '2020-01-15T23:44:20.1918298Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:20.1918298Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare85231efc/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_non_existing_directory_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_non_existing_directory_async.yaml deleted file mode 100644 index 1ce04b0fd46c..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_non_existing_directory_async.yaml +++ /dev/null @@ -1,67 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshared07a231f?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D7B54687"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshared07a231f - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshared07a231f/dir1?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:bf9fc753-701a-0071-01fd-cb90ac000000\nTime:2020-01-15T23:44:20.5999987Z" - headers: - content-length: '223' - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2019-02-02' - status: - code: 404 - message: The specified resource does not exist. - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshared07a231f/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_snapshot_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_snapshot_async.yaml deleted file mode 100644 index 60c13d097928..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_directory_properties_with_snapshot_async.yaml +++ /dev/null @@ -1,198 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareba11d46?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D7EF5EDE"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareba11d46 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-meta-test1: - - foo - x-ms-meta-test2: - - bar - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareba11d46/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D7F8C7F8"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:20.9643512Z' - x-ms-file-creation-time: '2020-01-15T23:44:20.9643512Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:20.9643512Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareba11d46/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:20 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareba11d46?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D7EF5EDE"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: '2020-01-15T23:44:21.0000000Z' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareba11d46 - - restype=share&comp=snapshot - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-meta-test100: - - foo100 - x-ms-meta-test200: - - bar200 - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshareba11d46/dir1?restype=directory&comp=metadata - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D8172A9F"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareba11d46/dir1 - - restype=directory&comp=metadata - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshareba11d46/dir1?restype=directory&sharesnapshot=2020-01-15T23:44:21.0000000Z - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D7F8C7F8"' - last-modified: Wed, 15 Jan 2020 23:44:20 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:20.9643512Z' - x-ms-file-creation-time: '2020-01-15T23:44:20.9643512Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:20.9643512Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-meta-test1: foo - x-ms-meta-test2: bar - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshareba11d46/dir1 - - restype=directory&sharesnapshot=2020-01-15T23:44:21.0000000Z - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_set_directory_metadata_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_set_directory_metadata_async.yaml deleted file mode 100644 index 5c8bdbb36d76..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_get_set_directory_metadata_async.yaml +++ /dev/null @@ -1,161 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec53317fb?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:20 GMT - etag: '"0x8D79A14D84349DA"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec53317fb - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec53317fb/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D84AC6A0"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:21.5017120Z' - x-ms-file-creation-time: '2020-01-15T23:44:21.5017120Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:21.5017120Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec53317fb/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-meta-hello: - - world - x-ms-meta-number: - - '43' - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec53317fb/dir1?restype=directory&comp=metadata - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D851CCB6"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec53317fb/dir1 - - restype=directory&comp=metadata - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharec53317fb/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D851CCB6"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:21.5477430Z' - x-ms-file-creation-time: '2020-01-15T23:44:21.5017120Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:21.5017120Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-meta-hello: world - x-ms-meta-number: '43' - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec53317fb/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_nested_subdirectories_and_files_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_nested_subdirectories_and_files_async.yaml deleted file mode 100644 index 33091a8862a0..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_nested_subdirectories_and_files_async.yaml +++ /dev/null @@ -1,544 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D87FA50B"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D886C885"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:21.8949765Z' - x-ms-file-creation-time: '2020-01-15T23:44:21.8949765Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:21.8949765Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D88F2E65"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:21.9500133Z' - x-ms-file-creation-time: '2020-01-15T23:44:21.9500133Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:21.9500133Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1%2Fsubdir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:21 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1%2Fsubdir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8960D66"' - last-modified: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:21.9950438Z' - x-ms-file-creation-time: '2020-01-15T23:44:21.9950438Z' - x-ms-file-id: '16140971433240035328' - x-ms-file-last-write-time: '2020-01-15T23:44:21.9950438Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1%2Fsubdir1%2Fsubdir2 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1%2Fsubdir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D89C9E35"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:22.0380725Z' - x-ms-file-creation-time: '2020-01-15T23:44:22.0380725Z' - x-ms-file-id: '10376363910205800448' - x-ms-file-last-write-time: '2020-01-15T23:44:22.0380725Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1%2Fsubdir1%2Fsubdir3 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1/file1 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8A32F08"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:22.0811016Z' - x-ms-file-creation-time: '2020-01-15T23:44:22.0811016Z' - x-ms-file-id: '14988049928633188352' - x-ms-file-last-write-time: '2020-01-15T23:44:22.0811016Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1/file1 - - '' - - '' -- request: - body: data1 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: idkDvDXe3nJP1SxRQ3/1/Q== - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8AA5C32"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1/file1 - - comp=range - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1/subdir1/file2 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8B8B68A"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:22.2221962Z' - x-ms-file-creation-time: '2020-01-15T23:44:22.2221962Z' - x-ms-file-id: '13835093239654252544' - x-ms-file-last-write-time: '2020-01-15T23:44:22.2221962Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1/subdir1/file2 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1/subdir1/file3 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8B952E5"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:22.2261989Z' - x-ms-file-creation-time: '2020-01-15T23:44:22.2261989Z' - x-ms-file-id: '13835163608398430208' - x-ms-file-last-write-time: '2020-01-15T23:44:22.2261989Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1/subdir1/file3 - - '' - - '' -- request: - body: data2 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1/subdir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: /5zy1pDYiMszf2v0UmthMA== - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8C14383"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1/subdir1/file2 - - comp=range - - '' -- request: - body: data3 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1/subdir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: eTafePeILBuqu8fUXcXaoA== - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8C38DDA"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1/subdir1/file3 - - comp=range - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharecde41c24/dir1?restype=directory&comp=list - response: - body: - string: "\uFEFFfile15subdir1" - headers: - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:21 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharecde41c24/dir1 - - restype=directory&comp=list - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_async.yaml deleted file mode 100644 index 60e793893e2f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_async.yaml +++ /dev/null @@ -1,545 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D8FD59E3"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D90A671A"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:22.7575578Z' - x-ms-file-creation-time: '2020-01-15T23:44:22.7575578Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:22.7575578Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:21 GMT - etag: '"0x8D79A14D912CCFD"' - last-modified: Wed, 15 Jan 2020 23:44:22 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:22.8125949Z' - x-ms-file-creation-time: '2020-01-15T23:44:22.8125949Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:22.8125949Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1%2Fsubdir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1/file2 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D931CC12"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:23.0157330Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.0157330Z' - x-ms-file-id: '13835093239654252544' - x-ms-file-last-write-time: '2020-01-15T23:44:23.0157330Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1/file2 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D931A4F9"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:23.0147321Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.0147321Z' - x-ms-file-id: '13835163608398430208' - x-ms-file-last-write-time: '2020-01-15T23:44:23.0147321Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1%2Fsubdir3 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1/file3 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D9343D7F"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:23.0317439Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.0317439Z' - x-ms-file-id: '13835075647468208128' - x-ms-file-last-write-time: '2020-01-15T23:44:23.0317439Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1/file3 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1/file1 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D9354F1C"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:23.0387484Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.0387484Z' - x-ms-file-id: '13835146016212385792' - x-ms-file-last-write-time: '2020-01-15T23:44:23.0387484Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1/file1 - - '' - - '' -- request: - body: data2 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: /5zy1pDYiMszf2v0UmthMA== - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D93B1C7E"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1/file2 - - comp=range - - '' -- request: - body: data3 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: eTafePeILBuqu8fUXcXaoA== - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D93D8DEB"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1/file3 - - comp=range - - '' -- request: - body: data1 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: idkDvDXe3nJP1SxRQ3/1/Q== - date: Wed, 15 Jan 2020 23:44:22 GMT - etag: '"0x8D79A14D93F3BE8"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1/file1 - - comp=range - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:22 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D959581F"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:23.2749087Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.2749087Z' - x-ms-file-id: '13835110831840296960' - x-ms-file-last-write-time: '2020-01-15T23:44:23.2749087Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1%2Fsubdir2 - - restype=directory - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare11ad1942/dir1?restype=directory&comp=list - response: - body: - string: "\uFEFFfile15file25file35subdir1subdir2subdir3" - headers: - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare11ad1942/dir1 - - restype=directory&comp=list - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_extended_info_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_extended_info_async.yaml deleted file mode 100644 index 8e96895cd3cc..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_extended_info_async.yaml +++ /dev/null @@ -1,146 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:18 GMT - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharea3eb2240?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 06:07:18 GMT - etag: '"0x8D924C382F17A28"' - last-modified: Tue, 01 Jun 2021 06:07:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utsharea3eb2240?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:18 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharea3eb2240/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 06:07:18 GMT - etag: '"0x8D924C382FBFD59"' - last-modified: Tue, 01 Jun 2021 06:07:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-06-01T06:07:18.4410969Z' - x-ms-file-creation-time: '2021-06-01T06:07:18.4410969Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2021-06-01T06:07:18.4410969Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utsharea3eb2240/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:18 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharea3eb2240/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 06:07:18 GMT - etag: '"0x8D924C383048A67"' - last-modified: Tue, 01 Jun 2021 06:07:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-06-01T06:07:18.4971367Z' - x-ms-file-creation-time: '2021-06-01T06:07:18.4971367Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2021-06-01T06:07:18.4971367Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utsharea3eb2240/dir1%2Fsubdir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 06:07:18 GMT - x-ms-file-extended-info: - - 'true' - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharea3eb2240/dir1?restype=directory&comp=list - response: - body: - string: "\uFEFF13835128424026341376subdir111529285414812647424" - headers: - content-type: application/xml - date: Tue, 01 Jun 2021 06:07:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2020-10-02' - status: - code: 200 - message: OK - url: https://seanmcccanary3.file.core.windows.net/utsharea3eb2240/dir1?restype=directory&comp=list -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_other_data_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_other_data_async.yaml deleted file mode 100644 index 0259c916a87f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_include_other_data_async.yaml +++ /dev/null @@ -1,488 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:00 GMT - etag: '"0x8D924C06627972D"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C06634C7DB"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-06-01T05:45:01.6691675Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.6691675Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2021-06-01T05:45:01.6691675Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0663E8DA6"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-06-01T05:45:01.7332134Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.7332134Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2021-06-01T05:45:01.7332134Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1%2Fsubdir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1/file3 - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0665A7F2A"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2021-06-01T05:45:01.9163434Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.9163434Z' - x-ms-file-id: '13835093239654252544' - x-ms-file-last-write-time: '2021-06-01T05:45:01.9163434Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 4010187179898695473*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1/file3 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0665CF097"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-06-01T05:45:01.9323543Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.9323543Z' - x-ms-file-id: '13835163608398430208' - x-ms-file-last-write-time: '2021-06-01T05:45:01.9323543Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1%2Fsubdir3?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1/file2 - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0665D3EC1"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2021-06-01T05:45:01.9343553Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.9343553Z' - x-ms-file-id: '13835075647468208128' - x-ms-file-last-write-time: '2021-06-01T05:45:01.9343553Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 4010187179898695473*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1/file2 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1/file1 - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0665DDB22"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2021-06-01T05:45:01.9383586Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.9383586Z' - x-ms-file-id: '13835146016212385792' - x-ms-file-last-write-time: '2021-06-01T05:45:01.9383586Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 4010187179898695473*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1/file1 -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0665E9E91"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-06-01T05:45:01.9433617Z' - x-ms-file-creation-time: '2021-06-01T05:45:01.9433617Z' - x-ms-file-id: '13835110831840296960' - x-ms-file-last-write-time: '2021-06-01T05:45:01.9433617Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 17860367565182308406*11459378189709739967 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1%2Fsubdir2?restype=directory -- request: - body: data3 - headers: - Accept: - - application/xml - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2020-10-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: eTafePeILBuqu8fUXcXaoA== - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C06663F6C2"' - last-modified: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1/file3?comp=range -- request: - body: data2 - headers: - Accept: - - application/xml - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:01 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2020-10-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: /5zy1pDYiMszf2v0UmthMA== - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0666B722E"' - last-modified: Tue, 01 Jun 2021 05:45:02 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1/file2?comp=range -- request: - body: data1 - headers: - Accept: - - application/xml - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:02 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2020-10-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: idkDvDXe3nJP1SxRQ3/1/Q== - date: Tue, 01 Jun 2021 05:45:01 GMT - etag: '"0x8D924C0666B722E"' - last-modified: Tue, 01 Jun 2021 05:45:02 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1/file1?comp=range -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.5.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Tue, 01 Jun 2021 05:45:02 GMT - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare3e5420ff/dir1?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey - response: - body: - string: "\uFEFF13835128424026341376file11383514601621238579252021-06-01T05:45:01.9383586Z2021-06-01T05:45:01.9383586Z2021-06-01T05:45:01.9383586Z2021-06-01T05:45:01.9383586ZTue, - 01 Jun 2021 05:45:02 GMT\"0x8D924C0666B722E\"Archive4010187179898695473*11459378189709739967file21383507564746820812852021-06-01T05:45:01.9343553Z2021-06-01T05:45:01.9343553Z2021-06-01T05:45:01.9343553Z2021-06-01T05:45:01.9343553ZTue, - 01 Jun 2021 05:45:02 GMT\"0x8D924C0666B722E\"Archive4010187179898695473*11459378189709739967file31383509323965425254452021-06-01T05:45:01.9163434Z2021-06-01T05:45:01.9163434Z2021-06-01T05:45:01.9163434Z2021-06-01T05:45:01.9163434ZTue, - 01 Jun 2021 05:45:01 GMT\"0x8D924C06663F6C2\"Archive4010187179898695473*11459378189709739967subdir1115292854148126474242021-06-01T05:45:01.7332134Z2021-06-01T05:45:01.7332134Z2021-06-01T05:45:01.7332134Z2021-06-01T05:45:01.7332134ZTue, - 01 Jun 2021 05:45:01 GMT\"0x8D924C0663E8DA6\"Directory17860367565182308406*11459378189709739967subdir2138351108318402969602021-06-01T05:45:01.9433617Z2021-06-01T05:45:01.9433617Z2021-06-01T05:45:01.9433617Z2021-06-01T05:45:01.9433617ZTue, - 01 Jun 2021 05:45:01 GMT\"0x8D924C0665E9E91\"Directory17860367565182308406*11459378189709739967subdir3138351636083984302082021-06-01T05:45:01.9323543Z2021-06-01T05:45:01.9323543Z2021-06-01T05:45:01.9323543Z2021-06-01T05:45:01.9323543ZTue, - 01 Jun 2021 05:45:01 GMT\"0x8D924C0665CF097\"Directory17860367565182308406*11459378189709739967" - headers: - content-type: application/xml - date: Tue, 01 Jun 2021 05:45:01 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2020-10-02' - status: - code: 200 - message: OK - url: https://seanmcccanary3.file.core.windows.net/utshare3e5420ff/dir1?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_prefix_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_prefix_async.yaml deleted file mode 100644 index 36dbfcb3d699..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_prefix_async.yaml +++ /dev/null @@ -1,545 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9996282"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9A2C9E4"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:23.7562340Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.7562340Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:23.7562340Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9AB56DD"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:23.8122717Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.8122717Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:23.8122717Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1%2Fsubdir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9C74819"' - last-modified: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:23.9953945Z' - x-ms-file-creation-time: '2020-01-15T23:44:23.9953945Z' - x-ms-file-id: '13835093239654252544' - x-ms-file-last-write-time: '2020-01-15T23:44:23.9953945Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1%2Fsubdir3 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1/file3 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9C859BB"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:24.0023995Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.0023995Z' - x-ms-file-id: '13835163608398430208' - x-ms-file-last-write-time: '2020-01-15T23:44:24.0023995Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1/file3 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1/file1 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9C9E09E"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:24.0124062Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.0124062Z' - x-ms-file-id: '13835075647468208128' - x-ms-file-last-write-time: '2020-01-15T23:44:24.0124062Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1/file1 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9CBB5B3"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:24.0244147Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.0244147Z' - x-ms-file-id: '13835146016212385792' - x-ms-file-last-write-time: '2020-01-15T23:44:24.0244147Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1%2Fsubdir2 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:23 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1/file2 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9CDB1D8"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:24.0374232Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.0374232Z' - x-ms-file-id: '13835110831840296960' - x-ms-file-last-write-time: '2020-01-15T23:44:24.0374232Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1/file2 - - '' - - '' -- request: - body: data3 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: eTafePeILBuqu8fUXcXaoA== - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9D04A58"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1/file3 - - comp=range - - '' -- request: - body: data1 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: idkDvDXe3nJP1SxRQ3/1/Q== - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14D9D2E2D8"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1/file1 - - comp=range - - '' -- request: - body: data2 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: /5zy1pDYiMszf2v0UmthMA== - date: Wed, 15 Jan 2020 23:44:23 GMT - etag: '"0x8D79A14D9D5F09F"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1/file2 - - comp=range - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare61aa1e4a/dir1?prefix=sub&restype=directory&comp=list - response: - body: - string: "\uFEFFsubsubdir1subdir2subdir3" - headers: - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:23 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare61aa1e4a/dir1 - - prefix=sub&restype=directory&comp=list - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_snapshot_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_snapshot_async.yaml deleted file mode 100644 index d1f834b3fecb..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_list_subdirectories_and_files_with_snapshot_async.yaml +++ /dev/null @@ -1,578 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA191287"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA2A399F"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:24.6438303Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.6438303Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:24.6438303Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1%2Fsubdir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA32C6A0"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:24.6998688Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.6998688Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2020-01-15T23:44:24.6998688Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1%2Fsubdir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1%2Fsubdir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA49FC16"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:24.8519702Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.8519702Z' - x-ms-file-id: '13835093239654252544' - x-ms-file-last-write-time: '2020-01-15T23:44:24.8519702Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1%2Fsubdir2 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1/file1 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA4BF83F"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:24.8649791Z' - x-ms-file-creation-time: '2020-01-15T23:44:24.8649791Z' - x-ms-file-id: '13835163608398430208' - x-ms-file-last-write-time: '2020-01-15T23:44:24.8649791Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1/file1 - - '' - - '' -- request: - body: data1 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1/file1?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: idkDvDXe3nJP1SxRQ3/1/Q== - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA548538"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1/file1 - - comp=range - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:24 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c?restype=share&comp=snapshot - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA191287"' - last-modified: Wed, 15 Jan 2020 23:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-snapshot: '2020-01-15T23:44:24.0000000Z' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c - - restype=share&comp=snapshot - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1/file2 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA6F3DBF"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:25.0961343Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.0961343Z' - x-ms-file-id: '11529250230440558592' - x-ms-file-last-write-time: '2020-01-15T23:44:25.0961343Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1/file2 - - '' - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1%2Fsubdir3?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA700140"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:25.1011392Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.1011392Z' - x-ms-file-id: '11529320599184736256' - x-ms-file-last-write-time: '2020-01-15T23:44:25.1011392Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1%2Fsubdir3 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '5' - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1/file3 - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA702847"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2020-01-15T23:44:25.1021383Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.1021383Z' - x-ms-file-id: '16140971433240035328' - x-ms-file-last-write-time: '2020-01-15T23:44:25.1021383Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 5724850820508509333*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1/file3 - - '' - - '' -- request: - body: data2 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1/file2?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: /5zy1pDYiMszf2v0UmthMA== - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DA77F1D0"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1/file2 - - comp=range - - '' -- request: - body: data3 - headers: - Content-Length: - - '5' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-range: - - bytes=0-4 - x-ms-version: - - '2019-02-02' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1/file3?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: eTafePeILBuqu8fUXcXaoA== - date: Wed, 15 Jan 2020 23:44:25 GMT - etag: '"0x8D79A14DA799FC8"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1/file3 - - comp=range - - '' -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare9ff01f2c/dir1?sharesnapshot=2020-01-15T23:44:24.0000000Z&restype=directory&comp=list - response: - body: - string: "\uFEFFfile15subdir1subdir2" - headers: - content-type: application/xml - date: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utshare9ff01f2c/dir1 - - sharesnapshot=2020-01-15T23:44:24.0000000Z&restype=directory&comp=list - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory.yaml deleted file mode 100644 index df7995875884..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory.yaml +++ /dev/null @@ -1,144 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:38:14 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare76ae116b?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:38:14 GMT - etag: '"0x8D9E12D4DDD504C"' - last-modified: Thu, 27 Jan 2022 00:38:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare76ae116b?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:38:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare76ae116b/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:38:14 GMT - etag: '"0x8D9E12D4DEAB1BB"' - last-modified: Thu, 27 Jan 2022 00:38:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-creation-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare76ae116b/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:38:14 GMT - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare76ae116b/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare76ae116b/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:38:14 GMT - etag: '"0x8D9E12D4E29FB6C"' - last-modified: Thu, 27 Jan 2022 00:38:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:38:15.0787948Z' - x-ms-file-creation-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare76ae116b/dir2?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:38:15 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare76ae116b/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:38:14 GMT - etag: '"0x8D9E12D4E29FB6C"' - last-modified: Thu, 27 Jan 2022 00:38:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:38:15.0787948Z' - x-ms-file-creation-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:38:14.6640315Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare76ae116b/dir2?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_dest_lease.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_dest_lease.yaml deleted file mode 100644 index 48d2479f1f58..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_dest_lease.yaml +++ /dev/null @@ -1,309 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:13 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:45:13 GMT - etag: '"0x8D9E12E47FC466D"' - last-modified: Thu, 27 Jan 2022 00:45:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:45:13 GMT - etag: '"0x8D9E12E480769A8"' - last-modified: Thu, 27 Jan 2022 00:45:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-creation-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:45:13 GMT - etag: '"0x8D9E12E4810900E"' - last-modified: Thu, 27 Jan 2022 00:45:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:45:14.3426062Z' - x-ms-file-creation-time: '2022-01-27T00:45:14.3426062Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2022-01-27T00:45:14.3426062Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir2?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '11' - x-ms-date: - - Thu, 27 Jan 2022 00:45:14 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir2/test - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:45:14 GMT - etag: '"0x8D9E12E481AA0B4"' - last-modified: Thu, 27 Jan 2022 00:45:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Archive - x-ms-file-change-time: '2022-01-27T00:45:14.4085684Z' - x-ms-file-creation-time: '2022-01-27T00:45:14.4085684Z' - x-ms-file-id: '16140971433240035328' - x-ms-file-last-write-time: '2022-01-27T00:45:14.4085684Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 8725144154719613152*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir2/test -- request: - body: Hello World - headers: - Accept: - - application/xml - Content-Length: - - '11' - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:14 GMT - x-ms-range: - - bytes=0-10 - x-ms-version: - - '2021-04-10' - x-ms-write: - - update - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir2/test?comp=range - response: - body: - string: '' - headers: - content-length: '0' - content-md5: sQqNsWTgdUEFt6mb5y4/5Q== - date: Thu, 27 Jan 2022 00:45:14 GMT - etag: '"0x8D9E12E4825267D"' - last-modified: Thu, 27 Jan 2022 00:45:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir2/test?comp=range -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:14 GMT - x-ms-lease-action: - - acquire - x-ms-lease-duration: - - '-1' - x-ms-proposed-lease-id: - - a4694044-acb1-4266-9c3b-4b3b13aa2ed4 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir2/test?comp=lease - response: - body: - string: '' - headers: - date: Thu, 27 Jan 2022 00:45:14 GMT - etag: '"0x8D9E12E4825267D"' - last-modified: Thu, 27 Jan 2022 00:45:14 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-lease-id: a4694044-acb1-4266-9c3b-4b3b13aa2ed4 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir2/test?comp=lease -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:14 GMT - x-ms-destination-lease-id: - - a4694044-acb1-4266-9c3b-4b3b13aa2ed4 - x-ms-file-rename-replace-if-exists: - - 'true' - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare50fc15e3/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir2%2Ftest?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:45:15 GMT - etag: '"0x8D9E12E48B9FDBC"' - last-modified: Thu, 27 Jan 2022 00:45:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:45:15.4529724Z' - x-ms-file-creation-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir2%2Ftest?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:45:15 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare50fc15e3/dir2%2Ftest?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:45:15 GMT - etag: '"0x8D9E12E48B9FDBC"' - last-modified: Thu, 27 Jan 2022 00:45:15 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:45:15.4529724Z' - x-ms-file-creation-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:45:14.2826408Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare50fc15e3/dir2%2Ftest?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_different_directory.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_different_directory.yaml deleted file mode 100644 index 5bb4d26126ae..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_different_directory.yaml +++ /dev/null @@ -1,230 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:08 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare285b19b5?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:07 GMT - etag: '"0x8D9E12D6DE03C3A"' - last-modified: Thu, 27 Jan 2022 00:39:08 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare285b19b5?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:08 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare285b19b5/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:07 GMT - etag: '"0x8D9E12D6DEB329D"' - last-modified: Thu, 27 Jan 2022 00:39:08 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:08.3544221Z' - x-ms-file-creation-time: '2022-01-27T00:39:08.3544221Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:39:08.3544221Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare285b19b5/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:08 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare285b19b5/dir1%2Fsub1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:07 GMT - etag: '"0x8D9E12D6DF3E3EB"' - last-modified: Thu, 27 Jan 2022 00:39:08 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-creation-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-parent-id: '13835128424026341376' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare285b19b5/dir1%2Fsub1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:08 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare285b19b5/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:08 GMT - etag: '"0x8D9E12D6DFD7F73"' - last-modified: Thu, 27 Jan 2022 00:39:08 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:08.4743539Z' - x-ms-file-creation-time: '2022-01-27T00:39:08.4743539Z' - x-ms-file-id: '16140971433240035328' - x-ms-file-last-write-time: '2022-01-27T00:39:08.4743539Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare285b19b5/dir2?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:08 GMT - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare285b19b5/dir1%2Fsub1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare285b19b5/dir2%2Fsub2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:08 GMT - etag: '"0x8D9E12D6E3C7B0E"' - last-modified: Thu, 27 Jan 2022 00:39:08 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:08.8871182Z' - x-ms-file-creation-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-parent-id: '16140971433240035328' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare285b19b5/dir2%2Fsub2?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:08 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare285b19b5/dir2%2Fsub2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:08 GMT - etag: '"0x8D9E12D6E3C7B0E"' - last-modified: Thu, 27 Jan 2022 00:39:08 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:08.8871182Z' - x-ms-file-creation-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2022-01-27T00:39:08.4113899Z' - x-ms-file-parent-id: '16140971433240035328' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare285b19b5/dir2%2Fsub2?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_file_permission.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_file_permission.yaml deleted file mode 100644 index da45ec3f62bb..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_file_permission.yaml +++ /dev/null @@ -1,176 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:43:54 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec4e21812?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:43:54 GMT - etag: '"0x8D9E12E18D7FF1B"' - last-modified: Thu, 27 Jan 2022 00:43:55 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec4e21812?restype=share -- request: - body: '{"permission": "O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964)"}' - headers: - Accept: - - application/xml - Content-Length: - - '207' - Content-Type: - - application/json - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:43:55 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec4e21812?restype=share&comp=filepermission - response: - body: - string: '' - headers: - date: Thu, 27 Jan 2022 00:43:54 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - transfer-encoding: chunked - x-ms-file-permission-key: 8535117954115489183*15111010650564761710 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec4e21812?restype=share&comp=filepermission -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:43:55 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec4e21812/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:43:54 GMT - etag: '"0x8D9E12E190E1B61"' - last-modified: Thu, 27 Jan 2022 00:43:55 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-creation-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec4e21812/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:43:55 GMT - x-ms-file-permission: - - O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964) - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utsharec4e21812/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec4e21812/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:43:54 GMT - etag: '"0x8D9E12E19252276"' - last-modified: Thu, 27 Jan 2022 00:43:55 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:43:55.6245110Z' - x-ms-file-creation-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 8535117954115489183*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharec4e21812/dir2?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:43:55 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utsharec4e21812/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:43:54 GMT - etag: '"0x8D9E12E19252276"' - last-modified: Thu, 27 Jan 2022 00:43:55 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:43:55.6245110Z' - x-ms-file-creation-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:43:55.4735969Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 8535117954115489183*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharec4e21812/dir2?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_ignore_readonly.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_ignore_readonly.yaml deleted file mode 100644 index f0eef7d7babd..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_ignore_readonly.yaml +++ /dev/null @@ -1,238 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:40 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec503180b?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:40 GMT - etag: '"0x8D9E12D8183D85C"' - last-modified: Thu, 27 Jan 2022 00:39:41 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec503180b?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:41 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec503180b/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:40 GMT - etag: '"0x8D9E12D819392FE"' - last-modified: Thu, 27 Jan 2022 00:39:41 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-creation-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec503180b/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:41 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec503180b/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:40 GMT - etag: '"0x8D9E12D819C1D3A"' - last-modified: Thu, 27 Jan 2022 00:39:41 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:41.3905722Z' - x-ms-file-creation-time: '2022-01-27T00:39:41.3905722Z' - x-ms-file-id: '11529285414812647424' - x-ms-file-last-write-time: '2022-01-27T00:39:41.3905722Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec503180b/dir2?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-content-length: - - '1024' - x-ms-date: - - Thu, 27 Jan 2022 00:39:41 GMT - x-ms-file-attributes: - - ReadOnly - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec503180b/dir2/test - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:40 GMT - etag: '"0x8D9E12D81A606D7"' - last-modified: Thu, 27 Jan 2022 00:39:41 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: ReadOnly | Archive - x-ms-file-change-time: '2022-01-27T00:39:41.4555351Z' - x-ms-file-creation-time: '2022-01-27T00:39:41.4555351Z' - x-ms-file-id: '16140971433240035328' - x-ms-file-last-write-time: '2022-01-27T00:39:41.4555351Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 8725144154719613152*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharec503180b/dir2/test -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:41 GMT - x-ms-file-rename-ignore-readonly: - - 'true' - x-ms-file-rename-replace-if-exists: - - 'true' - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utsharec503180b/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec503180b/dir2%2Ftest?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:40 GMT - etag: '"0x8D9E12D81BF5785"' - last-modified: Thu, 27 Jan 2022 00:39:41 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:41.6214405Z' - x-ms-file-creation-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharec503180b/dir2%2Ftest?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:39:41 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utsharec503180b/dir2%2Ftest?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:39:40 GMT - etag: '"0x8D9E12D81BF5785"' - last-modified: Thu, 27 Jan 2022 00:39:41 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:39:41.6214405Z' - x-ms-file-creation-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:39:41.3346046Z' - x-ms-file-parent-id: '11529285414812647424' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharec503180b/dir2%2Ftest?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_preserve_permission.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_preserve_permission.yaml deleted file mode 100644 index 018940c77d64..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_preserve_permission.yaml +++ /dev/null @@ -1,181 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:44:24 GMT - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2b4319de?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:44:23 GMT - etag: '"0x8D9E12E2A6DC65D"' - last-modified: Thu, 27 Jan 2022 00:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare2b4319de?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:44:24 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;S-1-5-21-397955417-626881126-188441444-3053964) - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2b4319de/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:44:23 GMT - etag: '"0x8D9E12E2A77406B"' - last-modified: Thu, 27 Jan 2022 00:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-creation-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 3717868340301450459*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshare2b4319de/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:44:24 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare2b4319de/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:44:23 GMT - etag: '"0x8D9E12E2A77406B"' - last-modified: Thu, 27 Jan 2022 00:44:24 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-creation-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 3717868340301450459*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare2b4319de/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:44:24 GMT - x-ms-file-permission: - - preserve - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshare2b4319de/dir1 - x-ms-version: - - '2021-04-10' - method: PUT - uri: https://storagename.file.core.windows.net/utshare2b4319de/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:44:25 GMT - etag: '"0x8D9E12E2BB47418"' - last-modified: Thu, 27 Jan 2022 00:44:26 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:44:26.7627544Z' - x-ms-file-creation-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 3717868340301450459*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare2b4319de/dir2?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0b1 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Thu, 27 Jan 2022 00:44:26 GMT - x-ms-version: - - '2021-04-10' - method: GET - uri: https://storagename.file.core.windows.net/utshare2b4319de/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 27 Jan 2022 00:44:26 GMT - etag: '"0x8D9E12E2BB47418"' - last-modified: Thu, 27 Jan 2022 00:44:26 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-01-27T00:44:26.7627544Z' - x-ms-file-creation-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-27T00:44:24.6839403Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 3717868340301450459*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-04-10' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshare2b4319de/dir2?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_smb_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_smb_properties.yaml deleted file mode 100644 index 80da2fe5cc8f..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_rename_directory_smb_properties.yaml +++ /dev/null @@ -1,152 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:20:05 GMT - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshareaddd17b8?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:20:04 GMT - etag: '"0x8DA02F4E46E2874"' - last-modified: Fri, 11 Mar 2022 00:20:05 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-06-08' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshareaddd17b8?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:20:05 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshareaddd17b8/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:20:04 GMT - etag: '"0x8DA02F4E478AA34"' - last-modified: Fri, 11 Mar 2022 00:20:05 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-03-11T00:20:05.4735412Z' - x-ms-file-creation-time: '2022-03-11T00:20:05.4735412Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-11T00:20:05.4735412Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utshareaddd17b8/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:20:05 GMT - x-ms-file-attributes: - - ReadOnly|Directory - x-ms-file-change-time: - - '2022-03-07T10:14:30.5000000Z' - x-ms-file-creation-time: - - '2022-01-26T10:09:30.5000000Z' - x-ms-file-last-write-time: - - '2022-01-26T10:14:30.5000000Z' - x-ms-file-rename-source: - - https://storagename.file.core.windows.net/utshareaddd17b8/dir1 - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utshareaddd17b8/dir2?restype=directory&comp=rename - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:20:04 GMT - etag: '"0x8DA02F4E49110B2"' - last-modified: Fri, 11 Mar 2022 00:20:05 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: ReadOnly | Directory - x-ms-file-change-time: '2022-03-07T10:14:30.5000000Z' - x-ms-file-creation-time: '2022-01-26T10:09:30.5000000Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-26T10:14:30.5000000Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshareaddd17b8/dir2?restype=directory&comp=rename -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:20:05 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utshareaddd17b8/dir2?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:20:04 GMT - etag: '"0x8DA02F4E49110B2"' - last-modified: Fri, 11 Mar 2022 00:20:05 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: ReadOnly | Directory - x-ms-file-change-time: '2022-03-07T10:14:30.5000000Z' - x-ms-file-creation-time: '2022-01-26T10:09:30.5000000Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-01-26T10:14:30.5000000Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utshareaddd17b8/dir2?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties.yaml deleted file mode 100644 index cfe057a822a1..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties.yaml +++ /dev/null @@ -1,210 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec66e1fe1?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DAB774B4"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec66e1fe1 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec66e1fe1/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DAC2EA6C"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec66e1fe1/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharec66e1fe1/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DAC2EA6C"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec66e1fe1/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - preserve - x-ms-file-last-write-time: - - preserve - x-ms-file-permission: - - preserve - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utsharec66e1fe1/dir1?restype=directory&comp=properties - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DAD319E0"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:25.7505760Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec66e1fe1/dir1 - - restype=directory&comp=properties - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.1 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Wed, 15 Jan 2020 23:44:25 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utsharec66e1fe1/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Wed, 15 Jan 2020 23:44:24 GMT - etag: '"0x8D79A14DAD319E0"' - last-modified: Wed, 15 Jan 2020 23:44:25 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2020-01-15T23:44:25.7505760Z' - x-ms-file-creation-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2020-01-15T23:44:25.6445036Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 10306785916763839378*16704459309046467611 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pyacrstorage43x4qoc3y4bx.file.core.windows.net - - /utsharec66e1fe1/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties_async.yaml deleted file mode 100644 index 1d1a9a6a107a..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_empty_smb_properties_async.yaml +++ /dev/null @@ -1,281 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6f078b5c-1d1a-11ea-8c2f-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:15 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare8e58225e?restype=share - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:18 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E55913D6E"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:19 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: 471f88d4-601a-0033-6327-b13d2d000000 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare8e58225e - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6f20f58a-1d1a-11ea-a7a6-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:15 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare8e58225e/dir1?restype=directory - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:18 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E55986DA3"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:19 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-creation-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17360570244679638438*10967959146200238639 - x-ms-request-id: 471f88d7-601a-0033-6427-b13d2d000000 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare8e58225e/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6f27f6da-1d1a-11ea-b997-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:15 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare8e58225e/dir1?restype=directory - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:18 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E55986DA3"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:19 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._multidict.istr - - Vary - : Origin - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-creation-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17360570244679638438*10967959146200238639 - x-ms-request-id: 471f88d8-601a-0033-6527-b13d2d000000 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare8e58225e/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6f2de51e-1d1a-11ea-9a8d-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:15 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - preserve - x-ms-file-last-write-time: - - preserve - x-ms-file-permission: - - preserve - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare8e58225e/dir1?restype=directory&comp=properties - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:18 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E55A62BC8"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:19 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:19.7867976Z' - x-ms-file-creation-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17360570244679638438*10967959146200238639 - x-ms-request-id: 471f88d9-601a-0033-6627-b13d2d000000 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare8e58225e/dir1 - - restype=directory&comp=properties - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6f35a958-1d1a-11ea-8f0f-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:16 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare8e58225e/dir1?restype=directory - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:18 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E55A62BC8"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:19 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._multidict.istr - - Vary - : Origin - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:19.7867976Z' - x-ms-file-creation-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T20:03:19.6967331Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17360570244679638438*10967959146200238639 - x-ms-request-id: 471f88da-601a-0033-6727-b13d2d000000 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare8e58225e/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key.yaml deleted file mode 100644 index c15828b21b92..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key.yaml +++ /dev/null @@ -1,187 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:18:52 GMT - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utsharea4b41f55?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:18:52 GMT - etag: '"0x8DA02F4B937ECD3"' - last-modified: Fri, 11 Mar 2022 00:18:52 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2021-06-08' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharea4b41f55?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:18:52 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utsharea4b41f55/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:18:52 GMT - etag: '"0x8DA02F4B9434B27"' - last-modified: Fri, 11 Mar 2022 00:18:52 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-03-11T00:18:52.9817383Z' - x-ms-file-creation-time: '2022-03-11T00:18:52.9817383Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-11T00:18:52.9817383Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 201 - message: Created - url: https://jalauzoncanary.file.core.windows.net/utsharea4b41f55/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:18:53 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utsharea4b41f55/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:18:52 GMT - etag: '"0x8DA02F4B9434B27"' - last-modified: Fri, 11 Mar 2022 00:18:52 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-03-11T00:18:52.9817383Z' - x-ms-file-creation-time: '2022-03-11T00:18:52.9817383Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-11T00:18:52.9817383Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 13361685536844353511*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharea4b41f55/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:18:53 GMT - x-ms-file-attributes: - - None - x-ms-file-change-time: - - '2022-03-11T01:18:52.9817380Z' - x-ms-file-creation-time: - - '2022-03-11T01:18:52.9817380Z' - x-ms-file-last-write-time: - - '2022-03-11T01:18:52.9817380Z' - x-ms-file-permission-key: - - 13361685536844353511*15111010650564761710 - x-ms-version: - - '2021-06-08' - method: PUT - uri: https://storagename.file.core.windows.net/utsharea4b41f55/dir1?restype=directory&comp=properties - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:18:53 GMT - etag: '"0x8DA02F4B95A2B45"' - last-modified: Fri, 11 Mar 2022 00:18:53 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-03-11T01:18:52.9817380Z' - x-ms-file-creation-time: '2022-03-11T01:18:52.9817380Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-11T01:18:52.9817380Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 1526400922095216343*15111010650564761710 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharea4b41f55/dir1?restype=directory&comp=properties -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.7.0 Python/3.10.1 (Windows-10-10.0.17763-SP0) - x-ms-date: - - Fri, 11 Mar 2022 00:18:53 GMT - x-ms-version: - - '2021-06-08' - method: GET - uri: https://storagename.file.core.windows.net/utsharea4b41f55/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Fri, 11 Mar 2022 00:18:53 GMT - etag: '"0x8DA02F4B95A2B45"' - last-modified: Fri, 11 Mar 2022 00:18:53 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2022-03-11T01:18:52.9817380Z' - x-ms-file-creation-time: '2022-03-11T01:18:52.9817380Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2022-03-11T01:18:52.9817380Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 1526400922095216343*15111010650564761710 - x-ms-server-encrypted: 'true' - x-ms-version: '2021-06-08' - status: - code: 200 - message: OK - url: https://jalauzoncanary.file.core.windows.net/utsharea4b41f55/dir1?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key_async.yaml deleted file mode 100644 index 800f8e48fa6b..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_set_directory_properties_with_file_permission_key_async.yaml +++ /dev/null @@ -1,281 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6f459366-1d1a-11ea-afb0-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:16 GMT - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare695621d2?restype=share - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E564EB31A"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: dad0f8bf-701a-008d-7227-b128a6000000 - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare695621d2 - - restype=share - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6fe37666-1d1a-11ea-b79a-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:17 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare695621d2/dir1?restype=directory - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E565ACF9F"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:20.9706399Z' - x-ms-file-creation-time: '2019-12-12T20:03:20.9706399Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T20:03:20.9706399Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17360570244679638438*10967959146200238639 - x-ms-request-id: dad0f8c2-701a-008d-7327-b128a6000000 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 201 - message: Created - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare695621d2/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6fea2892-1d1a-11ea-b189-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:17 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare695621d2/dir1?restype=directory - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E565ACF9F"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._multidict.istr - - Vary - : Origin - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:20.9706399Z' - x-ms-file-creation-time: '2019-12-12T20:03:20.9706399Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T20:03:20.9706399Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 17360570244679638438*10967959146200238639 - x-ms-request-id: dad0f8c3-701a-008d-7427-b128a6000000 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare695621d2/dir1 - - restype=directory - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6ff034dc-1d1a-11ea-ae75-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:17 GMT - x-ms-file-attributes: - - None - x-ms-file-creation-time: - - '2019-12-12T21:03:20.9706390Z' - x-ms-file-last-write-time: - - '2019-12-12T21:03:20.9706390Z' - x-ms-file-permission-key: - - 17360570244679638438*10967959146200238639 - x-ms-version: - - '2019-02-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare695621d2/dir1?restype=directory&comp=properties - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E566FE216"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:21 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:21.1087382Z' - x-ms-file-creation-time: '2019-12-12T21:03:20.9706390Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T21:03:20.9706390Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 6678206125749171350*10967959146200238639 - x-ms-request-id: dad0f8c4-701a-008d-7527-b128a6000000 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare695621d2/dir1 - - restype=directory&comp=properties - - '' -- request: - body: null - headers: - User-Agent: - - azsdk-python-storage-file-share/12.0.0 Python/3.7.3 (Windows-10-10.0.17763-SP0) - x-ms-client-request-id: - - 6fffb192-1d1a-11ea-906e-2816a845e8c6 - x-ms-date: - - Thu, 12 Dec 2019 20:03:17 GMT - x-ms-version: - - '2019-02-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare695621d2/dir1?restype=directory - response: - body: - string: '' - headers: - ? !!python/object/new:multidict._multidict.istr - - Content-Length - : '0' - ? !!python/object/new:multidict._multidict.istr - - Date - : Thu, 12 Dec 2019 20:03:20 GMT - ? !!python/object/new:multidict._multidict.istr - - Etag - : '"0x8D77F3E566FE216"' - ? !!python/object/new:multidict._multidict.istr - - Last-Modified - : Thu, 12 Dec 2019 20:03:21 GMT - ? !!python/object/new:multidict._multidict.istr - - Server - : Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._multidict.istr - - Vary - : Origin - x-ms-file-attributes: Directory - x-ms-file-change-time: '2019-12-12T20:03:21.1087382Z' - x-ms-file-creation-time: '2019-12-12T21:03:20.9706390Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2019-12-12T21:03:20.9706390Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 6678206125749171350*10967959146200238639 - x-ms-request-id: dad0f8c5-701a-008d-7627-b128a6000000 - x-ms-server-encrypted: 'true' - x-ms-version: '2019-02-02' - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - amqptest.file.core.windows.net - - /utshare695621d2/dir1 - - restype=directory - - '' -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_share_directory_exists_async.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_share_directory_exists_async.yaml deleted file mode 100644 index affcc759010d..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/recordings/test_directory_async.test_share_directory_exists_async.yaml +++ /dev/null @@ -1,135 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:27:19 GMT - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare691c1682?restype=share - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 04 Nov 2021 06:27:18 GMT - etag: '"0x8D99F5C271DCD66"' - last-modified: Thu, 04 Nov 2021 06:27:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://tamerdevtest.file.core.windows.net/utshare691c1682?restype=share -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:27:19 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - inherit - x-ms-version: - - '2020-10-02' - method: PUT - uri: https://storagename.file.core.windows.net/utshare691c1682/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 04 Nov 2021 06:27:18 GMT - etag: '"0x8D99F5C272E7322"' - last-modified: Thu, 04 Nov 2021 06:27:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-11-04T06:27:19.2799010Z' - x-ms-file-creation-time: '2021-11-04T06:27:19.2799010Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2021-11-04T06:27:19.2799010Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 8772442282881623900*1253935651986682069 - x-ms-request-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 201 - message: Created - url: https://tamerdevtest.file.core.windows.net/utshare691c1682/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:27:19 GMT - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare691c1682/dir1?restype=directory - response: - body: - string: '' - headers: - content-length: '0' - date: Thu, 04 Nov 2021 06:27:18 GMT - etag: '"0x8D99F5C272E7322"' - last-modified: Thu, 04 Nov 2021 06:27:19 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: Directory - x-ms-file-change-time: '2021-11-04T06:27:19.2799010Z' - x-ms-file-creation-time: '2021-11-04T06:27:19.2799010Z' - x-ms-file-id: '13835128424026341376' - x-ms-file-last-write-time: '2021-11-04T06:27:19.2799010Z' - x-ms-file-parent-id: '0' - x-ms-file-permission-key: 8772442282881623900*1253935651986682069 - x-ms-server-encrypted: 'true' - x-ms-version: '2020-10-02' - status: - code: 200 - message: OK - url: https://tamerdevtest.file.core.windows.net/utshare691c1682/dir1?restype=directory -- request: - body: null - headers: - Accept: - - application/xml - User-Agent: - - azsdk-python-storage-file-share/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) - x-ms-date: - - Thu, 04 Nov 2021 06:27:19 GMT - x-ms-version: - - '2020-10-02' - method: GET - uri: https://storagename.file.core.windows.net/utshare691c1682/dir2?restype=directory - response: - body: - string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:4aacfe6f-501a-009d-0145-d1bf1a000000\nTime:2021-11-04T06:27:19.4686297Z" - headers: - content-length: '223' - content-type: application/xml - date: Thu, 04 Nov 2021 06:27:18 GMT - server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-error-code: ResourceNotFound - x-ms-version: '2020-10-02' - status: - code: 404 - message: The specified resource does not exist. - url: https://tamerdevtest.file.core.windows.net/utshare691c1682/dir2?restype=directory -version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/test_directory.py b/sdk/storage/azure-storage-file-share/tests/test_directory.py index 5b81e50e30b9..67403f4d93f1 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_directory.py +++ b/sdk/storage/azure-storage-file-share/tests/test_directory.py @@ -1,15 +1,13 @@ -# coding: utf-8 - # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import unittest -import pytest from datetime import datetime, timedelta -from azure.core.exceptions import ResourceNotFoundError, ResourceExistsError +import pytest +from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError from azure.storage.fileshare import ( generate_share_sas, NTFSAttributes, @@ -18,7 +16,9 @@ ShareServiceClient, StorageErrorCode, ) -from devtools_testutils.storage import StorageTestCase + +from devtools_testutils import recorded_by_proxy +from devtools_testutils.storage import StorageRecordedTestCase from settings.testcase import FileSharePreparer # ------------------------------------------------------------------------------ TEST_FILE_PERMISSIONS = 'O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-' \ @@ -26,7 +26,7 @@ 'S-1-5-21-397955417-626881126-188441444-3053964)' -class StorageDirectoryTest(StorageTestCase): +class TestStorageDirectory(StorageRecordedTestCase): def _setup(self, storage_account_name, storage_account_key): url = self.account_url(storage_account_name, "file") credential = storage_account_key @@ -49,7 +49,11 @@ def _teardown(self, FILE_PATH): # --Test cases for directories ---------------------------------------------- @FileSharePreparer() - def test_create_directories(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_directories(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -57,10 +61,14 @@ def test_create_directories(self, storage_account_name, storage_account_key): created = share_client.create_directory('dir1') # Assert - self.assertTrue(created) + assert created @FileSharePreparer() - def test_create_directories_with_metadata(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_directories_with_metadata(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) metadata = {'hello': 'world', 'number': '42'} @@ -70,23 +78,31 @@ def test_create_directories_with_metadata(self, storage_account_name, storage_ac # Assert md = directory.get_directory_properties().metadata - self.assertDictEqual(md, metadata) + assert md == metadata @FileSharePreparer() - def test_create_directories_fail_on_exist(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_directories_fail_on_exist(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) # Act created = share_client.create_directory('dir1') - with self.assertRaises(ResourceExistsError): + with pytest.raises(ResourceExistsError): share_client.create_directory('dir1') # Assert - self.assertTrue(created) + assert created @FileSharePreparer() - def test_create_directory_set_smb_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_directory_set_smb_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -103,15 +119,19 @@ def test_create_directory_set_smb_properties(self, storage_account_name, storage directory_properties = directory_client.get_directory_properties() # Assert - self.assertIsNotNone(directory_properties) - self.assertEqual(file_creation_time, directory_properties.creation_time) - self.assertEqual(file_last_write_time, directory_properties.last_write_time) - self.assertEqual(file_change_time, directory_properties.change_time) - self.assertIn('ReadOnly', directory_properties.file_attributes) - self.assertIn('Directory', directory_properties.file_attributes) + assert directory_properties is not None + assert file_creation_time == directory_properties.creation_time + assert file_last_write_time == directory_properties.last_write_time + assert file_change_time == directory_properties.change_time + assert 'ReadOnly' in directory_properties.file_attributes + assert 'Directory' in directory_properties.file_attributes @FileSharePreparer() - def test_create_subdirectories(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_subdirectories(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -120,11 +140,15 @@ def test_create_subdirectories(self, storage_account_name, storage_account_key): created = directory.create_subdirectory('dir2') # Assert - self.assertTrue(created) - self.assertEqual(created.directory_path, 'dir1/dir2') + assert created + assert created.directory_path == 'dir1/dir2' @FileSharePreparer() - def test_create_subdirectories_with_metadata(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_subdirectories_with_metadata(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -134,13 +158,17 @@ def test_create_subdirectories_with_metadata(self, storage_account_name, storage created = directory.create_subdirectory('dir2', metadata=metadata) # Assert - self.assertTrue(created) - self.assertEqual(created.directory_path, 'dir1/dir2') + assert created + assert created.directory_path == 'dir1/dir2' sub_metadata = created.get_directory_properties().metadata - self.assertEqual(sub_metadata, metadata) + assert sub_metadata == metadata @FileSharePreparer() - def test_create_file_in_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_create_file_in_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) file_data = b'12345678' * 1024 file_name = self.get_resource_name('file') @@ -152,10 +180,14 @@ def test_create_file_in_directory(self, storage_account_name, storage_account_ke # Assert file_content = new_file.download_file().readall() - self.assertEqual(file_content, file_data) + assert file_content == file_data @FileSharePreparer() - def test_delete_file_in_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_delete_file_in_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) file_name = self.get_resource_name('file') share_client = self.fsc.get_share_client(self.share_name) @@ -166,23 +198,31 @@ def test_delete_file_in_directory(self, storage_account_name, storage_account_ke deleted = directory.delete_file(file_name) # Assert - self.assertIsNone(deleted) - with self.assertRaises(ResourceNotFoundError): + assert deleted is None + with pytest.raises(ResourceNotFoundError): new_file.get_file_properties() @FileSharePreparer() - def test_share_directory_exists(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_share_directory_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') directory2 = share_client.get_directory_client("dir2") - self.assertTrue(directory.exists()) - self.assertFalse(directory2.exists()) + assert directory.exists() + assert not directory2.exists() @FileSharePreparer() - def test_delete_subdirectories(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_delete_subdirectories(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -192,13 +232,17 @@ def test_delete_subdirectories(self, storage_account_name, storage_account_key): deleted = directory.delete_subdirectory('dir2') # Assert - self.assertIsNone(deleted) + assert deleted is None subdir = directory.get_subdirectory_client('dir2') - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): subdir.get_directory_properties() @FileSharePreparer() - def test_get_directory_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_get_directory_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -207,12 +251,16 @@ def test_get_directory_properties(self, storage_account_name, storage_account_ke props = directory.get_directory_properties() # Assert - self.assertIsNotNone(props) - self.assertIsNotNone(props.etag) - self.assertIsNotNone(props.last_modified) + assert props is not None + assert props.etag is not None + assert props.last_modified is not None @FileSharePreparer() - def test_get_directory_properties_with_snapshot(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_get_directory_properties_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) metadata = {"test1": "foo", "test2": "bar"} @@ -227,13 +275,17 @@ def test_get_directory_properties_with_snapshot(self, storage_account_name, stor props = snap_dir.get_directory_properties() # Assert - self.assertIsNotNone(props) - self.assertIsNotNone(props.etag) - self.assertIsNotNone(props.last_modified) - self.assertDictEqual(metadata, props.metadata) + assert props is not None + assert props.etag is not None + assert props.last_modified is not None + assert metadata == props.metadata @FileSharePreparer() - def test_get_directory_metadata_with_snapshot(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_get_directory_metadata_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) metadata = {"test1": "foo", "test2": "bar"} @@ -248,23 +300,31 @@ def test_get_directory_metadata_with_snapshot(self, storage_account_name, storag snapshot_metadata = snap_dir.get_directory_properties().metadata # Assert - self.assertIsNotNone(snapshot_metadata) - self.assertDictEqual(metadata, snapshot_metadata) + assert snapshot_metadata is not None + assert metadata == snapshot_metadata @FileSharePreparer() - def test_get_directory_properties_with_non_existing_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_get_directory_properties_with_non_existing_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('dir1') # Act - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): directory.get_directory_properties() # Assert @FileSharePreparer() - def test_directory_exists(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_directory_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -273,35 +333,47 @@ def test_directory_exists(self, storage_account_name, storage_account_key): exists = directory.get_directory_properties() # Assert - self.assertTrue(exists) + assert exists @FileSharePreparer() - def test_directory_not_exists(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_directory_not_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('dir1') # Act - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): directory.get_directory_properties() # Assert @FileSharePreparer() - def test_directory_parent_not_exists(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_directory_parent_not_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('missing1/missing2') # Act - with self.assertRaises(ResourceNotFoundError) as e: + with pytest.raises(ResourceNotFoundError) as e: directory.get_directory_properties() # Assert - self.assertEqual(e.exception.error_code, StorageErrorCode.parent_not_found) + assert e.value.error_code == StorageErrorCode.parent_not_found @FileSharePreparer() - def test_directory_exists_with_snapshot(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_directory_exists_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -314,10 +386,14 @@ def test_directory_exists_with_snapshot(self, storage_account_name, storage_acco exists = snap_dir.get_directory_properties() # Assert - self.assertTrue(exists) + assert exists @FileSharePreparer() - def test_directory_not_exists_with_snapshot(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_directory_not_exists_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) snapshot = share_client.create_snapshot() @@ -327,13 +403,17 @@ def test_directory_not_exists_with_snapshot(self, storage_account_name, storage_ share_client = self.fsc.get_share_client(self.share_name, snapshot=snapshot) snap_dir = share_client.get_directory_client('dir1') - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): snap_dir.get_directory_properties() # Assert @FileSharePreparer() - def test_get_set_directory_metadata(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_get_set_directory_metadata(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -344,10 +424,14 @@ def test_get_set_directory_metadata(self, storage_account_name, storage_account_ md = directory.get_directory_properties().metadata # Assert - self.assertDictEqual(md, metadata) + assert md == metadata @FileSharePreparer() - def test_set_directory_properties_with_empty_smb_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_set_directory_properties_with_empty_smb_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory_client = share_client.create_directory('dir1') @@ -359,15 +443,16 @@ def test_set_directory_properties_with_empty_smb_properties(self, storage_accoun # Assert # Make sure set empty smb_properties doesn't change smb_properties - self.assertEqual(directory_properties_on_creation.creation_time, - directory_properties.creation_time) - self.assertEqual(directory_properties_on_creation.last_write_time, - directory_properties.last_write_time) - self.assertEqual(directory_properties_on_creation.permission_key, - directory_properties.permission_key) + assert directory_properties_on_creation.creation_time == directory_properties.creation_time + assert directory_properties_on_creation.last_write_time == directory_properties.last_write_time + assert directory_properties_on_creation.permission_key == directory_properties.permission_key @FileSharePreparer() - def test_set_directory_properties_with_file_permission_key(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_set_directory_properties_with_file_permission_key(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory_client = share_client.create_directory('dir1') @@ -392,13 +477,17 @@ def test_set_directory_properties_with_file_permission_key(self, storage_account directory_properties = directory_client.get_directory_properties() # Assert - self.assertIsNotNone(directory_properties) - self.assertEqual(directory_properties.creation_time, new_creation_time) - self.assertEqual(directory_properties.last_write_time, new_last_write_time) - self.assertEqual(directory_properties.change_time, new_change_time) + assert directory_properties is not None + assert directory_properties.creation_time == new_creation_time + assert directory_properties.last_write_time == new_last_write_time + assert directory_properties.change_time == new_change_time @FileSharePreparer() - def test_list_subdirectories_and_files(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_list_subdirectories_and_files(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -413,22 +502,26 @@ def test_list_subdirectories_and_files(self, storage_account_name, storage_accou list_dir = list(directory.list_directories_and_files()) # Assert - self.assertEqual(len(list_dir), 6) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'subdir2') - self.assertEqual(list_dir[1]['is_directory'], True) - self.assertEqual(list_dir[2]['name'], 'subdir3') - self.assertEqual(list_dir[2]['is_directory'], True) - self.assertEqual(list_dir[3]['name'], 'file1') - self.assertEqual(list_dir[3]['is_directory'], False) - self.assertEqual(list_dir[4]['name'], 'file2') - self.assertEqual(list_dir[4]['is_directory'], False) - self.assertEqual(list_dir[5]['name'], 'file3') - self.assertEqual(list_dir[5]['is_directory'], False) + assert len(list_dir) == 6 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'subdir2' + assert list_dir[1]['is_directory'] == True + assert list_dir[2]['name'] == 'subdir3' + assert list_dir[2]['is_directory'] == True + assert list_dir[3]['name'] == 'file1' + assert list_dir[3]['is_directory'] == False + assert list_dir[4]['name'] == 'file2' + assert list_dir[4]['is_directory'] == False + assert list_dir[5]['name'] == 'file3' + assert list_dir[5]['is_directory'] == False @FileSharePreparer() - def test_list_subdirectories_and_files_include_other_data(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_list_subdirectories_and_files_include_other_data(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -442,34 +535,42 @@ def test_list_subdirectories_and_files_include_other_data(self, storage_account_ # Act list_dir = list(directory.list_directories_and_files(include=["timestamps", "Etag", "Attributes", "PermissionKey"])) - self.assertEqual(len(list_dir), 6) - self.assertIsNotNone(list_dir[0].etag) - self.assertIsNotNone(list_dir[1].file_attributes) - self.assertIsNotNone(list_dir[1].last_access_time) - self.assertIsNotNone(list_dir[1].last_write_time) - self.assertIsNotNone(list_dir[2].change_time) - self.assertIsNotNone(list_dir[2].creation_time) - self.assertIsNotNone(list_dir[2].file_id) + assert len(list_dir) == 6 + assert list_dir[0].etag is not None + assert list_dir[1].file_attributes is not None + assert list_dir[1].last_access_time is not None + assert list_dir[1].last_write_time is not None + assert list_dir[2].change_time is not None + assert list_dir[2].creation_time is not None + assert list_dir[2].file_id is not None try: share_client.delete_share() except: pass @FileSharePreparer() - def test_list_subdirectories_and_files_include_extended_info(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_list_subdirectories_and_files_include_extended_info(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') directory.create_subdirectory("subdir1") list_dir = list(directory.list_directories_and_files(include_extended_info=True)) - self.assertEqual(len(list_dir), 1) - self.assertIsNotNone(list_dir[0].file_id) - self.assertIsNone(list_dir[0].file_attributes) - self.assertIsNone(list_dir[0].last_access_time) + assert len(list_dir) == 1 + assert list_dir[0].file_id is not None + assert list_dir[0].file_attributes is None + assert list_dir[0].last_access_time is None @FileSharePreparer() - def test_list_subdirectories_and_files_with_prefix(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_list_subdirectories_and_files_with_prefix(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -484,16 +585,20 @@ def test_list_subdirectories_and_files_with_prefix(self, storage_account_name, s list_dir = list(directory.list_directories_and_files(name_starts_with="sub")) # Assert - self.assertEqual(len(list_dir), 3) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'subdir2') - self.assertEqual(list_dir[1]['is_directory'], True) - self.assertEqual(list_dir[2]['name'], 'subdir3') - self.assertEqual(list_dir[2]['is_directory'], True) + assert len(list_dir) == 3 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'subdir2' + assert list_dir[1]['is_directory'] == True + assert list_dir[2]['name'] == 'subdir3' + assert list_dir[2]['is_directory'] == True @FileSharePreparer() - def test_list_subdirectories_and_files_with_snapshot(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_list_subdirectories_and_files_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -513,17 +618,21 @@ def test_list_subdirectories_and_files_with_snapshot(self, storage_account_name, list_dir = list(snapshot_dir.list_directories_and_files()) # Assert - self.assertEqual(len(list_dir), 3) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'subdir2') - self.assertEqual(list_dir[1]['is_directory'], True) - self.assertEqual(list_dir[2]['name'], 'file1') - self.assertEqual(list_dir[2]['is_directory'], False) - self.assertEqual(list_dir[2]['size'], 5) + assert len(list_dir) == 3 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'subdir2' + assert list_dir[1]['is_directory'] == True + assert list_dir[2]['name'] == 'file1' + assert list_dir[2]['is_directory'] == False + assert list_dir[2]['size'] == 5 @FileSharePreparer() - def test_list_nested_subdirectories_and_files(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_list_nested_subdirectories_and_files(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -538,15 +647,19 @@ def test_list_nested_subdirectories_and_files(self, storage_account_name, storag list_dir = list(directory.list_directories_and_files()) # Assert - self.assertEqual(len(list_dir), 2) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'file1') - self.assertEqual(list_dir[1]['is_directory'], False) - self.assertEqual(list_dir[1]['size'], 5) + assert len(list_dir) == 2 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'file1' + assert list_dir[1]['is_directory'] == False + assert list_dir[1]['size'] == 5 @FileSharePreparer() - def test_delete_directory_with_existing_share(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_delete_directory_with_existing_share(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -555,24 +668,32 @@ def test_delete_directory_with_existing_share(self, storage_account_name, storag deleted = directory.delete_directory() # Assert - self.assertIsNone(deleted) - with self.assertRaises(ResourceNotFoundError): + assert deleted is None + with pytest.raises(ResourceNotFoundError): directory.get_directory_properties() @FileSharePreparer() - def test_delete_directory_with_non_existing_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_delete_directory_with_non_existing_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('dir1') # Act - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): directory.delete_directory() # Assert @FileSharePreparer() - def test_get_directory_properties_server_encryption(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_get_directory_properties_server_encryption(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.create_directory('dir1') @@ -581,13 +702,17 @@ def test_get_directory_properties_server_encryption(self, storage_account_name, props = directory.get_directory_properties() # Assert - self.assertIsNotNone(props) - self.assertIsNotNone(props.etag) - self.assertIsNotNone(props.last_modified) - self.assertTrue(props.server_encrypted) + assert props is not None + assert props.etag is not None + assert props.last_modified is not None + assert props.server_encrypted @FileSharePreparer() - def test_rename_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -598,10 +723,14 @@ def test_rename_directory(self, storage_account_name, storage_account_key): # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) + assert props is not None @FileSharePreparer() - def test_rename_directory_different_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_different_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -616,10 +745,14 @@ def test_rename_directory_different_directory(self, storage_account_name, storag # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) + assert props is not None @FileSharePreparer() - def test_rename_directory_ignore_readonly(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_ignore_readonly(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -637,11 +770,15 @@ def test_rename_directory_ignore_readonly(self, storage_account_name, storage_ac # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertTrue(props.is_directory) + assert props is not None + assert props.is_directory @FileSharePreparer() - def test_rename_directory_file_permission(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_file_permission(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) file_permission_key = share_client.create_permission_for_share(TEST_FILE_PERMISSIONS) @@ -653,11 +790,15 @@ def test_rename_directory_file_permission(self, storage_account_name, storage_ac # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertEqual(file_permission_key, props.permission_key) + assert props is not None + assert file_permission_key == props.permission_key @FileSharePreparer() - def test_rename_directory_preserve_permission(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_preserve_permission(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -670,11 +811,15 @@ def test_rename_directory_preserve_permission(self, storage_account_name, storag # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertEqual(source_permission_key, props.permission_key) + assert props is not None + assert source_permission_key == props.permission_key @FileSharePreparer() - def test_rename_directory_smb_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_smb_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -695,22 +840,26 @@ def test_rename_directory_smb_properties(self, storage_account_name, storage_acc # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertTrue(props.is_directory) - self.assertEqual(str(file_attributes), props.file_attributes.replace(' ', '')) - self.assertEqual(file_creation_time, props.creation_time) - self.assertEqual(file_last_write_time, props.last_write_time) - self.assertEqual(file_change_time, props.change_time) + assert props is not None + assert props.is_directory + assert str(file_attributes), props.file_attributes.replace(' ' == '') + assert file_creation_time == props.creation_time + assert file_last_write_time == props.last_write_time + assert file_change_time == props.change_time @FileSharePreparer() - def test_rename_directory_dest_lease(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_dest_lease(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) source_directory = share_client.create_directory('dir1') dest_directory = share_client.create_directory('dir2') dest_file = dest_directory.upload_file('test', b'Hello World') - lease = dest_file.acquire_lease() + lease = dest_file.acquire_lease(lease_id='00000000-1111-2222-3333-444444444444') # Act new_directory = source_directory.rename_directory( @@ -719,16 +868,20 @@ def test_rename_directory_dest_lease(self, storage_account_name, storage_account # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertTrue(props.is_directory) + assert props is not None + assert props.is_directory - @pytest.mark.live_test_only @FileSharePreparer() - def test_rename_directory_share_sas(self, storage_account_name, storage_account_key): + @recorded_by_proxy + def test_rename_directory_share_sas(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) - token = generate_share_sas( + token = self.generate_sas( + generate_share_sas, share_client.account_name, share_client.share_name, share_client.credential.account_key, @@ -746,7 +899,7 @@ def test_rename_directory_share_sas(self, storage_account_name, storage_account_ # Assert props = new_directory.get_directory_properties() - self.assertIsNotNone(props) + assert props is not None # ------------------------------------------------------------------------------ diff --git a/sdk/storage/azure-storage-file-share/tests/test_directory_async.py b/sdk/storage/azure-storage-file-share/tests/test_directory_async.py index fcd1090e777c..bd9e0d996696 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_directory_async.py +++ b/sdk/storage/azure-storage-file-share/tests/test_directory_async.py @@ -7,12 +7,10 @@ # -------------------------------------------------------------------------- import unittest import asyncio -import pytest from datetime import datetime, timedelta -from azure.core.exceptions import ResourceNotFoundError, ResourceExistsError -from azure.core.pipeline.transport import AioHttpTransport -from multidict import CIMultiDict, CIMultiDictProxy +import pytest +from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError from azure.storage.fileshare import ( generate_share_sas, NTFSAttributes, @@ -20,31 +18,23 @@ StorageErrorCode ) from azure.storage.fileshare.aio import ShareDirectoryClient, ShareServiceClient + +from devtools_testutils.aio import recorded_by_proxy_async +from devtools_testutils.storage.aio import AsyncStorageRecordedTestCase from settings.testcase import FileSharePreparer -from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ TEST_FILE_PERMISSIONS = 'O:S-1-5-21-2127521184-1604012920-1887927527-21560751G:S-1-5-21-2127521184-' \ '1604012920-1887927527-513D:AI(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;' \ 'S-1-5-21-397955417-626881126-188441444-3053964)' -class AiohttpTestTransport(AioHttpTransport): - """Workaround to vcrpy bug: https://github.com/kevin1024/vcrpy/pull/461 - """ - async def send(self, request, **config): - response = await super(AiohttpTestTransport, self).send(request, **config) - if not isinstance(response.headers, CIMultiDictProxy): - response.headers = CIMultiDictProxy(CIMultiDict(response.internal_response.headers)) - response.content_type = response.headers.get("content-type") - return response - -class StorageDirectoryTest(AsyncStorageTestCase): +class TestStorageDirectoryAsync(AsyncStorageRecordedTestCase): # --Helpers----------------------------------------------------------------- async def _setup(self, storage_account_name, storage_account_key): url = self.account_url(storage_account_name, "file") credential = storage_account_key - self.fsc = ShareServiceClient(url, credential=credential, transport=AiohttpTestTransport()) + self.fsc = ShareServiceClient(url, credential=credential) self.share_name = self.get_resource_name('utshare') if not self.is_playback(): try: @@ -61,8 +51,11 @@ def _teardown(self, FILE_PATH): # --Test cases for directories ---------------------------------------------- @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_directories_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_directories(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -71,11 +64,14 @@ async def test_create_directories_async(self, storage_account_name, storage_acco created = await share_client.create_directory('dir1') # Assert - self.assertTrue(created) + assert created @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_directories_with_metadata_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_directories_with_metadata(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -86,26 +82,32 @@ async def test_create_directories_with_metadata_async(self, storage_account_name # Assert props = await directory.get_directory_properties() - self.assertDictEqual(props.metadata, metadata) + assert props.metadata == metadata @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_directories_fail_on_exist_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_directories_fail_on_exist(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) # Act created = await share_client.create_directory('dir1') - with self.assertRaises(ResourceExistsError): + with pytest.raises(ResourceExistsError): await share_client.create_directory('dir1') # Assert - self.assertTrue(created) + assert created @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_directory_set_smb_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_directory_set_smb_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -123,16 +125,19 @@ async def test_create_directory_set_smb_properties(self, storage_account_name, s directory_properties = await directory_client.get_directory_properties() # Assert - self.assertIsNotNone(directory_properties) - self.assertEqual(file_creation_time, directory_properties.creation_time) - self.assertEqual(file_last_write_time, directory_properties.last_write_time) - self.assertEqual(file_change_time, directory_properties.change_time) - self.assertIn('ReadOnly', directory_properties.file_attributes) - self.assertIn('Directory', directory_properties.file_attributes) + assert directory_properties is not None + assert file_creation_time == directory_properties.creation_time + assert file_last_write_time == directory_properties.last_write_time + assert file_change_time == directory_properties.change_time + assert 'ReadOnly' in directory_properties.file_attributes + assert 'Directory' in directory_properties.file_attributes @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_subdirectories_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_subdirectories(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -142,13 +147,16 @@ async def test_create_subdirectories_async(self, storage_account_name, storage_a created = await directory.create_subdirectory('dir2') # Assert - self.assertTrue(created) - self.assertEqual(created.directory_path, 'dir1/dir2') + assert created + assert created.directory_path == 'dir1/dir2' @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_subdirectories_with_metadata_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_subdirectories_with_metadata(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -159,14 +167,17 @@ async def test_create_subdirectories_with_metadata_async(self, storage_account_n created = await directory.create_subdirectory('dir2', metadata=metadata) # Assert - self.assertTrue(created) - self.assertEqual(created.directory_path, 'dir1/dir2') + assert created + assert created.directory_path == 'dir1/dir2' properties = await created.get_directory_properties() - self.assertEqual(properties.metadata, metadata) + assert properties.metadata == metadata @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_create_file_in_directory_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_create_file_in_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) file_data = b'12345678' * 1024 @@ -180,11 +191,14 @@ async def test_create_file_in_directory_async(self, storage_account_name, storag # Assert file_content = await new_file.download_file() file_content = await file_content.readall() - self.assertEqual(file_content, file_data) + assert file_content == file_data @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_delete_file_in_directory_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_delete_file_in_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) file_name = self.get_resource_name('file') @@ -196,13 +210,16 @@ async def test_delete_file_in_directory_async(self, storage_account_name, storag deleted = await directory.delete_file(file_name) # Assert - self.assertIsNone(deleted) - with self.assertRaises(ResourceNotFoundError): + assert deleted is None + with pytest.raises(ResourceNotFoundError): await new_file.get_file_properties() @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_delete_subdirectories_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_delete_subdirectories(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -213,14 +230,17 @@ async def test_delete_subdirectories_async(self, storage_account_name, storage_a deleted = await directory.delete_subdirectory('dir2') # Assert - self.assertIsNone(deleted) + assert deleted is None subdir = directory.get_subdirectory_client('dir2') - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): await subdir.get_directory_properties() @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_get_directory_properties_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_get_directory_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -230,13 +250,16 @@ async def test_get_directory_properties_async(self, storage_account_name, storag props = await directory.get_directory_properties() # Assert - self.assertIsNotNone(props) - self.assertIsNotNone(props.etag) - self.assertIsNotNone(props.last_modified) + assert props is not None + assert props.etag is not None + assert props.last_modified is not None @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_get_directory_properties_with_snapshot_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_get_directory_properties_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -252,14 +275,17 @@ async def test_get_directory_properties_with_snapshot_async(self, storage_accoun props = await snap_dir.get_directory_properties() # Assert - self.assertIsNotNone(props) - self.assertIsNotNone(props.etag) - self.assertIsNotNone(props.last_modified) - self.assertDictEqual(metadata, props.metadata) + assert props is not None + assert props.etag is not None + assert props.last_modified is not None + assert metadata == props.metadata @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_get_directory_metadata_with_snapshot_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_get_directory_metadata_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -275,26 +301,32 @@ async def test_get_directory_metadata_with_snapshot_async(self, storage_account_ snapshot_props = await snap_dir.get_directory_properties() # Assert - self.assertIsNotNone(snapshot_props.metadata) - self.assertDictEqual(metadata, snapshot_props.metadata) + assert snapshot_props.metadata is not None + assert metadata == snapshot_props.metadata @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_get_directory_properties_with_non_existing_directory_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_get_directory_properties_with_non_existing_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('dir1') # Act - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): await directory.get_directory_properties() # Assert @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_share_directory_exists_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_share_directory_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = await share_client.create_directory('dir1') @@ -303,12 +335,15 @@ async def test_share_directory_exists_async(self, storage_account_name, storage_ exists = await directory.exists() exists2 = await directory2.exists() - self.assertTrue(exists) - self.assertFalse(exists2) + assert exists + assert not exists2 @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_directory_exists_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_directory_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -318,40 +353,49 @@ async def test_directory_exists_async(self, storage_account_name, storage_accoun exists = await directory.get_directory_properties() # Assert - self.assertTrue(exists) + assert exists @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_directory_not_exists_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_directory_not_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('dir1') # Act - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): await directory.get_directory_properties() # Assert @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_directory_parent_not_exists_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_directory_parent_not_exists(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('missing1/missing2') # Act - with self.assertRaises(ResourceNotFoundError) as e: + with pytest.raises(ResourceNotFoundError) as e: await directory.get_directory_properties() # Assert - self.assertEqual(e.exception.error_code, StorageErrorCode.parent_not_found) + assert e.value.error_code == StorageErrorCode.parent_not_found @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_directory_exists_with_snapshot_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_directory_exists_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -365,11 +409,14 @@ async def test_directory_exists_with_snapshot_async(self, storage_account_name, exists = await snap_dir.get_directory_properties() # Assert - self.assertTrue(exists) + assert exists @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_directory_not_exists_with_snapshot_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_directory_not_exists_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -380,14 +427,17 @@ async def test_directory_not_exists_with_snapshot_async(self, storage_account_na share_client = self.fsc.get_share_client(self.share_name, snapshot=snapshot) snap_dir = share_client.get_directory_client('dir1') - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): await snap_dir.get_directory_properties() # Assert @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_get_set_directory_metadata_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_get_set_directory_metadata(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -399,11 +449,14 @@ async def test_get_set_directory_metadata_async(self, storage_account_name, stor props = await directory.get_directory_properties() # Assert - self.assertDictEqual(props.metadata, metadata) + assert props.metadata == metadata @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_set_directory_properties_with_empty_smb_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_set_directory_properties_with_empty_smb_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -416,16 +469,16 @@ async def test_set_directory_properties_with_empty_smb_properties(self, storage_ # Assert # Make sure set empty smb_properties doesn't change smb_properties - self.assertEqual(directory_properties_on_creation.creation_time, - directory_properties.creation_time) - self.assertEqual(directory_properties_on_creation.last_write_time, - directory_properties.last_write_time) - self.assertEqual(directory_properties_on_creation.permission_key, - directory_properties.permission_key) + assert directory_properties_on_creation.creation_time == directory_properties.creation_time + assert directory_properties_on_creation.last_write_time == directory_properties.last_write_time + assert directory_properties_on_creation.permission_key == directory_properties.permission_key @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_set_directory_properties_with_file_permission_key(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_set_directory_properties_with_file_permission_key(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -451,13 +504,16 @@ async def test_set_directory_properties_with_file_permission_key(self, storage_a directory_properties = await directory_client.get_directory_properties() # Assert - self.assertIsNotNone(directory_properties) - self.assertEqual(directory_properties.creation_time, new_creation_time) - self.assertEqual(directory_properties.last_write_time, new_last_write_time) + assert directory_properties is not None + assert directory_properties.creation_time == new_creation_time + assert directory_properties.last_write_time == new_last_write_time @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_list_subdirectories_and_files_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_list_subdirectories_and_files(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -476,27 +532,30 @@ async def test_list_subdirectories_and_files_async(self, storage_account_name, s list_dir.append(d) # Assert - self.assertEqual(len(list_dir), 6) - self.assertEqual(len(list_dir), 6) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'subdir2') - self.assertEqual(list_dir[1]['is_directory'], True) - self.assertEqual(list_dir[2]['name'], 'subdir3') - self.assertEqual(list_dir[2]['is_directory'], True) - self.assertEqual(list_dir[3]['name'], 'file1') - self.assertEqual(list_dir[3]['is_directory'], False) - self.assertEqual(list_dir[3]['size'], 5) - self.assertEqual(list_dir[4]['name'], 'file2') - self.assertEqual(list_dir[4]['is_directory'], False) - self.assertEqual(list_dir[4]['size'], 5) - self.assertEqual(list_dir[5]['name'], 'file3') - self.assertEqual(list_dir[5]['is_directory'], False) - self.assertEqual(list_dir[5]['size'], 5) + assert len(list_dir) == 6 + assert len(list_dir) == 6 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'subdir2' + assert list_dir[1]['is_directory'] == True + assert list_dir[2]['name'] == 'subdir3' + assert list_dir[2]['is_directory'] == True + assert list_dir[3]['name'] == 'file1' + assert list_dir[3]['is_directory'] == False + assert list_dir[3]['size'] == 5 + assert list_dir[4]['name'] == 'file2' + assert list_dir[4]['is_directory'] == False + assert list_dir[4]['size'] == 5 + assert list_dir[5]['name'] == 'file3' + assert list_dir[5]['is_directory'] == False + assert list_dir[5]['size'] == 5 @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_list_subdirectories_and_files_include_other_data_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_list_subdirectories_and_files_include_other_data(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -514,14 +573,14 @@ async def test_list_subdirectories_and_files_include_other_data_async(self, stor async for d in directory.list_directories_and_files(include=["timestamps", "Etag", "Attributes", "PermissionKey"]): list_dir.append(d) - self.assertEqual(len(list_dir), 6) - self.assertIsNotNone(list_dir[0].etag) - self.assertIsNotNone(list_dir[1].file_attributes) - self.assertIsNotNone(list_dir[1].last_access_time) - self.assertIsNotNone(list_dir[1].last_write_time) - self.assertIsNotNone(list_dir[2].change_time) - self.assertIsNotNone(list_dir[2].creation_time) - self.assertIsNotNone(list_dir[2].file_id) + assert len(list_dir) == 6 + assert list_dir[0].etag is not None + assert list_dir[1].file_attributes is not None + assert list_dir[1].last_access_time is not None + assert list_dir[1].last_write_time is not None + assert list_dir[2].change_time is not None + assert list_dir[2].creation_time is not None + assert list_dir[2].file_id is not None try: await share_client.delete_share() @@ -529,8 +588,11 @@ async def test_list_subdirectories_and_files_include_other_data_async(self, stor pass @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_list_subdirectories_and_files_include_extended_info_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_list_subdirectories_and_files_include_extended_info(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -543,14 +605,17 @@ async def test_list_subdirectories_and_files_include_extended_info_async(self, s async for d in directory.list_directories_and_files(include_extended_info=True): list_dir.append(d) - self.assertEqual(len(list_dir), 1) - self.assertIsNotNone(list_dir[0].file_id) - self.assertIsNone(list_dir[0].file_attributes) - self.assertIsNone(list_dir[0].last_access_time) + assert len(list_dir) == 1 + assert list_dir[0].file_id is not None + assert list_dir[0].file_attributes is None + assert list_dir[0].last_access_time is None @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_list_subdirectories_and_files_with_prefix_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_list_subdirectories_and_files_with_prefix(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -569,17 +634,20 @@ async def test_list_subdirectories_and_files_with_prefix_async(self, storage_acc list_dir.append(d) # Assert - self.assertEqual(len(list_dir), 3) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'subdir2') - self.assertEqual(list_dir[1]['is_directory'], True) - self.assertEqual(list_dir[2]['name'], 'subdir3') - self.assertEqual(list_dir[2]['is_directory'], True) + assert len(list_dir) == 3 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'subdir2' + assert list_dir[1]['is_directory'] == True + assert list_dir[2]['name'] == 'subdir3' + assert list_dir[2]['is_directory'] == True @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_list_subdirectories_and_files_with_snapshot_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_list_subdirectories_and_files_with_snapshot(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -604,18 +672,21 @@ async def test_list_subdirectories_and_files_with_snapshot_async(self, storage_a list_dir.append(d) # Assert - self.assertEqual(len(list_dir), 3) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'subdir2') - self.assertEqual(list_dir[1]['is_directory'], True) - self.assertEqual(list_dir[2]['name'], 'file1') - self.assertEqual(list_dir[2]['is_directory'], False) - self.assertEqual(list_dir[2]['size'], 5) + assert len(list_dir) == 3 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'subdir2' + assert list_dir[1]['is_directory'] == True + assert list_dir[2]['name'] == 'file1' + assert list_dir[2]['is_directory'] == False + assert list_dir[2]['size'] == 5 @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_list_nested_subdirectories_and_files_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_list_nested_subdirectories_and_files(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -634,16 +705,19 @@ async def test_list_nested_subdirectories_and_files_async(self, storage_account_ list_dir.append(d) # Assert - self.assertEqual(len(list_dir), 2) - self.assertEqual(list_dir[0]['name'], 'subdir1') - self.assertEqual(list_dir[0]['is_directory'], True) - self.assertEqual(list_dir[1]['name'], 'file1') - self.assertEqual(list_dir[1]['is_directory'], False) - self.assertEqual(list_dir[1]['size'], 5) + assert len(list_dir) == 2 + assert list_dir[0]['name'] == 'subdir1' + assert list_dir[0]['is_directory'] == True + assert list_dir[1]['name'] == 'file1' + assert list_dir[1]['is_directory'] == False + assert list_dir[1]['size'] == 5 @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_delete_directory_with_existing_share_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_delete_directory_with_existing_share(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -653,27 +727,33 @@ async def test_delete_directory_with_existing_share_async(self, storage_account_ deleted = await directory.delete_directory() # Assert - self.assertIsNone(deleted) - with self.assertRaises(ResourceNotFoundError): + assert deleted is None + with pytest.raises(ResourceNotFoundError): await directory.get_directory_properties() @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_delete_directory_with_non_existing_directory_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_delete_directory_with_non_existing_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) directory = share_client.get_directory_client('dir1') # Act - with self.assertRaises(ResourceNotFoundError): + with pytest.raises(ResourceNotFoundError): await directory.delete_directory() # Assert @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_get_directory_properties_server_encryption_async(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_get_directory_properties_server_encryption(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -683,14 +763,17 @@ async def test_get_directory_properties_server_encryption_async(self, storage_ac props = await directory.get_directory_properties() # Assert - self.assertIsNotNone(props) - self.assertIsNotNone(props.etag) - self.assertIsNotNone(props.last_modified) - self.assertTrue(props.server_encrypted) + assert props is not None + assert props.etag is not None + assert props.last_modified is not None + assert props.server_encrypted @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -702,11 +785,14 @@ async def test_rename_directory(self, storage_account_name, storage_account_key) # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) + assert props is not None @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_different_directory(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_different_directory(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -722,11 +808,14 @@ async def test_rename_directory_different_directory(self, storage_account_name, # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) + assert props is not None @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_ignore_readonly(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_ignore_readonly(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -745,12 +834,15 @@ async def test_rename_directory_ignore_readonly(self, storage_account_name, stor # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertTrue(props.is_directory) + assert props is not None + assert props.is_directory @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_file_permission(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_file_permission(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -763,12 +855,15 @@ async def test_rename_directory_file_permission(self, storage_account_name, stor # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertEqual(file_permission_key, props.permission_key) + assert props is not None + assert file_permission_key == props.permission_key @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_preserve_permission(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_preserve_permission(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -782,12 +877,15 @@ async def test_rename_directory_preserve_permission(self, storage_account_name, # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertEqual(source_permission_key, props.permission_key) + assert props is not None + assert source_permission_key == props.permission_key @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_smb_properties(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_smb_properties(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -809,16 +907,19 @@ async def test_rename_directory_smb_properties(self, storage_account_name, stora # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertTrue(props.is_directory) - self.assertEqual(str(file_attributes), props.file_attributes.replace(' ', '')) - self.assertEqual(file_creation_time, props.creation_time) - self.assertEqual(file_last_write_time, props.last_write_time) - self.assertEqual(file_change_time, props.change_time) + assert props is not None + assert props.is_directory + assert str(file_attributes), props.file_attributes.replace(' ' == '') + assert file_creation_time == props.creation_time + assert file_last_write_time == props.last_write_time + assert file_change_time == props.change_time @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_dest_lease(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_dest_lease(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) @@ -826,7 +927,7 @@ async def test_rename_directory_dest_lease(self, storage_account_name, storage_a source_directory = await share_client.create_directory('dir1') dest_directory = await share_client.create_directory('dir2') dest_file = await dest_directory.upload_file('test', b'Hello World') - lease = await dest_file.acquire_lease() + lease = await dest_file.acquire_lease(lease_id='00000000-1111-2222-3333-444444444444') # Act new_directory = await source_directory.rename_directory( @@ -835,18 +936,21 @@ async def test_rename_directory_dest_lease(self, storage_account_name, storage_a # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) - self.assertTrue(props.is_directory) + assert props is not None + assert props.is_directory - @pytest.mark.live_test_only @FileSharePreparer() - @AsyncStorageTestCase.await_prepared_test - async def test_rename_directory_share_sas(self, storage_account_name, storage_account_key): + @recorded_by_proxy_async + async def test_rename_directory_share_sas(self, **kwargs): + storage_account_name = kwargs.pop("storage_account_name") + storage_account_key = kwargs.pop("storage_account_key") + # Arrange await self._setup(storage_account_name, storage_account_key) share_client = self.fsc.get_share_client(self.share_name) - token = generate_share_sas( + token = self.generate_sas( + generate_share_sas, share_client.account_name, share_client.share_name, share_client.credential.account_key, @@ -864,6 +968,6 @@ async def test_rename_directory_share_sas(self, storage_account_name, storage_ac # Assert props = await new_directory.get_directory_properties() - self.assertIsNotNone(props) + assert props is not None # ------------------------------------------------------------------------------