1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/lib/pgBackRestTest/Common
David Steele 02aa03d1a2 Remove obsolete methods in pgBackRest::Storage::Storage module.
All the methods in this module will need to be implemented via the command-line in order to get rid of LibC, so the first step is to reduce the code in the module as much as possible.

First remove storageDb() and use storageTest() instead.  Then create storageTest() using pgBackRestTest::Common::Storage which has no dependencies on LibC.  Now the only storage using the LibC interface is storageRepo().

Remove all link functions since those operations cannot be performed on a repo unless it is Posix, in which case the LibC interface is not needed.  Same for owner().

Remove pathSync() because syncs are not required in the tests.  No test data is reused after a crash.

Path create/exists functions should never be explicitly performed on a repo so remove those.  File exists can be implemented by calling info() instead.

Remove encryption detection functions which were only used by Backup/Archive::Info reconstruct() which are now obsolete.

Remove all filters except pgBackRest::Storage::Filter::CipherBlock since they are not being used.  That also means there are no filters returning results so remove all the result code.

Move hashSize() and pathAbsolute() into pgBackRest::Storage::Base where they can be shared between pgBackRest::Storage::Storage and pgBackRestTest::Common::Storage.
2020-03-06 14:10:09 -05:00
..
BuildTest.pm Make buildPutDiffers() work with empty files. 2019-12-10 13:02:36 -05:00
CodeCountTest.pm Reclassify Perl and LibC code as test/harness. 2020-01-15 13:53:30 -07:00
ContainerTest.pm Use pkg-config instead of xml2-config for libxml2 build options. 2020-01-24 10:08:05 -07:00
CoverageTest.pm Automate coverage summary report generation. 2019-05-15 13:04:56 -04:00
DefineTest.pm pgBackRest is now pure C. 2019-12-13 17:55:41 -05:00
ExecuteTest.pm Remove test point infrastructure. 2019-12-10 13:16:47 -05:00
FileTest.pm Remove obsolete methods in pgBackRest::Storage::Storage module. 2020-03-06 14:10:09 -05:00
HostGroupTest.pm Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
HostTest.pm Use minio as local S3 emulator in documentation. 2019-05-27 07:37:20 -04:00
JobTest.pm Prevent defunct processes in asynchronous archive commands. 2020-02-12 12:17:23 -07:00
ListTest.pm pgBackRest is now pure C. 2019-12-13 17:55:41 -05:00
LogTest.pm Auto-select backup set on restore when time target is specified. 2020-01-30 14:38:05 -07:00
RunTest.pm Remove obsolete methods in pgBackRest::Storage::Storage module. 2020-03-06 14:10:09 -05:00
Storage.pm Add storage layer for tests and documentation. 2019-06-17 09:16:44 -04:00
StoragePosix.pm Fix regexp to ignore ./.. directories in the Posix driver. 2019-08-22 10:18:34 -04:00
StoragePosixRead.pm Add storage layer for tests and documentation. 2019-06-17 09:16:44 -04:00
StoragePosixWrite.pm Add storage layer for tests and documentation. 2019-06-17 09:16:44 -04:00
VmTest.pm Only install specific lcov version when required. 2019-11-22 19:25:49 -05:00