2017-06-25 23:47:54 +00:00
|
|
|
// Test QingStor filesystem interface
|
2017-08-03 13:31:55 +00:00
|
|
|
|
2018-04-06 19:33:51 +00:00
|
|
|
// +build !plan9
|
2017-08-03 13:31:55 +00:00
|
|
|
|
2019-01-04 11:24:20 +00:00
|
|
|
package qingstor
|
2017-06-25 23:47:54 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2019-07-28 17:47:38 +00:00
|
|
|
"github.com/rclone/rclone/fs"
|
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
2017-06-25 23:47:54 +00:00
|
|
|
)
|
|
|
|
|
2018-04-07 17:48:11 +00:00
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestQingStor:",
|
2019-01-04 11:24:20 +00:00
|
|
|
NilObject: (*Object)(nil),
|
|
|
|
ChunkedUpload: fstests.ChunkedUploadConfig{
|
|
|
|
MinChunkSize: minChunkSize,
|
|
|
|
},
|
2018-04-07 17:48:11 +00:00
|
|
|
})
|
2017-06-25 23:47:54 +00:00
|
|
|
}
|
2019-01-04 11:24:20 +00:00
|
|
|
|
|
|
|
func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadChunkSize(cs)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (f *Fs) SetUploadCutoff(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadCutoff(cs)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _ fstests.SetUploadChunkSizer = (*Fs)(nil)
|