You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe TestListEmptyDir should list an existing empty dir?
How about CreateDir(path) before List? But the service should support CreateDir feature. I'm not sure it's appropriate to check s.p.store.Features().CreateDir in TestListEmptyDir. If we judge in TestList, all of test cases for List may not be executed.
After adding CreateDir(path) before List, file hosting services basically passes the test now, but the object storage services no longer passes the test:
TestListEmptyDir will get the object workdir/path/ with size 0 in s3 and cos, maybe more services.
TestListEmptyDir test case will be passed when testing service s3 with minio.
go-storage/tests/storager_list.go
Lines 86 to 96 in 813c8a1
path
is currently a non-existent path for the service. When listing a non-existent dir:ListObjects
will get an emptyContents
inListBucketResult
, in line with the expected behavior.fs
, althoughlist
does not return an error, we will getno such file or directory
error when callingNext()
.dropbox
:ListFolder
will returnpath/not_found/...
error.The text was updated successfully, but these errors were encountered: