mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
compress: improve testing
This commit is contained in:
parent
d8984cd37f
commit
45b57822d5
@ -6,18 +6,17 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
_ "github.com/rclone/rclone/backend/dropbox"
|
||||
_ "github.com/rclone/rclone/backend/drive"
|
||||
_ "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/fstests"
|
||||
)
|
||||
|
||||
// TestIntegration runs integration tests against the remote
|
||||
func TestIntegration(t *testing.T) {
|
||||
if *fstest.RemoteName == "" {
|
||||
t.Skip("Skipping as -remote not set")
|
||||
}
|
||||
fstests.Run(t, &fstests.Opt{
|
||||
opt := fstests.Opt{
|
||||
RemoteName: *fstest.RemoteName,
|
||||
NilObject: (*Object)(nil),
|
||||
UnimplementableFsMethods: []string{
|
||||
@ -29,11 +28,9 @@ func TestIntegration(t *testing.T) {
|
||||
"UserInfo",
|
||||
"Disconnect",
|
||||
},
|
||||
UnimplementableObjectMethods: []string{
|
||||
"GetTier",
|
||||
"SetTier",
|
||||
},
|
||||
})
|
||||
TiersToTest: []string{"STANDARD", "STANDARD_IA"},
|
||||
UnimplementableObjectMethods: []string{}}
|
||||
fstests.Run(t, &opt)
|
||||
}
|
||||
|
||||
// TestRemoteGzip tests GZIP compression
|
||||
|
@ -85,9 +85,20 @@ backends:
|
||||
fastlist: true
|
||||
maxfile: 1k
|
||||
## end chunker
|
||||
## begin compress
|
||||
- backend: "compress"
|
||||
remote: "TestCompress:"
|
||||
fastlist: false
|
||||
- backend: "compress"
|
||||
remote: "TestCompressSwift:"
|
||||
fastlist: false
|
||||
- backend: "compress"
|
||||
remote: "TestCompressDrive:"
|
||||
fastlist: false
|
||||
- backend: "compress"
|
||||
remote: "TestCompressS3:"
|
||||
fastlist: false
|
||||
## end compress
|
||||
- backend: "drive"
|
||||
remote: "TestDrive:"
|
||||
fastlist: true
|
||||
|
Loading…
Reference in New Issue
Block a user