1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-24 08:52:38 +02:00

tests: windows support, eschew using node.restart()

This commit is contained in:
Grigory Smolkin 2018-12-27 17:19:23 +03:00
parent 68ac0b43e2
commit f6c1966415
5 changed files with 10 additions and 6 deletions

View File

@ -126,7 +126,8 @@ class SimpleAuthTest(ProbackupTest, unittest.TestCase):
"test1", "create table t1 as select generate_series(0,100)") "test1", "create table t1 as select generate_series(0,100)")
node.append_conf("postgresql.auto.conf", "ptrack_enable = 'on'") node.append_conf("postgresql.auto.conf", "ptrack_enable = 'on'")
node.restart() node.stop()
node.slow_start()
try: try:
self.backup_node( self.backup_node(

View File

@ -89,11 +89,13 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
# DISABLE PTRACK # DISABLE PTRACK
node.safe_psql('postgres', "alter system set ptrack_enable to off") node.safe_psql('postgres', "alter system set ptrack_enable to off")
node.restart() node.stop()
node.slow_start()
# ENABLE PTRACK # ENABLE PTRACK
node.safe_psql('postgres', "alter system set ptrack_enable to on") node.safe_psql('postgres', "alter system set ptrack_enable to on")
node.restart() node.stop()
node.slow_start()
# PTRACK BACKUP # PTRACK BACKUP
try: try:

View File

@ -403,7 +403,8 @@ class ReplicaTest(ProbackupTest, unittest.TestCase):
replica.append_conf( replica.append_conf(
'recovery.conf', "recovery_min_apply_delay = '300s'") 'recovery.conf', "recovery_min_apply_delay = '300s'")
replica.restart() replica.stop()
replica.slow_start()
master.pgbench_init(scale=10) master.pgbench_init(scale=10)

View File

@ -5,7 +5,6 @@ import subprocess
from datetime import datetime from datetime import datetime
import sys import sys
import time import time
import shutil
module_name = 'restore' module_name = 'restore'

View File

@ -1528,7 +1528,8 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
node2.append_conf( node2.append_conf(
'postgresql.auto.conf', 'archive_mode = on') 'postgresql.auto.conf', 'archive_mode = on')
node2.restart() node2.stop()
node2.slow_start()
timeline_node1 = node1.get_control_data()["Latest checkpoint's TimeLineID"] timeline_node1 = node1.get_control_data()["Latest checkpoint's TimeLineID"]
timeline_node2 = node2.get_control_data()["Latest checkpoint's TimeLineID"] timeline_node2 = node2.get_control_data()["Latest checkpoint's TimeLineID"]