File tree Expand file tree Collapse file tree 7 files changed +9
-12
lines changed Expand file tree Collapse file tree 7 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1212 "six>=1.9.0" ,
1313 "psutil" ,
1414 "packaging" ,
15+ "paramiko" ,
16+ "fabric"
1517]
1618
1719# Add compatibility enum class
Original file line number Diff line number Diff line change 3030PostgresNode(name='...', port=..., base_dir='...')
3131[(3,)]
3232"""
33- from defaults import default_username
3433from .node import PostgresNode
3534
3635
Original file line number Diff line number Diff line change 44
55from shutil import rmtree , copytree
66from six import raise_from
7- from tempfile import mkdtemp
87
9- from os_ops import OsOperations
108from .enums import XLogMethod
119
1210from .consts import \
Original file line number Diff line number Diff line change 11# coding: utf-8
22
3- import io
43import os
54
6- from shutil import copytree
75from six import raise_from
86
9- from os_ops import OsOperations
7+ from . os_ops import OsOperations
108from .config import testgres_config
119
1210from .consts import XLOG_CONTROL_FILE
Original file line number Diff line number Diff line change 11# coding: utf-8
2- from os_ops import OsOperations
32
43# we support both pg8000 and psycopg2
54try :
Original file line number Diff line number Diff line change 1212import subprocess
1313import time
1414
15- from os_ops import OsOperations
1615
1716try :
1817 from collections .abc import Iterable
102101 clean_on_error
103102
104103from .backup import NodeBackup
104+ from .os_ops import OsOperations
105105
106106InternalError = pglib .InternalError
107107ProgrammingError = pglib .ProgrammingError
@@ -1606,8 +1606,10 @@ def make_simple(
16061606 set_replication = False ,
16071607 ptrack_enable = False ,
16081608 initdb_params = [],
1609- pg_options = {}):
1610-
1609+ pg_options = {},
1610+ checksum = True ):
1611+ if checksum and '--data-checksums' not in initdb_params :
1612+ initdb_params .append ('--data-checksums' )
16111613 node = self .make_empty (base_dir )
16121614 node .init (
16131615 initdb_params = initdb_params , allow_streaming = set_replication )
Original file line number Diff line number Diff line change 1- import base64
21import getpass
32import os
43import shutil
1514 except ImportError :
1615 raise ImportError ("You must have psycopg2 or pg8000 modules installed" )
1716
18- from defaults import default_username
17+ from testgres . defaults import default_username
1918from testgres .logger import log
2019
2120import paramiko
You can’t perform that action at this time.
0 commit comments