Skip to content

Commit 8552ac7

Browse files
author
Yalin Li
authored
Fix failing tests (Azure#25823)
1 parent 53fb29f commit 8552ac7

File tree

5 files changed

+405
-1678
lines changed

5 files changed

+405
-1678
lines changed

sdk/tables/azure-data-tables/azure/data/tables/_error.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def _validate_tablename_error(decoded_error, table_name):
110110
_validate_cosmos_tablename(table_name)
111111
elif (decoded_error.error_code == 'InvalidInput' and
112112
('Request url is invalid.' in decoded_error.message or
113-
'One of the input values is invalid.' in decoded_error.message)):
113+
'One of the input values is invalid.' in decoded_error.message or
114+
'The table name contains an invalid character' in decoded_error.message or
115+
'Table name cannot end with a space.' in decoded_error.message)):
114116
# This error is raised by Cosmos for any entity operations or delete_table if the table name contains
115117
# forbidden characters (except in the case of trailing space and backslash).
116118
_validate_cosmos_tablename(table_name)

0 commit comments

Comments
 (0)