diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 468f089eee90..d2c5fb4ebd4b 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -6,6 +6,7 @@ "powershell", "python", "softwareTerms", + "lorem-ipsum", "en_us", "en-gb" ], @@ -79,7 +80,6 @@ "sdk/storage/azure-storage-blob-changefeed/**", "sdk/servicebus/azure-servicebus/**", "sdk/storage/azure-storage-queue/**", - "sdk/storage/azure-storage-file-datalake/**", "sdk/synapse/azure-synapse/**", "sdk/videoanalyzer/azure-media-videoanalyzer-edge/**", "sdk/synapse/azure-synapse-artifacts/**", @@ -155,6 +155,7 @@ "deserialization", "disablecov", "docfx", + "dont", "dotenv", "dpkg", "dtlk", @@ -234,6 +235,8 @@ "MSSQL", "mutex", "myacr", + "mydirectory", + "myfile", "nazsdk", "noarch", "NOPERM", @@ -378,7 +381,6 @@ "IOHTTP", "Zocor", "dann", - "dont", "UMLS", "nach", "año", @@ -546,6 +548,43 @@ "evalue" ] }, + { + "filename": "sdk/storage/azure-storage-file-datalake/**", + "words": [ + "dlake", + "rwxrwxrwx", + "rwxrw", + "rwxr", + "ABFS", + "mynewfile", + "mynewdirectory", + "mynewfilesystem", + "mynewfilesystems", + "myfilesystem", + "myfilesystemforlistpaths", + "myfilesystemforgetclient", + "myclientfilesystem", + "mydirectoryfilesystem", + "myleasefilesystem", + "mypathfilesystem", + "mymetadatafilesystemsync", + "fpath", + "fsname", + "dname", + "filesys", + "testfs", + "nonexistentfs", + "saoid", + "testid", + "deletionid", + "cpkfile", + "cpkdirectory", + "cpksubdirectory", + "thead", + "tbody", + "racwdlmeop" + ] + }, { "filename": "sdk/loadtestservice/azure-developer-loadtesting/azure/developer/loadtesting/**", "words":[ @@ -681,8 +720,6 @@ "rcwd", "rcwdl", "prevsharesnapshot", - "mydirectory", - "myfile", "mydir", "amet", "consectetur", diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py index 2a93df0eae88..ee0f6ca93eee 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py @@ -304,7 +304,7 @@ def rename_directory(self, new_name, **kwargs): The value must have the following format: "{filesystem}/{directory}/{subdirectory}". :keyword source_lease: A lease ID for the source path. If specified, - the source path must have an active lease and the leaase ID must + the source path must have an active lease and the lease ID must match. :paramtype source_lease: ~azure.storage.filedatalake.DataLakeLeaseClient or str :keyword lease: diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py index a36e7c41759e..f90db84937b6 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py @@ -711,7 +711,7 @@ def rename_file(self, new_name, **kwargs): :keyword ~azure.storage.filedatalake.ContentSettings content_settings: ContentSettings object used to set path properties. :keyword source_lease: A lease ID for the source path. If specified, - the source path must have an active lease and the leaase ID must + the source path must have an active lease and the lease ID must match. :paramtype source_lease: ~azure.storage.filedatalake.DataLakeLeaseClient or str :keyword lease: diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_download.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_download.py index 3c7d977c3760..d359fbde8595 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_download.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_download.py @@ -17,7 +17,7 @@ class StorageStreamDownloader(object): The properties of the file being downloaded. If only a range of the data is being downloaded, this will be reflected in the properties. :ivar int size: - The size of the total data in the stream. This will be the byte range if speficied, + The size of the total data in the stream. This will be the byte range if specified, otherwise the total size of the file. """ @@ -43,10 +43,10 @@ def read(self, size: Optional[int] = -1) -> bytes: is unspecified or is -1, all bytes will be read. :param size: - The number of bytes to download from the stream. Leave unsepcified + The number of bytes to download from the stream. Leave unspecified or set to -1 to download all bytes. :returns: - The requsted data as bytes. If the return value is empty, there is no more data to read. + The requested data as bytes. If the return value is empty, there is no more data to read. :rtype: bytes """ return self._downloader.read(size) diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_list_paths_helper.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_list_paths_helper.py index e5cb8f65714d..1120b973ca35 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_list_paths_helper.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_list_paths_helper.py @@ -121,7 +121,7 @@ class PathPropertiesPaged(PageIterator): :param callable command: Function to retrieve the next page of items. :param str path: Filters the results to return only paths under the specified path. - :param int max_results: The maximum number of psths to retrieve per + :param int max_results: The maximum number of paths to retrieve per call. :param str continuation_token: An opaque continuation token. """ diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py index 8e655a8da37f..3d5e4fc19118 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_models.py @@ -409,7 +409,7 @@ def from_string(cls, permission): :param str permission: The string which dictates the read, add, create, write, or delete permissions. :return: A FileSystemSasPermissions object - :rtype: ~azure.storage.fildatalake.FileSystemSasPermissions + :rtype: ~azure.storage.filedatalake.FileSystemSasPermissions """ p_read = 'r' in permission p_add = 'a' in permission @@ -580,7 +580,7 @@ def from_string(cls, permission): :param str permission: The string which dictates the read, add, create, write, or delete permissions. :return: A FileSasPermissions object - :rtype: ~azure.storage.fildatalake.FileSasPermissions + :rtype: ~azure.storage.filedatalake.FileSasPermissions """ p_read = 'r' in permission p_add = 'a' in permission diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py index 2d8c14cbee12..62e46cc39d30 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py @@ -758,7 +758,7 @@ def _rename_path(self, rename_source, **kwargs): ContentSettings object used to set path properties. :keyword source_lease: A lease ID for the source path. If specified, - the source path must have an active lease and the leaase ID must + the source path must have an active lease and the lease ID must match. :paramtype source_lease: ~azure.storage.filedatalake.DataLakeLeaseClient or str :keyword lease: @@ -914,7 +914,7 @@ def set_http_headers(self, content_settings=None, # type: Optional[ContentSetti # type: (...) -> Dict[str, Any] """Sets system properties on the file or directory. - If one property is set for the content_settings, all properties will be overriden. + If one property is set for the content_settings, all properties will be overridden. :param ~azure.storage.filedatalake.ContentSettings content_settings: ContentSettings object used to set file/directory properties. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared_access_signature.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared_access_signature.py index b464261c2300..6555dce5d2ec 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared_access_signature.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared_access_signature.py @@ -325,7 +325,7 @@ def generate_file_sas( :param permission: The permissions associated with the shared access signature. The user is restricted to operations allowed by the permissions. - Permissions must be ordered racwdmeop. + Permissions must be ordered racwdlmeop. Required unless an id is given referencing a stored access policy which contains this field. This field must be omitted if it has been specified in an associated stored access policy. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py index 5c0fa8a061be..c613061d6d9f 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py @@ -269,7 +269,7 @@ async def rename_directory(self, new_name, # type: str The value must have the following format: "{filesystem}/{directory}/{subdirectory}". :keyword source_lease: A lease ID for the source path. If specified, - the source path must have an active lease and the leaase ID must + the source path must have an active lease and the lease ID must match. :paramtype source_lease: ~azure.storage.filedatalake.aio.DataLakeLeaseClient or str :keyword lease: diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py index bc883e81002b..faff03459242 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py @@ -552,7 +552,7 @@ async def rename_file(self, new_name, **kwargs): :keyword ~azure.storage.filedatalake.ContentSettings content_settings: ContentSettings object used to set path properties. :keyword source_lease: A lease ID for the source path. If specified, - the source path must have an active lease and the leaase ID must + the source path must have an active lease and the lease ID must match. :paramtype source_lease: ~azure.storage.filedatalake.aio.DataLakeLeaseClient or str :keyword lease: diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_download_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_download_async.py index dd77e59b7021..b55a394601c7 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_download_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_download_async.py @@ -17,7 +17,7 @@ class StorageStreamDownloader(object): The properties of the file being downloaded. If only a range of the data is being downloaded, this will be reflected in the properties. :ivar int size: - The size of the total data in the stream. This will be the byte range if speficied, + The size of the total data in the stream. This will be the byte range if specified, otherwise the total size of the file. """ @@ -43,10 +43,10 @@ async def read(self, size: Optional[int] = -1) -> bytes: is unspecified or is -1, all bytes will be read. :param size: - The number of bytes to download from the stream. Leave unsepcified + The number of bytes to download from the stream. Leave unspecified or set to -1 to download all bytes. :returns: - The requsted data as bytes. If the return value is empty, there is no more data to read. + The requested data as bytes. If the return value is empty, there is no more data to read. :rtype: bytes """ return await self._downloader.read(size) diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_list_paths_helper.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_list_paths_helper.py index 74ce2d778e28..2d1497437faf 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_list_paths_helper.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_list_paths_helper.py @@ -124,7 +124,7 @@ class PathPropertiesPaged(AsyncPageIterator): :param callable command: Function to retrieve the next page of items. :param str path: Filters the results to return only paths under the specified path. - :param int max_results: The maximum number of psths to retrieve per + :param int max_results: The maximum number of paths to retrieve per call. :param str continuation_token: An opaque continuation token. """ diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py index bff06eb9523f..f9f49ec2dcba 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py @@ -567,7 +567,7 @@ async def _rename_path(self, rename_source, **kwargs): :keyword ~azure.storage.filedatalake.ContentSettings content_settings: ContentSettings object used to set path properties. :keyword source_lease: A lease ID for the source path. If specified, - the source path must have an active lease and the leaase ID must + the source path must have an active lease and the lease ID must match. :paramtype source_lease: ~azure.storage.filedatalake.aio.DataLakeLeaseClient or str :keyword lease: @@ -714,7 +714,7 @@ async def set_http_headers(self, content_settings=None, # type: Optional[Conten # type: (...) -> Dict[str, Any] """Sets system properties on the file or directory. - If one property is set for the content_settings, all properties will be overriden. + If one property is set for the content_settings, all properties will be overridden. :param ~azure.storage.filedatalake.ContentSettings content_settings: ContentSettings object used to set file/directory properties. diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file.py b/sdk/storage/azure-storage-file-datalake/tests/test_file.py index 6333cfcc46fb..816d3b94c43c 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file.py @@ -639,7 +639,7 @@ def test_read_file_with_user_delegation_key(self, **kwargs): expiry=datetime.utcnow() + timedelta(hours=1), ) - # doanload the data and make sure it is the same as uploaded data + # download the data and make sure it is the same as uploaded data new_file_client = DataLakeFileClient(self.account_url(datalake_storage_account_name, 'dfs'), file_client.file_system_name, file_client.path_name, @@ -679,7 +679,7 @@ def test_set_acl_with_user_delegation_key(self, **kwargs): expiry=datetime.utcnow() + timedelta(hours=1), ) - # doanload the data and make sure it is the same as uploaded data + # download the data and make sure it is the same as uploaded data new_file_client = DataLakeFileClient(self.account_url(datalake_storage_account_name, 'dfs'), file_client.file_system_name, file_client.path_name, @@ -726,7 +726,7 @@ def test_preauthorize_user_with_user_delegation_key(self, **kwargs): preauthorized_agent_object_id="68390a19-a643-458b-b726-408abf67b4fc" ) - # doanload the data and make sure it is the same as uploaded data + # download the data and make sure it is the same as uploaded data new_file_client = DataLakeFileClient(self.account_url(datalake_storage_account_name, 'dfs'), file_client.file_system_name, file_client.path_name, diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py b/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py index 4c6d381abd1a..36bd2bc31596 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file_system.py @@ -739,7 +739,7 @@ def test_list_paths_under_specific_path(self, datalake_storage_account_name, dat # create a file under the current directory file_client = subdir.create_file("file") - file_client.append_data(b"abced", 0, 5) + file_client.append_data(b"abced", 0, 5) # cspell:disable-line file_client.flush_data(5) generator1 = file_system.get_paths(path="dir10/subdir", max_results=2, upn=True).by_page() @@ -852,7 +852,7 @@ def test_get_root_directory_client(self, datalake_storage_account_name, datalake def test_file_system_sessions_closes_properly(self, datalake_storage_account_name, datalake_storage_account_key): self._setUp(datalake_storage_account_name, datalake_storage_account_key) # Arrange - file_system_client = self._create_file_system("fenrhxsbfvsdvdsvdsadb") + file_system_client = self._create_file_system("fenrhxsbfvsdvdsvdsadb") # cspell:disable-line with file_system_client as fs_client: with fs_client.get_file_client("file1.txt") as f_client: f_client.create_file() diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py b/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py index 38e92d081f0e..7d3b85479be6 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py @@ -751,7 +751,7 @@ async def test_list_paths_under_specific_path_async( # create a file under the current directory file_client = await subdir.create_file("file") - await file_client.append_data(b"abced", 0, 5) + await file_client.append_data(b"abced", 0, 5) # cspell:disable-line await file_client.flush_data(5) generator1 = file_system.get_paths(path="dir10/subdir", max_results=2, upn=True).by_page() diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py b/sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py index e48016472de9..5b36beb01fe0 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_quick_query.py @@ -117,7 +117,7 @@ def _setUp(self, account_name, account_key): url = self.account_url(account_name, 'dfs') self.dsc = DataLakeServiceClient(url, credential=account_key, logging_enable=True) self.config = self.dsc._config - self.filesystem_name = self.get_resource_name('utqqcontainer') + self.filesystem_name = self.get_resource_name('utqqcontainer') # cspell:disable-line if not self.is_playback(): try: @@ -898,7 +898,7 @@ def test_quick_query_input_in_parquet_format(self, datalake_storage_account_name file_client = self.dsc.get_file_client(self.filesystem_name, file_name) expression = "select * from blobstorage where id < 1;" - expected_data = b"0,mdifjt55.ea3,mdifjt55.ea3\n" + expected_data = b"0,mdifjt55.ea3,mdifjt55.ea3\n" # cspell:disable-line parquet_path = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "./resources/parquet.parquet")) with open(parquet_path, "rb") as parquet_data: