forked from TrueCloudLab/rclone
compress: improve testing
This commit is contained in:
parent
d8984cd37f
commit
45b57822d5
2 changed files with 18 additions and 10 deletions
|
@ -6,18 +6,17 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
_ "github.com/rclone/rclone/backend/dropbox"
|
_ "github.com/rclone/rclone/backend/drive"
|
||||||
_ "github.com/rclone/rclone/backend/local"
|
_ "github.com/rclone/rclone/backend/local"
|
||||||
|
_ "github.com/rclone/rclone/backend/s3"
|
||||||
|
_ "github.com/rclone/rclone/backend/swift"
|
||||||
"github.com/rclone/rclone/fstest"
|
"github.com/rclone/rclone/fstest"
|
||||||
"github.com/rclone/rclone/fstest/fstests"
|
"github.com/rclone/rclone/fstest/fstests"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestIntegration runs integration tests against the remote
|
// TestIntegration runs integration tests against the remote
|
||||||
func TestIntegration(t *testing.T) {
|
func TestIntegration(t *testing.T) {
|
||||||
if *fstest.RemoteName == "" {
|
opt := fstests.Opt{
|
||||||
t.Skip("Skipping as -remote not set")
|
|
||||||
}
|
|
||||||
fstests.Run(t, &fstests.Opt{
|
|
||||||
RemoteName: *fstest.RemoteName,
|
RemoteName: *fstest.RemoteName,
|
||||||
NilObject: (*Object)(nil),
|
NilObject: (*Object)(nil),
|
||||||
UnimplementableFsMethods: []string{
|
UnimplementableFsMethods: []string{
|
||||||
|
@ -29,11 +28,9 @@ func TestIntegration(t *testing.T) {
|
||||||
"UserInfo",
|
"UserInfo",
|
||||||
"Disconnect",
|
"Disconnect",
|
||||||
},
|
},
|
||||||
UnimplementableObjectMethods: []string{
|
TiersToTest: []string{"STANDARD", "STANDARD_IA"},
|
||||||
"GetTier",
|
UnimplementableObjectMethods: []string{}}
|
||||||
"SetTier",
|
fstests.Run(t, &opt)
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestRemoteGzip tests GZIP compression
|
// TestRemoteGzip tests GZIP compression
|
||||||
|
|
|
@ -85,9 +85,20 @@ backends:
|
||||||
fastlist: true
|
fastlist: true
|
||||||
maxfile: 1k
|
maxfile: 1k
|
||||||
## end chunker
|
## end chunker
|
||||||
|
## begin compress
|
||||||
- backend: "compress"
|
- backend: "compress"
|
||||||
remote: "TestCompress:"
|
remote: "TestCompress:"
|
||||||
fastlist: false
|
fastlist: false
|
||||||
|
- backend: "compress"
|
||||||
|
remote: "TestCompressSwift:"
|
||||||
|
fastlist: false
|
||||||
|
- backend: "compress"
|
||||||
|
remote: "TestCompressDrive:"
|
||||||
|
fastlist: false
|
||||||
|
- backend: "compress"
|
||||||
|
remote: "TestCompressS3:"
|
||||||
|
fastlist: false
|
||||||
|
## end compress
|
||||||
- backend: "drive"
|
- backend: "drive"
|
||||||
remote: "TestDrive:"
|
remote: "TestDrive:"
|
||||||
fastlist: true
|
fastlist: true
|
||||||
|
|
Loading…
Reference in a new issue