rclone/fstest
Nick Craig-Wood 66347aff2a fstest: calculate hashes for uploaded test files to fix minio integration tests
Before this change we didn't calculate any hashes for test files
created in the Run framework.

This means that files were uploaded to S3 without a `Content-MD5`
header.  This in turn caused minio to disengage `--compat` mode which
in turn caused the `TestSyncAfterChangingModtimeOnlyWithNoUpdateModTime`
test to fail in `fs/sync`.

After this change we supply all hashes supported by the destination Fs
on the upload object.

This means that the `Content-MD5` is set and minio engages `--compat`
mode to fix the problem.  Using `--compat` on the command line also
fixes the problem.

This much better replicates how objects are actually uploaded with
operations.Copy so should improve the integration tests.
2019-09-16 10:59:01 +01:00
..
fstests config: check config names more carefully and report errors - fixes #3506 2019-09-06 12:07:09 +01:00
mockdir build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
mockfs fstest/mockfs: allow fs.Objects to be added to the root 2019-09-14 13:05:36 +01:00
mockobject fstest/mockobject: add UnknownSize() method to make Size() return -1 2019-09-14 13:07:01 +01:00
test_all test_all: add ignores for tests which will never pass 2019-09-15 13:16:15 +01:00
fstest.go fstests: add tests for operations from the root of the Fs #3421 2019-08-17 10:30:41 +01:00
run.go fstest: calculate hashes for uploaded test files to fix minio integration tests 2019-09-16 10:59:01 +01:00