Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

compress: improve testing

buengese45b57822d5c8
diff --git a/backend/compress/compress_test.go b/backend/compress/compress_test.go
index 9271ead78..76baf22aa 100644
--- a/backend/compress/compress_test.go
+++ b/backend/compress/compress_test.go
@@ -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
diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml
index 3d85a592c..8f87edd9b 100644
--- a/fstest/test_all/config.yaml
+++ b/fstest/test_all/config.yaml
@@ -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