1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/lib/pgBackRestTest/Env/Host
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
..
HostBackupTest.pm Remove obsolete methods in pgBackRest::Storage::Storage module. 2020-03-06 14:10:09 -05:00
HostBaseTest.pm The pgbackrest executable is now a C binary instead of Perl. 2017-11-26 18:43:51 -05:00
HostDbCommonTest.pm Add Perl interface to C PgQuery object. 2019-07-25 17:05:39 -04:00
HostDbSyntheticTest.pm Add Perl interface to C PgQuery object. 2019-07-25 17:05:39 -04:00
HostDbTest.pm Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
HostS3Test.pm Update MinIO to newest release. 2019-11-08 17:56:34 -05:00