You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-07 00:35:37 +02:00
Partial multi-repository implementation.
Multi-repository implementations for the archive-push, check, info, stanza-create, stanza-upgrade, and stanza-delete commands. Multi-repo configuration is disabled so there should be no behavioral changes between these commands and their current single-repo implementations. Multi-repo documentation and integration tests are still in the multi-repo development branch. All unit tests work as multi-repo since they are able to bypass the configuration restrictions.
This commit is contained in:
@ -674,8 +674,17 @@ testRun(void)
|
||||
// *****************************************************************************************************************************
|
||||
if (testBegin("cmdVerify(), verifyProcess()"))
|
||||
{
|
||||
// Load Parameters
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
StringList *argList = strLstDup(argListBase);
|
||||
hrnCfgArgKeyRawFmt(argList, cfgOptRepoPath, 4, "%s/repo4", testPath());
|
||||
|
||||
TEST_ERROR_FMT(
|
||||
harnessCfgLoad(cfgCmdVerify, argList), OptionRequiredError, "verify command requires option: repo\n"
|
||||
"HINT: this command requires a specific repository to operate on");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
// Load Parameters with multi-repo
|
||||
hrnCfgArgRawZ(argList, cfgOptRepo, "1");
|
||||
harnessCfgLoad(cfgCmdVerify, argList);
|
||||
|
||||
// Store valid archive/backup info files
|
||||
@ -808,6 +817,10 @@ testRun(void)
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("valid info files, start next timeline");
|
||||
|
||||
// Load Parameters - single default repo
|
||||
argList = strLstDup(argListBase);
|
||||
harnessCfgLoad(cfgCmdVerify, argList);
|
||||
|
||||
TEST_RESULT_VOID(
|
||||
storagePutP(
|
||||
storageNewWriteP(
|
||||
@ -844,6 +857,13 @@ testRun(void)
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("valid info files, unreadable WAL file");
|
||||
|
||||
// Load Parameters - single non-default repo
|
||||
argList = strLstNew();
|
||||
hrnCfgArgKeyRawFmt(argList, cfgOptRepoPath, 2, "%s/repo", testPath());
|
||||
hrnCfgArgRawFmt(argList, cfgOptStanza, "%s", strZ(stanza));
|
||||
hrnCfgArgRawZ(argList, cfgOptRepo, "2");
|
||||
harnessCfgLoad(cfgCmdVerify, argList);
|
||||
|
||||
TEST_RESULT_VOID(
|
||||
storagePutP(
|
||||
storageNewWriteP(
|
||||
|
Reference in New Issue
Block a user