"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
Add -dump-headers and -dump-bodies flags for remote tests
Nick Craig-Wood6d48dffa2f90
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex f9321ebe0..87bb6a008 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -38,6 +38,8 @@ var (Path: `hello? sausage/êé/Hello, 世界/ " ' @ < > & ?/z.txt`,WinPath: `hello_ sausage/êé/Hello, 世界/ _ ' @ _ _ & _/z.txt`,}+ dumpHeaders = flag.Bool("dump-headers", false, "Dump HTTP headers - may contain sensitive info")+ dumpBodies = flag.Bool("dump-bodies", false, "Dump HTTP headers and bodies - may contain sensitive info"))func init() {@@ -50,6 +52,8 @@ func TestInit(t *testing.T) {fs.LoadConfig()fs.Config.Verbose = falsefs.Config.Quiet = true+ fs.Config.DumpHeaders = *dumpHeaders+ fs.Config.DumpBodies = *dumpBodiest.Logf("Using remote %q", RemoteName)if RemoteName == "" {RemoteName, err = fstest.LocalRemote()