2014-07-25 05:50:11 +08:00
|
|
|
// Test S3 filesystem interface
|
2018-09-07 19:02:27 +08:00
|
|
|
package s3
|
2014-07-25 05:50:11 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2019-07-29 01:47:38 +08:00
|
|
|
"github.com/rclone/rclone/fs"
|
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
2014-07-25 05:50:11 +08:00
|
|
|
)
|
|
|
|
|
2018-04-08 01:48:11 +08:00
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
2019-09-10 03:44:50 +08:00
|
|
|
RemoteName: "TestS3:",
|
|
|
|
NilObject: (*Object)(nil),
|
|
|
|
TiersToTest: []string{"STANDARD", "STANDARD_IA"},
|
2018-09-07 19:02:27 +08:00
|
|
|
ChunkedUpload: fstests.ChunkedUploadConfig{
|
|
|
|
MinChunkSize: minChunkSize,
|
|
|
|
},
|
2018-04-08 01:48:11 +08:00
|
|
|
})
|
2014-07-25 05:50:11 +08:00
|
|
|
}
|
2018-09-07 19:02:27 +08:00
|
|
|
|
|
|
|
func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadChunkSize(cs)
|
|
|
|
}
|
|
|
|
|
2018-11-27 05:09:23 +08:00
|
|
|
func (f *Fs) SetUploadCutoff(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadCutoff(cs)
|
|
|
|
}
|
|
|
|
|
2018-09-07 19:02:27 +08:00
|
|
|
var _ fstests.SetUploadChunkSizer = (*Fs)(nil)
|