@@ -156,12 +156,10 @@ def test_delta_vacuum_truncate_2(self):
156
156
157
157
self .backup_node (
158
158
backup_dir , 'node' , node , backup_type = 'delta'
159
- # options=['--log-level-file=verbose']
160
159
)
161
160
162
161
self .backup_node (
163
162
backup_dir , 'node' , node , backup_type = 'delta'
164
- # options=['--log-level-file=verbose']
165
163
)
166
164
167
165
pgdata = self .pgdata_content (node .data_dir )
@@ -231,25 +229,21 @@ def test_delta_vacuum_truncate_3(self):
231
229
"select pg_relation_filepath('t_heap')"
232
230
).rstrip ()
233
231
234
-
235
232
self .backup_node (backup_dir , 'node' , node )
236
233
237
234
print (os .path .join (node .data_dir , filepath + '.1' ))
238
235
os .unlink (os .path .join (node .data_dir , filepath + '.1' ))
239
236
240
237
self .backup_node (
241
238
backup_dir , 'node' , node , backup_type = 'delta'
242
- # options=['--log-level-file=verbose']
243
239
)
244
240
245
241
self .backup_node (
246
242
backup_dir , 'node' , node , backup_type = 'delta'
247
- # options=['--log-level-file=verbose']
248
243
)
249
244
250
245
pgdata = self .pgdata_content (node .data_dir )
251
246
252
-
253
247
self .restore_node (
254
248
backup_dir ,
255
249
'node' ,
@@ -273,8 +267,10 @@ def test_delta_vacuum_truncate_3(self):
273
267
274
268
# @unittest.skip("skip")
275
269
def test_delta_stream (self ):
276
- """make archive node, take full and delta stream backups, restore them and check data correctness"""
277
- self .maxDiff = None
270
+ """
271
+ make archive node, take full and delta stream backups,
272
+ restore them and check data correctness
273
+ """
278
274
fname = self .id ().split ('.' )[3 ]
279
275
backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
280
276
node = self .make_simple_node (
@@ -350,7 +346,10 @@ def test_delta_stream(self):
350
346
351
347
# @unittest.skip("skip")
352
348
def test_delta_archive (self ):
353
- """make archive node, take full and delta archive backups, restore them and check data correctness"""
349
+ """
350
+ make archive node, take full and delta archive backups,
351
+ restore them and check data correctness
352
+ """
354
353
self .maxDiff = None
355
354
fname = self .id ().split ('.' )[3 ]
356
355
backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
@@ -422,9 +421,12 @@ def test_delta_archive(self):
422
421
# Clean after yourself
423
422
self .del_test_dir (module_name , fname )
424
423
425
- # @unittest.skip("skip")
424
+ @unittest .skip ("skip" )
426
425
def test_delta_multiple_segments (self ):
427
- """Make node, create table with multiple segments, write some data to it, check delta and data correctness"""
426
+ """
427
+ Make node, create table with multiple segments,
428
+ write some data to it, check delta and data correctness
429
+ """
428
430
fname = self .id ().split ('.' )[3 ]
429
431
backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
430
432
node = self .make_simple_node (
@@ -928,8 +930,8 @@ def test_alter_table_set_tablespace_delta(self):
928
930
def test_alter_database_set_tablespace_delta (self ):
929
931
"""
930
932
Make node, take full backup, create database,
931
- take delta backup, alter database tablespace location, take delta backup
932
- restore last delta backup.
933
+ take delta backup, alter database tablespace location,
934
+ take delta backup restore last delta backup.
933
935
"""
934
936
fname = self .id ().split ('.' )[3 ]
935
937
backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
@@ -953,7 +955,9 @@ def test_alter_database_set_tablespace_delta(self):
953
955
self .backup_node (backup_dir , 'node' , node , options = ["--stream" ])
954
956
955
957
# CREATE DATABASE DB1
956
- node .safe_psql ("postgres" , "create database db1 tablespace = 'somedata'" )
958
+ node .safe_psql (
959
+ "postgres" ,
960
+ "create database db1 tablespace = 'somedata'" )
957
961
node .safe_psql (
958
962
"db1" ,
959
963
"create table t_heap as select i as id, md5(i::text) as text, "
0 commit comments