diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-07-31 21:24:47 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-07-31 21:24:47 +0000 |
commit | 1e8c3053fd8d4774cc7a60a945b200443a60f093 (patch) | |
tree | a066481fda892f7c02155a63575810876306f814 /test/s3store | |
parent | 5d01486dccfc3ca5a3ad82457cf8520f798f91b4 (diff) |
Test that root directory was created properly
Diffstat (limited to 'test/s3store')
-rw-r--r-- | test/s3store/tests3store.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/s3store/tests3store.cpp b/test/s3store/tests3store.cpp index dad4289c..aa596af4 100644 --- a/test/s3store/tests3store.cpp +++ b/test/s3store/tests3store.cpp @@ -16,6 +16,7 @@ #include "BackupAccountControl.h" #include "BackupClientCryptoKeys.h" #include "BackupDaemonConfigVerify.h" +#include "BackupStoreDirectory.h" #include "BackupStoreInfo.h" #include "Configuration.h" #include "RaidFileController.h" @@ -95,6 +96,10 @@ bool test_create_account_with_account_control() TEST_EQUAL(0, info->GetClientStoreMarker()); TEST_EQUAL("test", info->GetAccountName()); + FileStream root_stream("testfiles/store/subdir/dirs/0x1.dir"); + BackupStoreDirectory root_dir(root_stream); + TEST_EQUAL(0, root_dir.GetNumberOfEntries()); + TEARDOWN_TEST_S3SIMULATOR(); } |