|
@@ -315,6 +315,10 @@ def test_restore_single_dump_extracts_and_restores_single_file_dump():
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
).and_return({'postgresql': flexmock()})
|
|
).and_return({'postgresql': flexmock()})
|
|
|
flexmock(module.tempfile).should_receive('mkdtemp').never()
|
|
flexmock(module.tempfile).should_receive('mkdtemp').never()
|
|
|
flexmock(module.borgmatic.hooks.data_source.dump).should_receive(
|
|
flexmock(module.borgmatic.hooks.data_source.dump).should_receive(
|
|
@@ -359,6 +363,10 @@ def test_restore_single_dump_extracts_and_restores_directory_dump():
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
).and_return({'postgresql': flexmock()})
|
|
).and_return({'postgresql': flexmock()})
|
|
|
flexmock(module.tempfile).should_receive('mkdtemp').once().and_return(
|
|
flexmock(module.tempfile).should_receive('mkdtemp').once().and_return(
|
|
|
'/run/user/0/borgmatic/tmp1234',
|
|
'/run/user/0/borgmatic/tmp1234',
|
|
@@ -405,6 +413,10 @@ def test_restore_single_dump_with_directory_dump_error_cleans_up_temporary_direc
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
).and_return({'postgresql': flexmock()})
|
|
).and_return({'postgresql': flexmock()})
|
|
|
flexmock(module.tempfile).should_receive('mkdtemp').once().and_return(
|
|
flexmock(module.tempfile).should_receive('mkdtemp').once().and_return(
|
|
|
'/run/user/0/borgmatic/tmp1234',
|
|
'/run/user/0/borgmatic/tmp1234',
|
|
@@ -452,6 +464,10 @@ def test_restore_single_dump_with_directory_dump_and_dry_run_skips_directory_mov
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
object,
|
|
object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
|
|
+ object,
|
|
|
).and_return({'postgresql': flexmock()})
|
|
).and_return({'postgresql': flexmock()})
|
|
|
flexmock(module.tempfile).should_receive('mkdtemp').once().and_return('/run/borgmatic/tmp1234')
|
|
flexmock(module.tempfile).should_receive('mkdtemp').once().and_return('/run/borgmatic/tmp1234')
|
|
|
flexmock(module.borgmatic.hooks.data_source.dump).should_receive(
|
|
flexmock(module.borgmatic.hooks.data_source.dump).should_receive(
|