mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-13 14:58:35 +02:00
PGPRO-1504: test minor fixes
This commit is contained in:
parent
f960c67db4
commit
fb88c42a51
@ -1432,11 +1432,14 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
|
|||||||
def test_validate_corrupted_full_1(self):
|
def test_validate_corrupted_full_1(self):
|
||||||
"""
|
"""
|
||||||
make node with archiving, take full backup, and three page backups,
|
make node with archiving, take full backup, and three page backups,
|
||||||
take another full backup and three page backups
|
take another full backup and four page backups
|
||||||
corrupt second full backup, run validate, check that
|
corrupt second full backup, run validate, check that
|
||||||
second full backup became CORRUPT and his page backups are ORPHANs
|
second full backup became CORRUPT and his page backups are ORPHANs
|
||||||
remove corruption and run valudate again, check that
|
remove corruption from full backup and corrupt his second page backup
|
||||||
second full backup and his page backups are OK
|
run valudate again, check that
|
||||||
|
second full backup and his firts page backups are OK,
|
||||||
|
second page should be CORRUPT
|
||||||
|
third page should be ORPHAN
|
||||||
"""
|
"""
|
||||||
fname = self.id().split('.')[3]
|
fname = self.id().split('.')[3]
|
||||||
node = self.make_simple_node(
|
node = self.make_simple_node(
|
||||||
@ -1524,5 +1527,4 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
|
|||||||
self.assertTrue(self.show_pb(backup_dir, 'node')[6]['Status'] == 'ORPHAN')
|
self.assertTrue(self.show_pb(backup_dir, 'node')[6]['Status'] == 'ORPHAN')
|
||||||
|
|
||||||
# Clean after yourself
|
# Clean after yourself
|
||||||
exit(1)
|
|
||||||
self.del_test_dir(module_name, fname)
|
self.del_test_dir(module_name, fname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user