summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Add a BackupStoreFile encoding streaming verifierChris Wilson2015-08-07
|
* Allow moving a CollectInBufferStream's contents to another oneChris Wilson2015-08-07
|
* Allow releasing a MemoryBlockGuardChris Wilson2015-08-07
|
* Whitespace cleanupChris Wilson2015-08-07
|
* Fix random failures of testbbackup test_backup_pauses_when_store_is_full.Chris Wilson2015-08-07
| | | | | Stop the client while waiting for housekeeping, to ensure that it doesn't prevent housekeeping from running and cause the test to fail.
* Really fix check for s3simulator memleaks.Chris Wilson2015-08-06
|
* Replace TEST_CHECK_THROWS() with TEST_COMMAND_RETURNS_ERROR().Chris Wilson2015-08-06
| | | | | Also checks the returned error code, and gives more useful diagnostics on failure.
* Handle generic exceptions by returning an Error message with correct Type.Chris Wilson2015-08-06
|
* Improve error message when TEST_PROTOCOL_ERROR_OR() fails.Chris Wilson2015-08-06
| | | | | | The protocol command didn't succeed, it just returned a result with an unexpected type, so make the failure message reflect that and give details of the response actually received, to help with debugging.
* Fix memleaks file in test after changed in s3simulator daemon.Chris Wilson2015-08-06
|
* Stop daemon on test setup, in case the previous test didn't.Chris Wilson2015-08-06
|
* Fix return types for integer function to be integersChris Wilson2015-08-06
|
* Shorten minimum sleep while waiting for test daemons to dieChris Wilson2015-08-06
|
* Fix StartClient() to store new pid correctlyChris Wilson2015-08-06
|
* Fix error message corruption in BackupDaemon.Chris Wilson2015-08-06
| | | | Was due to accessing the exception's string after it had gone out of scope.
* We do still need to #include autogen_ClientException.hChris Wilson2015-07-31
|
* Enable caching of Apt packagesChris Wilson2015-07-31
|
* Attempt to switch to new Travis infrastructure.Chris Wilson2015-07-31
|
* Test that root directory was created properlyChris Wilson2015-07-31
|
* Add missing bbackupd.keys file and a marker to create subdirs.Chris Wilson2015-07-31
|
* Compile fixChris Wilson2015-07-31
|
* Add missing files for S3Store test.Chris Wilson2015-07-31
|
* Add S3Store account creation.Chris Wilson2015-07-31
|
* Fix ServerStream logging too many messages when waiting for a child to die.Chris Wilson2015-07-31
| | | | Detect that there are no remaining children to wait for, and return quietly.
* Fix S3Simulator daemon name, and hence memleaks filename.Chris Wilson2015-07-31
|
* Add HTTP request logging to S3Simulator.Chris Wilson2015-07-31
|
* Add a method on S3Client to check HTTPResponse for errors.Chris Wilson2015-07-31
| | | | Throws a suitable exception if the response status code is not 200 OK.
* Fix S3Client handling of "Connection: close" responses.Chris Wilson2015-07-31
| | | | | We can't continue to use the same connection after receiving such a response, so close it immediately.
* Add utility methods to HTTPRequest and HTTPResponse classes.Chris Wilson2015-07-31
| | | | | Allow getting method name of an HTTPRequest, and connection open/closed status of an HTTPResponse.
* Refactor to allow sharing code for starting and stopping daemons in tests.Chris Wilson2015-07-31
| | | | | The new StartDaemon() and StopDaemon() in ServerControl.cpp/h are generic, and used by StartClient() and StartServer() in StoreTestUtils.cpp/h.
* Move InvalidConfiguration exception to CommonException.Chris Wilson2015-07-31
| | | | Allows it to be used by S3Store, or in fact anything that uses Configuration.
* Refactor BackupStoreInfo to allow creating them without RaidFiles.Chris Wilson2015-07-31
| | | | | They can now be created using a constructor, and written to any IOStream. Needed for writing them to an S3Store.
* Add AccountNumber to list of config keys checked at runtime.Chris Wilson2015-07-31
| | | | S3Stores don't have account numbers.
* Move load_config_file to Test.cpp to allow reuse.Chris Wilson2015-07-25
|
* Remove duplicate declaration of test functions.Chris Wilson2015-07-25
|
* Refactor BackupStoreInfo to allow loading from any IOStream.Chris Wilson2015-07-19
|
* Fix test_backup_pauses_when_store_is_full by waiting for housekeeping.Chris Wilson2015-07-18
| | | | | | It's not safe to assume that we can get into the store before housekeeping runs, so don't try. Just wait for housekeeping to run and check that all the files are deleted afterwards.
* Major test refactor to support test suites.Chris Wilson2015-07-01
| | | | | | | Refactor all common code from testbbackupd and testbackupstore to allow other test suites to contain multiple tests and execute selected tests more easily. Report all test results within a suite in a standard, easy to read summary.
* Compile fix for test/bbackupd after ClientException moveChris Wilson2015-06-28
|
* Add configuration keys for S3 store type.Chris Wilson2015-06-28
|
* Refactor store account control to allow other store types.Chris Wilson2015-06-28
| | | | | Move common code into a base class, leaving bbstored-specific code. Add skeleton of an S3 store type.
* Refactor to allow non-bbstored store configurations.Chris Wilson2015-06-28
| | | | | | Make some keys not required in BackupDaemonConfigVerify, and verify them afterwards instead, when the rest of the configuration file has been read (and in future, the store type would be known.)
* Ensure that errored tests are reported as failures, not successesChris Wilson2015-06-10
|
* Switch inode database to storing values using Archive.Chris Wilson2015-06-10
| | | | | This allows us to store the local path to the tracked file in the database, and will allow us to extend the storage format again in future if needed.
* Allow MemoryBlockGuard to guard a block passed in (already malloced).Chris Wilson2015-06-10
|
* Add support for optional items in Archives.Chris Wilson2015-06-10
| | | | | If the item is not present (the end of the Archive is reached instead) then a default value is returned instead of throwing an exception.
* Add missing timeouts to Archive Read() calls.Chris Wilson2015-06-10
|
* Fix logging of NamedLock acquisition for O_EXLOCK method.Chris Wilson2015-06-10
|
* Add usage example for -L option, showing how module names were compiled inChris Wilson2015-06-10
|
* Initialise ModificationTime when uploading complete file.Chris Wilson2015-06-10
|