1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-25 09:01:48 +02:00

[Issue #112] tests: added time_stamp.CheckTimeStamp.test_server_date_style

This commit is contained in:
Grigory Smolkin 2019-08-28 13:10:09 +03:00
parent 8f1a45961a
commit 2286c4bfe8

View File

@ -52,3 +52,23 @@ class CheckTimeStamp(ProbackupTest, unittest.TestCase):
node.stop()
# Clean after yourself
self.del_test_dir(module_name, fname)
def test_server_date_style(self):
"""Issue #112"""
fname = self.id().split('.')[3]
node = self.make_simple_node(
base_dir="{0}/{1}/node".format(module_name, fname),
set_replication=True,
initdb_params=['--data-checksums'],
pg_options={"datestyle": "'GERMAN, DMY'"})
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
node.start()
self.backup_node(
backup_dir, 'node', node, options=['--stream', '-j 2'])
# Clean after yourself
self.del_test_dir(module_name, fname)