File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def get_client(name: str,
186
186
if 'ERROR: AADSTS50020' in str (e ):
187
187
with ux_utils .print_exception_no_traceback ():
188
188
raise sky_exceptions .StorageBucketGetError (
189
- 'Attempted to fetch a non-existant public '
189
+ 'Attempted to fetch a non-existent public '
190
190
'container name: '
191
191
f'{ container_client .container_name } . '
192
192
'Please check if the name is correct.' )
Original file line number Diff line number Diff line change @@ -2537,7 +2537,7 @@ def _get_bucket(self) -> Tuple[str, bool]:
2537
2537
if 'Name or service not known' in error_message :
2538
2538
with ux_utils .print_exception_no_traceback ():
2539
2539
raise exceptions .StorageBucketGetError (
2540
- 'Attempted to fetch the container from non-existant '
2540
+ 'Attempted to fetch the container from non-existent '
2541
2541
'storage account '
2542
2542
f'name: { self .storage_account_name } . Please check '
2543
2543
'if the name is correct.' )
Original file line number Diff line number Diff line change @@ -4895,10 +4895,14 @@ def test_private_bucket(self, private_bucket):
4895
4895
private_bucket ).path .strip ('/' )
4896
4896
else :
4897
4897
private_bucket_name = urllib .parse .urlsplit (private_bucket ).netloc
4898
- with pytest .raises (
4899
- sky .exceptions .StorageBucketGetError ,
4900
- match = storage_lib ._BUCKET_FAIL_TO_CONNECT_MESSAGE .format (
4901
- name = private_bucket_name )):
4898
+ match_str = storage_lib ._BUCKET_FAIL_TO_CONNECT_MESSAGE .format (
4899
+ name = private_bucket_name )
4900
+ if store_type == 'https' :
4901
+ # Azure blob uses a different error string since container may
4902
+ # not exist even though the bucket name is ok.
4903
+ match_str = 'Attempted to fetch a non-existent public container'
4904
+ with pytest .raises (sky .exceptions .StorageBucketGetError ,
4905
+ match = match_str ):
4902
4906
storage_obj = storage_lib .Storage (source = private_bucket )
4903
4907
4904
4908
@pytest .mark .no_fluidstack
You can’t perform that action at this time.
0 commit comments