Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2bc17f0

Browse files
author
v.shepard
committed
testgres from PBCKP-152-multihost
Merge branch 'master' ofhttps://github.com/postgrespro/testgres into PBCKP-152-multihost
2 parents0da2ee2 +94f9b35 commit2bc17f0

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

‎setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"six>=1.9.0",
1313
"psutil",
1414
"packaging",
15+
"paramiko",
16+
"fabric"
1517
]
1618

1719
# Add compatibility enum class

‎testgres/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
PostgresNode(name='...', port=..., base_dir='...')
3131
[(3,)]
3232
"""
33-
fromdefaultsimportdefault_username
3433
from .nodeimportPostgresNode
3534

3635

‎testgres/backup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
fromshutilimportrmtree,copytree
66
fromsiximportraise_from
7-
fromtempfileimportmkdtemp
87

9-
fromos_opsimportOsOperations
108
from .enumsimportXLogMethod
119

1210
from .constsimport \

‎testgres/cache.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# coding: utf-8
22

3-
importio
43
importos
54

6-
fromshutilimportcopytree
75
fromsiximportraise_from
86

9-
fromos_opsimportOsOperations
7+
from.os_opsimportOsOperations
108
from .configimporttestgres_config
119

1210
from .constsimportXLOG_CONTROL_FILE

‎testgres/connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# coding: utf-8
2-
fromos_opsimportOsOperations
32

43
# we support both pg8000 and psycopg2
54
try:

‎testgres/node.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
importsubprocess
1313
importtime
1414

15-
fromos_opsimportOsOperations
1615

1716
try:
1817
fromcollections.abcimportIterable
@@ -102,6 +101,7 @@
102101
clean_on_error
103102

104103
from .backupimportNodeBackup
104+
from .os_opsimportOsOperations
105105

106106
InternalError=pglib.InternalError
107107
ProgrammingError=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+
ifchecksumand'--data-checksums'notininitdb_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)

‎testgres/os_ops.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
importbase64
21
importgetpass
32
importos
43
importshutil
@@ -15,7 +14,7 @@
1514
exceptImportError:
1615
raiseImportError("You must have psycopg2 or pg8000 modules installed")
1716

18-
fromdefaultsimportdefault_username
17+
fromtestgres.defaultsimportdefault_username
1918
fromtestgres.loggerimportlog
2019

2120
importparamiko

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp