David Steele
14ca4dac6f
Improved the code and tests for fileManifest().
...
Done to prevent a possible race condition when files are removed by the database while the manifest is being built.
2017-02-21 11:56:55 -05:00
David Steele
e2ac7e1ea6
Fixed a regression introduced in v1.13 that could cause backups to fail.
...
This happened if files were removed (e.g. tables dropped) while the manifest was being built.
Reported by Navid Golpayegani.
2017-02-13 19:59:14 -05:00
David Steele
18db178ac3
Various improvements to the test suite:
...
* Allow logging to be suppressed via logDisable() and logEnable().
* Added more flexibility in initializing and cleaning up after modules and tests.
* testResult() suppresses logging and reports exceptions.
* testException() allows messages to be matched with regular expressions.
* Refactor name/locations of common modules that setup test environments.
2017-01-27 09:42:30 -05:00
David Steele
0e4f51c271
Added integration for testing coverage with Devel::Cover.
2017-01-09 20:49:04 -05:00
David Steele
39744a4f1d
Fixed an issue where a missing user/group on restore could cause an "uninitialized value" error in File->owner().
...
Reported by Leonardo Avellar.
2017-01-05 15:19:56 -05:00
David Steele
5d3473b52d
Refactor File module to improve test coverage.
2016-12-23 08:30:34 -05:00
David Steele
6b2666a9d7
Split test modules into separate files.
...
Makes the code more maintainable. Tests are dynamically loaded by name rather than requiring an if-else block.
2016-12-23 08:22:59 -05:00
Cynthia Shang
22cd29771f
Update control and wal test files to 9.4 with matching system identifiers.
...
Contributed by Cynthia Shang.
2016-12-01 09:33:14 -05:00
David Steele
a850335015
Simplified the result hash of File->manifest(), Db->tablespaceMapGet(), and Db->databaseMapGet().
2016-11-30 14:36:39 -05:00
David Steele
d101e9c84e
Improved exception handling in file unit tests.
2016-11-30 14:03:58 -05:00
David Steele
d81198e65e
Added the cmd-ssh to allow the ssh client to be specified.
...
Suggested by Jens Wilke.
2016-10-05 08:55:54 -04:00
David Steele
dd8d781217
Safely check eval blocks and convert $@ to $EVAL_ERROR.
2016-09-06 09:44:50 -04:00
David Steele
f986e6ae33
File module improvements.
...
* Remove obsolete thread index variable from File() module.
* Changed temporary file names to consistently use .pgbackrest.tmp.
2016-09-04 09:22:53 -04:00
David Steele
d0b6f78b20
More flexible configuration for databases
...
Master and standby can both be configured on the backup server and pgBackRest will automatically determine which is the master. This means no configuration changes for backup are required after failing over from a master to standby when a separate backup server is used.
2016-08-24 12:39:27 -04:00
David Steele
95bbc8ad54
Fixed an issue where multi-threaded tests were not being run when requested.
2016-07-29 18:02:16 -04:00
David Steele
c8f806a293
Major refactor of the test suite.
...
* Make the code more modular and object-oriented.
* Multiple Docker containers can now be created for a single test to simulate more realistic environments.
2016-06-24 08:12:58 -04:00