1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-04 05:40:26 +02:00

minor fixes

This commit is contained in:
Grigory Smolkin
2017-05-17 14:01:57 +03:00
parent fa1ba6c531
commit 8972d4f45b
8 changed files with 18 additions and 78 deletions

View File

@ -22,7 +22,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
# @unittest.skip("123")
def test_validate_time(self):
"""recovery to latest from full backup"""
"""recovery to latest from full backup. Expect to Fail"""
fname = self.id().split('.')[3]
node = self.make_simple_node(base_dir="tmp_dirs/validate/{0}".format(fname),
set_archiving=True,
@ -204,7 +204,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
# @unittest.skip("123")
def test_validate_wal_lost_segment_2(self):
"""Loose segment located between backups """
"""Loose segment located between backups. Expect to fail """
fname = self.id().split('.')[3]
node = self.make_simple_node(base_dir="tmp_dirs/validate/{0}".format(fname),
set_archiving=True,
@ -235,7 +235,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
wals = map(int, wals)
# delete last wal segment
print os.path.join(self.backup_dir(node), "wal", '0000000' + str(max(wals)))
#print os.path.join(self.backup_dir(node), "wal", '0000000' + str(max(wals)))
os.remove(os.path.join(self.backup_dir(node), "wal", '0000000' + str(max(wals))))
# Need more accurate error message about loosing wal segment between backups