2017-07-25 14:18:13 +00:00
|
|
|
// Test AzureBlob filesystem interface
|
2018-07-13 15:21:49 +00:00
|
|
|
|
|
|
|
// +build !freebsd,!netbsd,!openbsd,!plan9,!solaris,go1.8
|
|
|
|
|
2018-09-07 11:02:27 +00:00
|
|
|
package azureblob
|
2017-07-25 14:18:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2018-09-07 11:02:27 +00:00
|
|
|
"github.com/ncw/rclone/fs"
|
2017-07-25 14:18:13 +00:00
|
|
|
"github.com/ncw/rclone/fstest/fstests"
|
|
|
|
)
|
|
|
|
|
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{
|
2018-09-18 12:25:20 +00:00
|
|
|
RemoteName: "TestAzureBlob:",
|
2018-09-07 11:02:27 +00:00
|
|
|
NilObject: (*Object)(nil),
|
2018-09-18 12:25:20 +00:00
|
|
|
TiersToTest: []string{"Hot", "Cool"},
|
2018-09-07 11:02:27 +00:00
|
|
|
ChunkedUpload: fstests.ChunkedUploadConfig{
|
|
|
|
MaxChunkSize: maxChunkSize,
|
|
|
|
},
|
2018-04-07 17:48:11 +00:00
|
|
|
})
|
2017-07-25 14:18:13 +00:00
|
|
|
}
|
2018-09-07 11:02:27 +00:00
|
|
|
|
|
|
|
func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadChunkSize(cs)
|
|
|
|
}
|
|
|
|
|
2018-10-13 21:45:17 +00:00
|
|
|
func (f *Fs) SetUploadCutoff(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadCutoff(cs)
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
_ fstests.SetUploadChunkSizer = (*Fs)(nil)
|
|
|
|
_ fstests.SetUploadCutoffer = (*Fs)(nil)
|
|
|
|
)
|