-
Notifications
You must be signed in to change notification settings - Fork 261
Closed
Description
When testing a client configured with a fake endpoint, the method BucketExistsAsync still returns true, because there's not a check for other status codes or the exception isn't thrown here:
minio-dotnet/Minio/ApiEndpoints/BucketOperations.cs
Lines 84 to 90 in 9846edb
| catch (InternalClientException ice) | |
| { | |
| if ((ice.ServerResponse is not null && | |
| HttpStatusCode.NotFound.Equals(ice.ServerResponse.StatusCode)) || | |
| ice.ServerResponse is null) | |
| return false; | |
| } |
Is this correct?
Metadata
Metadata
Assignees
Labels
No labels