-
Notifications
You must be signed in to change notification settings - Fork 35
Pbckp 152 multihost #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
02c3375
1512afd
0d62e0e
8be1b3a
51f05de
f131088
4f38bd5
0da2ee2
2bc17f0
f9b6bdb
ac77ef7
b048041
e098b97
1c405ef
8c373e6
72e6d5d
2c2d2c5
1b4f74a
2e916df
0528541
089ab9b
190d084
0c26f77
0796bc4
0f14034
12aa7ba
4e7f4b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import datetime | ||
import getpass | ||
import os | ||
import struct | ||
import uuid | ||
|
||
from .config import testgres_config as tconf | ||
|
||
|
||
def default_dbname(): | ||
""" | ||
|
@@ -17,8 +17,7 @@ def default_username(): | |
""" | ||
Return default username (current user). | ||
""" | ||
|
||
return getpass.getuser() | ||
return tconf.os_ops.get_user() | ||
|
||
|
||
def generate_app_name(): | ||
|
@@ -44,7 +43,7 @@ def generate_system_id(): | |
system_id = 0 | ||
system_id |= (secs << 32) | ||
system_id |= (usecs << 12) | ||
system_id |= (os.getpid() & 0xFFF) | ||
system_id |= (tconf.os_ops.get_pid() & 0xFFF) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no override tconf.os_ops for RemoteOperations. is it as expected? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's setting up in testgres_config.set_os_ops(os_ops=os_ops) and inside PostgresNode testgres_config.os_ops = self.os_ops |
||
|
||
# pack ULL in native byte order | ||
return struct.pack('=Q', system_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't found calls to test_os_ops() with RemoteOperations. Is it as expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in test_simple_remote.py:59