@@ -222,21 +222,21 @@ def test_help_6(self):
222
222
'You need configure PostgreSQL with --enabled-nls option for this test' )
223
223
224
224
# @unittest.skip("skip")
225
- def test_options_default_units (self ):
226
- """check --default -units option"""
225
+ def test_options_no_scale_units (self ):
226
+ """check --no-scale -units option"""
227
227
backup_dir = os .path .join (self .tmp_path , self .module_name , self .fname , 'backup' )
228
228
node = self .make_simple_node (
229
229
base_dir = os .path .join (self .module_name , self .fname , 'node' ))
230
230
self .init_pb (backup_dir )
231
231
self .add_instance (backup_dir , 'node' , node )
232
- # check that --default -units option works correctly
232
+ # check that --no-scale -units option works correctly
233
233
output = self .run_pb (["show-config" , "--backup-path" , backup_dir , "--instance=node" ])
234
234
self .assertIn (container = output , member = "archive-timeout = 5min" )
235
- output = self .run_pb (["show-config" , "--backup-path" , backup_dir , "--instance=node" , "--default -units" ])
235
+ output = self .run_pb (["show-config" , "--backup-path" , backup_dir , "--instance=node" , "--no-scale -units" ])
236
236
self .assertIn (container = output , member = "archive-timeout = 300" )
237
237
self .assertNotIn (container = output , member = "archive-timeout = 300s" )
238
238
# check that we have now quotes ("") in json output
239
- output = self .run_pb (["show-config" , "--backup-path" , backup_dir , "--instance=node" , "--default -units" , "--format=json" ])
239
+ output = self .run_pb (["show-config" , "--backup-path" , backup_dir , "--instance=node" , "--no-scale -units" , "--format=json" ])
240
240
self .assertIn (container = output , member = '"archive-timeout": 300,' )
241
241
self .assertIn (container = output , member = '"retention-redundancy": 0,' )
242
242
self .assertNotIn (container = output , member = '"archive-timeout": "300",' )
0 commit comments