mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Remove duplicate tests from storage/sftp unit test module.
These tests are already run as part of storage/posix and do not need to be duplicated in storage/sftp.
This commit is contained in:
parent
31de127cf4
commit
bb752cd111
@ -607,7 +607,7 @@ unit:
|
||||
|
||||
# ----------------------------------------------------------------------------------------------------------------------------
|
||||
- name: sftp
|
||||
total: 20
|
||||
total: 19
|
||||
harness: libSsh2
|
||||
harness:
|
||||
name: fd
|
||||
|
@ -70,27 +70,6 @@ testRun(void)
|
||||
|
||||
unsigned int repoIdx = 0;
|
||||
|
||||
// This test should always be first so the storage helper is uninitialized
|
||||
// *****************************************************************************************************************************
|
||||
if (testBegin("storageHelperDryRunInit()"))
|
||||
{
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("writable storage fails when dry-run is not initialized");
|
||||
|
||||
TEST_ERROR(storagePgIdxWrite(0), AssertError, WRITABLE_WHILE_DRYRUN);
|
||||
TEST_ERROR(storageRepoIdxWrite(0), AssertError, WRITABLE_WHILE_DRYRUN);
|
||||
TEST_ERROR(storageSpoolWrite(), AssertError, WRITABLE_WHILE_DRYRUN);
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("writable storage fails when dry-run is true");
|
||||
|
||||
storageHelperDryRunInit(true);
|
||||
|
||||
TEST_ERROR(storagePgIdxWrite(0), AssertError, WRITABLE_WHILE_DRYRUN);
|
||||
TEST_ERROR(storageRepoIdxWrite(0), AssertError, WRITABLE_WHILE_DRYRUN);
|
||||
TEST_ERROR(storageSpoolWrite(), AssertError, WRITABLE_WHILE_DRYRUN);
|
||||
}
|
||||
|
||||
// *****************************************************************************************************************************
|
||||
if (testBegin("storageNew()"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user