mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-04-08 16:54:08 +02:00
test_backup_via_unprivileged_user - test with ptrack correctly
This commit is contained in:
parent
8488b289ba
commit
e674202eac
@ -33,6 +33,7 @@ class SimpleAuthTest(ProbackupTest, unittest.TestCase):
|
||||
node = self.make_simple_node(
|
||||
base_dir=os.path.join(self.module_name, self.fname, 'node'),
|
||||
set_replication=True,
|
||||
ptrack_enable=self.ptrack,
|
||||
initdb_params=['--data-checksums'])
|
||||
|
||||
backup_dir = os.path.join(self.tmp_path, self.module_name, self.fname, 'backup')
|
||||
@ -41,6 +42,11 @@ class SimpleAuthTest(ProbackupTest, unittest.TestCase):
|
||||
self.set_archiving(backup_dir, 'node', node)
|
||||
node.slow_start()
|
||||
|
||||
if self.ptrack:
|
||||
node.safe_psql(
|
||||
"postgres",
|
||||
"CREATE EXTENSION ptrack")
|
||||
|
||||
node.safe_psql("postgres", "CREATE ROLE backup with LOGIN")
|
||||
|
||||
try:
|
||||
@ -160,9 +166,10 @@ class SimpleAuthTest(ProbackupTest, unittest.TestCase):
|
||||
backup_dir, 'node', node, options=['-U', 'backup'])
|
||||
|
||||
# PTRACK
|
||||
# self.backup_node(
|
||||
# backup_dir, 'node', node,
|
||||
# backup_type='ptrack', options=['-U', 'backup'])
|
||||
if self.ptrack:
|
||||
self.backup_node(
|
||||
backup_dir, 'node', node,
|
||||
backup_type='ptrack', options=['-U', 'backup'])
|
||||
|
||||
|
||||
class AuthTest(unittest.TestCase):
|
||||
|
Loading…
x
Reference in New Issue
Block a user