You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-29 22:28:02 +02:00
Update HINT messages to conform to new standard detailed in CODING.md.
This commit is contained in:
committed by
David Steele
parent
c5f496b903
commit
56bf9d0566
@@ -290,14 +290,14 @@ sub run
|
||||
|
||||
$self->testException(sub {new pgBackRest::Common::Ini($strTestFile)}, ERROR_CRYPTO,
|
||||
"unable to parse '$strTestFileCopy'" .
|
||||
"\nHINT: Is or was the repo encrypted?");
|
||||
"\nHINT: is or was the repo encrypted?");
|
||||
|
||||
# Prepend encryption Magic signature to main to simulate encryption
|
||||
executeTest('echo "' . CIPHER_MAGIC . '$(cat ' . $strTestFile . ')" > ' . $strTestFile);
|
||||
|
||||
$self->testException(sub {new pgBackRest::Common::Ini($strTestFile)}, ERROR_CRYPTO,
|
||||
"unable to parse '$strTestFile'" .
|
||||
"\nHINT: Is or was the repo encrypted?");
|
||||
"\nHINT: is or was the repo encrypted?");
|
||||
}
|
||||
|
||||
################################################################################################################################
|
||||
|
||||
@@ -110,7 +110,7 @@ sub run
|
||||
|
||||
$self->testException(sub {$oArchiveInfo->reconstruct(PG_VERSION_94, $self->dbSysId(PG_VERSION_94))}, ERROR_CRYPTO,
|
||||
"encryption incompatible for '$strArchiveFile'" .
|
||||
"\nHINT: Is or was the repo encrypted?");
|
||||
"\nHINT: is or was the repo encrypted?");
|
||||
|
||||
executeTest('sudo rm ' . $strArchiveFile);
|
||||
|
||||
@@ -206,7 +206,7 @@ sub run
|
||||
|
||||
$self->testException(sub {new pgBackRest::Archive::Info(storageRepo()->pathGet(STORAGE_REPO_ARCHIVE))}, ERROR_CRYPTO,
|
||||
"unable to parse '$strFile'" .
|
||||
"\nHINT: Is or was the repo encrypted?");
|
||||
"\nHINT: is or was the repo encrypted?");
|
||||
|
||||
# Remove the archive info files
|
||||
executeTest('sudo rm ' . $oArchiveInfo->{strFileName} . '*');
|
||||
|
||||
@@ -215,7 +215,7 @@ sub run
|
||||
|
||||
$self->testException(sub {new pgBackRest::Backup::Info(storageRepo()->pathGet(STORAGE_REPO_BACKUP))}, ERROR_CRYPTO,
|
||||
"unable to parse '$strFile'" .
|
||||
"\nHINT: Is or was the repo encrypted?");
|
||||
"\nHINT: is or was the repo encrypted?");
|
||||
|
||||
# Create encrypted files, change the passphrase and attempt to load - ensure flush error returned as parse error
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -255,7 +255,7 @@ sub run
|
||||
|
||||
$self->testException(sub {new pgBackRest::Backup::Info(storageRepo()->pathGet(STORAGE_REPO_BACKUP))}, ERROR_CRYPTO,
|
||||
"unable to parse '" . $oBackupInfo->{strFileName} . "'" .
|
||||
"\nHINT: Is or was the repo encrypted?");
|
||||
"\nHINT: is or was the repo encrypted?");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user