2017-06-26 01:47:54 +02:00
|
|
|
// Test QingStor filesystem interface
|
2017-08-03 15:31:55 +02:00
|
|
|
|
2021-09-09 14:25:25 +02:00
|
|
|
//go:build !plan9 && !js
|
2020-07-31 20:57:48 +02:00
|
|
|
// +build !plan9,!js
|
2017-08-03 15:31:55 +02:00
|
|
|
|
2019-01-04 12:24:20 +01:00
|
|
|
package qingstor
|
2017-06-26 01:47:54 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2019-07-28 19:47:38 +02:00
|
|
|
"github.com/rclone/rclone/fs"
|
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
2017-06-26 01:47:54 +02:00
|
|
|
)
|
|
|
|
|
2018-04-07 19:48:11 +02:00
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestQingStor:",
|
2019-01-04 12:24:20 +01:00
|
|
|
NilObject: (*Object)(nil),
|
|
|
|
ChunkedUpload: fstests.ChunkedUploadConfig{
|
|
|
|
MinChunkSize: minChunkSize,
|
|
|
|
},
|
2018-04-07 19:48:11 +02:00
|
|
|
})
|
2017-06-26 01:47:54 +02:00
|
|
|
}
|
2019-01-04 12:24:20 +01: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)
|