From 45b57822d5c8d11835254e7af6cf907bc1b57257 Mon Sep 17 00:00:00 2001 From: buengese Date: Sun, 17 Jan 2021 02:21:33 +0100 Subject: [PATCH] compress: improve testing --- backend/compress/compress_test.go | 17 +++++++---------- fstest/test_all/config.yaml | 11 +++++++++++ 2 files changed, 18 insertions(+), 10 deletions(-) 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