"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
fstests: make sure Metadata is enabled in the context for metadata tests
Nick Craig-Wood1ea8678be267
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex cfc4cf069..9ffbca3c7 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -1462,6 +1462,8 @@ func Run(t *testing.T, opt *Opt) {// TestObjectMetadata tests the Metadata of the object is correctt.Run("ObjectMetadata", func(t *testing.T) {skipIfNotOk(t)+ ctx, ci := fs.AddConfig(ctx)+ ci.Metadata = truefeatures := f.Features()obj := findObject(ctx, t, f, file1.Path)do, objectHasMetadata := obj.(fs.Metadataer)@@ -1496,7 +1498,7 @@ func Run(t *testing.T, opt *Opt) {if features.UserMetadata {// check all the metadata bits we uploaded are present - there may be more we didn't writefor k, v := range file1Metadata {- assert.Equal(t, v, metadata[k], "can read and write metadata but failed on key %q", k)+ assert.Equal(t, v, metadata[k], "can read and write metadata but failed on key %q (want=%+v, got=%+v)", k, file1Metadata, metadata)}}// Now test we can set the mtime and content-type via the metadata and these take precedence