mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-28 09:33:54 +02:00
fix auth_test
fix file mode
This commit is contained in:
parent
25267975a8
commit
d86778dc84
@ -186,6 +186,7 @@ class AuthTest(unittest.TestCase):
|
||||
except ExceptionPexpect:
|
||||
raise ExceptionPexpect("Pexpect error.")
|
||||
|
||||
|
||||
def modify_pg_hba(node):
|
||||
"""
|
||||
Description:
|
||||
@ -199,7 +200,9 @@ def modify_pg_hba(node):
|
||||
fio.seek(0)
|
||||
fio.write('host\tall\tpostgres\t127.0.0.1/0\ttrust\n' + data)
|
||||
|
||||
|
||||
def create_pgpass(path, line):
|
||||
with open(path, 'w', mode='0660') as passfile:
|
||||
with open(path, 'w') as passfile:
|
||||
# host:port:db:username:password
|
||||
passfile.write(line)
|
||||
passfile.write(line)
|
||||
os.chmod(path, 600)
|
Loading…
Reference in New Issue
Block a user