|
|
@ -80,17 +80,20 @@ namespace NzbDrone.Common.Test.DiskTests
|
|
|
|
.Verify(v => v.MoveFile(_sourcePath, _targetPath, false), Times.Once());
|
|
|
|
.Verify(v => v.MoveFile(_sourcePath, _targetPath, false), Times.Once());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase("fuse.mergerfs")]
|
|
|
|
[TestCase("fuse.mergerfs", "")]
|
|
|
|
[TestCase("fuse.rclone")]
|
|
|
|
[TestCase("fuse.rclone", "")]
|
|
|
|
[TestCase("mergerfs")]
|
|
|
|
[TestCase("mergerfs", "")]
|
|
|
|
[TestCase("rclone")]
|
|
|
|
[TestCase("rclone", "")]
|
|
|
|
public void should_not_use_verified_transfer_on_specific_filesystems(string fs)
|
|
|
|
[TestCase("", "fuse.mergerfs")]
|
|
|
|
|
|
|
|
[TestCase("", "fuse.rclone")]
|
|
|
|
|
|
|
|
[TestCase("", "mergerfs")]
|
|
|
|
|
|
|
|
[TestCase("", "rclone")]
|
|
|
|
|
|
|
|
public void should_not_use_verified_transfer_on_specific_filesystems(string fsSource, string fsTarget)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MonoOnly();
|
|
|
|
MonoOnly();
|
|
|
|
|
|
|
|
|
|
|
|
_targetMount.DriveFormat = fs;
|
|
|
|
_sourceMount.DriveFormat = fsSource;
|
|
|
|
|
|
|
|
_targetMount.DriveFormat = fsTarget;
|
|
|
|
Subject.VerificationMode.Should().Be(DiskTransferVerificationMode.VerifyOnly);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var result = Subject.TransferFile(_sourcePath, _targetPath, TransferMode.Move);
|
|
|
|
var result = Subject.TransferFile(_sourcePath, _targetPath, TransferMode.Move);
|
|
|
|
|
|
|
|
|
|
|
|