Skip to content

Commit 2286c4b

Browse files
committed
[Issue #112] tests: added time_stamp.CheckTimeStamp.test_server_date_style
1 parent 8f1a459 commit 2286c4b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/time_stamp.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,23 @@ def test_start_time_format(self):
5252
node.stop()
5353
# Clean after yourself
5454
self.del_test_dir(module_name, fname)
55+
56+
def test_server_date_style(self):
57+
"""Issue #112"""
58+
fname = self.id().split('.')[3]
59+
node = self.make_simple_node(
60+
base_dir="{0}/{1}/node".format(module_name, fname),
61+
set_replication=True,
62+
initdb_params=['--data-checksums'],
63+
pg_options={"datestyle": "'GERMAN, DMY'"})
64+
65+
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
66+
self.init_pb(backup_dir)
67+
self.add_instance(backup_dir, 'node', node)
68+
node.start()
69+
70+
self.backup_node(
71+
backup_dir, 'node', node, options=['--stream', '-j 2'])
72+
73+
# Clean after yourself
74+
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)