github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/backend/azureblob/azureblob_test.go (about) 1 // Test AzureBlob filesystem interface 2 3 // +build !plan9,!solaris 4 5 package azureblob 6 7 import ( 8 "testing" 9 10 "github.com/rclone/rclone/fs" 11 "github.com/rclone/rclone/fstest/fstests" 12 ) 13 14 // TestIntegration runs integration tests against the remote 15 func TestIntegration(t *testing.T) { 16 fstests.Run(t, &fstests.Opt{ 17 RemoteName: "TestAzureBlob:", 18 NilObject: (*Object)(nil), 19 TiersToTest: []string{"Hot", "Cool"}, 20 ChunkedUpload: fstests.ChunkedUploadConfig{ 21 MaxChunkSize: maxChunkSize, 22 }, 23 }) 24 } 25 26 func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) { 27 return f.setUploadChunkSize(cs) 28 } 29 30 func (f *Fs) SetUploadCutoff(cs fs.SizeSuffix) (fs.SizeSuffix, error) { 31 return f.setUploadCutoff(cs) 32 } 33 34 var ( 35 _ fstests.SetUploadChunkSizer = (*Fs)(nil) 36 _ fstests.SetUploadCutoffer = (*Fs)(nil) 37 )