| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Allow getting method name of an HTTPRequest, and connection open/closed
status of an HTTPResponse.
|
|
|
|
|
| |
The new StartDaemon() and StopDaemon() in ServerControl.cpp/h are generic,
and used by StartClient() and StartServer() in StoreTestUtils.cpp/h.
|
|
|
|
| |
Allows it to be used by S3Store, or in fact anything that uses Configuration.
|
|
|
|
|
| |
They can now be created using a constructor, and written to any IOStream.
Needed for writing them to an S3Store.
|
|
|
|
| |
S3Stores don't have account numbers.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Move common code into a base class, leaving bbstored-specific code.
Add skeleton of an S3 store type.
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Unlike the rest of the Win32 API, these functions return their error code,
and it's not accessible using GetLastError(). Thanks to Enrique Perez-Terron
for reporting this issue.
|
|
|
|
|
| |
Add DLLs used by mingw64 gcc, used by recent Cygwin installations, and update
to current name of zlib1.dll.
|
|
|
|
|
|
| |
Allows us to match 32/64-bit specific targets in parcels.txt.
Add support for variable substitution in parcels.txt.
|
|
|
|
|
|
| |
Once again, the Windows issue of being unable to delete or overwrite an
open file causes issues. In this case it's only test failures. We need to
be diligent about closing open file handles and protocol sessions in tests.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes test failures caused by using seconds since epoch on Windows, instead
of a box_time_t, and rounding it to the nearest 10^6, which is fine for a
box_time_t (all other platforms), but 10^6 seconds is a rather long time to
ignore changes for on Windows.
This also makes it possible to support subsecond precision on Windows
via FileModificationTime() in future, and have RaidFile detect such subsecond
changes.
|
|
|
|
|
|
| |
On Windows we can't delete the file while it's open, and we don't need to,
because we opened it for exclusive use, so another process can't lock it
between us unlocking and deleting it.
|
|
|
|
|
|
|
|
|
|
|
| |
The old assertion, that the write lock file exists before starting checking,
was erroneously passing before when no lock was held, because the lockfile
was never deleted. Now that we delete it when unlocking the account, this
started causing test failures.
Changed the way that accounts are checked for errors to use a function that
acquires a write lock first, and modified test to disconnect open clients
before starting checking the account, to fix it.
|
| |
|
| |
|
|
|
|
|
| |
E.g. you can run with -L NamedLock.cpp to only show messages logged in
that file. You can also repeat it to only show messages from certain files.
|
| |
|
|
|
|
| |
Deleting the account deletes the lockfile, so unlocking fails.
|
|
|
|
|
| |
I needed reliable exit codes to run the tests in a loop to catch an
intermittent failure.
|
|
|
|
| |
with it.
|
| |
|
| |
|
|
|
|
|
| |
Allows the exception message to be captured before it goes out of scope.
|
| |
|
|
|
|
|
| |
NamedLock simply didn't work before. This may cause test failures, but the
tests are already failing on Windows, and must be fixed.
|
| |
|
|
|
|
| |
Files need to be closed before renaming over them on Windows.
|
|
|
|
|
|
| |
Consistently capture the last Windows error code in the global variable
winerrno. Add logging macros that report the Windows error message for
this error code.
|
|
|
|
|
| |
Travis clang reports its version as "clang version 3.4
(tags/RELEASE_34/final)", unlike "Ubuntu clang version 3.3-5ubuntu4~precise1".
|