mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
s3: add documentation and test cases for upload part size
This commit is contained in:
@@ -363,6 +363,12 @@ func TestCompareUserFsConfig(t *testing.T) {
|
||||
t.Errorf("S3 key prefix does not match")
|
||||
}
|
||||
expected.FsConfig.S3Config.KeyPrefix = ""
|
||||
expected.FsConfig.S3Config.UploadPartSize = 10
|
||||
err = compareUserFsConfig(expected, actual)
|
||||
if err == nil {
|
||||
t.Errorf("S3 upload part size does not match")
|
||||
}
|
||||
expected.FsConfig.S3Config.UploadPartSize = 0
|
||||
}
|
||||
|
||||
func TestCompareUserGCSConfig(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user