forked from ravendb/ravendb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RavenDB-3742 Raven.Backup.exe reports an error when backing up a file…
…system
- Loading branch information
Arkadiusz Palinski
committed
Aug 3, 2015
1 parent
4c27929
commit b7767d6
Showing
3 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="RavenDB_3742.cs" company="Hibernating Rhinos LTD"> | ||
// Copyright (c) Hibernating Rhinos LTD. All rights reserved. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
using Raven.Backup; | ||
using Raven.Tests.Helpers; | ||
using Xunit; | ||
using Xunit.Extensions; | ||
|
||
namespace Raven.Tests.FileSystem.Issues | ||
{ | ||
public class RavenDB_3742 : RavenFilesTestBase | ||
{ | ||
private readonly string BackupDir; | ||
|
||
public RavenDB_3742() | ||
{ | ||
BackupDir = NewDataPath("RavenDB_3742_Backup"); | ||
} | ||
|
||
[Theory] | ||
[PropertyData("Storages")] | ||
public void file_system_backup_operation_sucessfully_waits_for_backup_to_complete(string requestedStorage) | ||
{ | ||
using (var store = NewStore(runInMemory: false, requestedStorage: "esent")) | ||
{ | ||
using (var operation = new FilesystemBackupOperation(new BackupParameters | ||
{ | ||
BackupPath = BackupDir, | ||
ServerUrl = store.Url, | ||
Filesystem = store.DefaultFileSystem | ||
})) | ||
{ | ||
|
||
Assert.True(operation.InitBackup()); | ||
Assert.DoesNotThrow(() => operation.WaitForBackup()); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters