|
@@ -4,38 +4,32 @@ from flexmock import flexmock
|
|
from borgmatic.actions.config import bootstrap as module
|
|
from borgmatic.actions.config import bootstrap as module
|
|
|
|
|
|
|
|
|
|
-def test_make_bootstrap_config_uses_ssh_command_argument():
|
|
|
|
- ssh_command = flexmock()
|
|
|
|
|
|
+def test_make_bootstrap_config_uses_bootstrap_arguments():
|
|
|
|
+ config = module.make_bootstrap_config(
|
|
|
|
+ flexmock(
|
|
|
|
+ borgmatic_source_directory='/source',
|
|
|
|
+ local_path='borg1',
|
|
|
|
+ remote_path='borg2',
|
|
|
|
+ ssh_command='ssh',
|
|
|
|
+ user_runtime_directory='/run',
|
|
|
|
+ )
|
|
|
|
+ )
|
|
|
|
|
|
- config = module.make_bootstrap_config(flexmock(ssh_command=ssh_command))
|
|
|
|
- assert config['ssh_command'] == ssh_command
|
|
|
|
|
|
+ assert config['borgmatic_source_directory'] == '/source'
|
|
|
|
+ assert config['local_path'] == 'borg1'
|
|
|
|
+ assert config['remote_path'] == 'borg2'
|
|
assert config['relocated_repo_access_is_ok']
|
|
assert config['relocated_repo_access_is_ok']
|
|
|
|
+ assert config['ssh_command'] == 'ssh'
|
|
|
|
+ assert config['user_runtime_directory'] == '/run'
|
|
|
|
|
|
|
|
|
|
-def test_get_config_paths_returns_list_of_config_paths():
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
- 'get_borgmatic_source_directory',
|
|
|
|
- ).and_return('/source')
|
|
|
|
- flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
|
|
- bootstrap_arguments = flexmock(
|
|
|
|
- repository='repo',
|
|
|
|
- archive='archive',
|
|
|
|
- ssh_command=None,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg8',
|
|
|
|
- borgmatic_source_directory=None,
|
|
|
|
- user_runtime_directory=None,
|
|
|
|
- )
|
|
|
|
- global_arguments = flexmock(
|
|
|
|
- dry_run=False,
|
|
|
|
- )
|
|
|
|
- local_borg_version = flexmock()
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- flexmock(),
|
|
|
|
- )
|
|
|
|
|
|
+def test_load_config_paths_from_archive_returns_list_of_config_paths():
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'make_runtime_directory_glob',
|
|
'make_runtime_directory_glob',
|
|
).replace_with(lambda path: path)
|
|
).replace_with(lambda path: path)
|
|
|
|
+ flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
+ 'get_borgmatic_source_directory',
|
|
|
|
+ ).and_return('/source')
|
|
extract_process = flexmock(
|
|
extract_process = flexmock(
|
|
stdout=flexmock(
|
|
stdout=flexmock(
|
|
read=lambda: '{"config_paths": ["/borgmatic/config.yaml"]}',
|
|
read=lambda: '{"config_paths": ["/borgmatic/config.yaml"]}',
|
|
@@ -45,54 +39,38 @@ def test_get_config_paths_returns_list_of_config_paths():
|
|
extract_process,
|
|
extract_process,
|
|
)
|
|
)
|
|
|
|
|
|
- assert module.get_config_paths(
|
|
|
|
|
|
+ assert module.load_config_paths_from_archive(
|
|
|
|
+ 'repo',
|
|
'archive',
|
|
'archive',
|
|
- bootstrap_arguments,
|
|
|
|
- global_arguments,
|
|
|
|
- local_borg_version,
|
|
|
|
|
|
+ config={},
|
|
|
|
+ local_borg_version=flexmock(),
|
|
|
|
+ global_arguments=flexmock(dry_run=False),
|
|
|
|
+ borgmatic_runtime_directory='/run',
|
|
) == ['/borgmatic/config.yaml']
|
|
) == ['/borgmatic/config.yaml']
|
|
|
|
|
|
|
|
|
|
-def test_get_config_paths_probes_for_manifest():
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
- 'get_borgmatic_source_directory',
|
|
|
|
- ).and_return('/source')
|
|
|
|
- flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
|
|
- bootstrap_arguments = flexmock(
|
|
|
|
- repository='repo',
|
|
|
|
- archive='archive',
|
|
|
|
- ssh_command=None,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg8',
|
|
|
|
- borgmatic_source_directory=None,
|
|
|
|
- user_runtime_directory=None,
|
|
|
|
- )
|
|
|
|
- global_arguments = flexmock(
|
|
|
|
- dry_run=False,
|
|
|
|
- )
|
|
|
|
- local_borg_version = flexmock()
|
|
|
|
- borgmatic_runtime_directory = flexmock()
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- borgmatic_runtime_directory,
|
|
|
|
- )
|
|
|
|
|
|
+def test_load_config_paths_from_archive_probes_for_manifest():
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'make_runtime_directory_glob',
|
|
'make_runtime_directory_glob',
|
|
).replace_with(lambda path: path)
|
|
).replace_with(lambda path: path)
|
|
- flexmock(module.os.path).should_receive('join').with_args(
|
|
|
|
|
|
+ flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
+ 'get_borgmatic_source_directory',
|
|
|
|
+ ).and_return('/source')
|
|
|
|
+ flexmock(module.os.path).should_call('join').with_args(
|
|
'borgmatic',
|
|
'borgmatic',
|
|
'bootstrap',
|
|
'bootstrap',
|
|
'manifest.json',
|
|
'manifest.json',
|
|
- ).and_return('borgmatic/bootstrap/manifest.json').once()
|
|
|
|
- flexmock(module.os.path).should_receive('join').with_args(
|
|
|
|
- borgmatic_runtime_directory,
|
|
|
|
|
|
+ ).once()
|
|
|
|
+ flexmock(module.os.path).should_call('join').with_args(
|
|
|
|
+ '/run',
|
|
'bootstrap',
|
|
'bootstrap',
|
|
'manifest.json',
|
|
'manifest.json',
|
|
- ).and_return('run/borgmatic/bootstrap/manifest.json').once()
|
|
|
|
- flexmock(module.os.path).should_receive('join').with_args(
|
|
|
|
|
|
+ ).once()
|
|
|
|
+ flexmock(module.os.path).should_call('join').with_args(
|
|
'/source',
|
|
'/source',
|
|
'bootstrap',
|
|
'bootstrap',
|
|
'manifest.json',
|
|
'manifest.json',
|
|
- ).and_return('/source/bootstrap/manifest.json').once()
|
|
|
|
|
|
+ ).once()
|
|
manifest_missing_extract_process = flexmock(
|
|
manifest_missing_extract_process = flexmock(
|
|
stdout=flexmock(read=lambda: None),
|
|
stdout=flexmock(read=lambda: None),
|
|
)
|
|
)
|
|
@@ -105,128 +83,46 @@ def test_get_config_paths_probes_for_manifest():
|
|
manifest_missing_extract_process,
|
|
manifest_missing_extract_process,
|
|
).and_return(manifest_missing_extract_process).and_return(manifest_found_extract_process)
|
|
).and_return(manifest_missing_extract_process).and_return(manifest_found_extract_process)
|
|
|
|
|
|
- assert module.get_config_paths(
|
|
|
|
|
|
+ assert module.load_config_paths_from_archive(
|
|
|
|
+ 'repo',
|
|
'archive',
|
|
'archive',
|
|
- bootstrap_arguments,
|
|
|
|
- global_arguments,
|
|
|
|
- local_borg_version,
|
|
|
|
|
|
+ config={},
|
|
|
|
+ local_borg_version=flexmock(),
|
|
|
|
+ global_arguments=flexmock(dry_run=False),
|
|
|
|
+ borgmatic_runtime_directory='/run',
|
|
) == ['/borgmatic/config.yaml']
|
|
) == ['/borgmatic/config.yaml']
|
|
|
|
|
|
|
|
|
|
-def test_get_config_paths_translates_ssh_command_argument_to_config():
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
- 'get_borgmatic_source_directory',
|
|
|
|
- ).and_return('/source')
|
|
|
|
- config = {}
|
|
|
|
- flexmock(module).should_receive('make_bootstrap_config').and_return(config)
|
|
|
|
- bootstrap_arguments = flexmock(
|
|
|
|
- repository='repo',
|
|
|
|
- archive='archive',
|
|
|
|
- ssh_command='ssh -i key',
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg8',
|
|
|
|
- borgmatic_source_directory=None,
|
|
|
|
- user_runtime_directory=None,
|
|
|
|
- )
|
|
|
|
- global_arguments = flexmock(
|
|
|
|
- dry_run=False,
|
|
|
|
- )
|
|
|
|
- local_borg_version = flexmock()
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- flexmock(),
|
|
|
|
- )
|
|
|
|
|
|
+def test_load_config_paths_from_archive_with_missing_manifest_raises_value_error():
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'make_runtime_directory_glob',
|
|
'make_runtime_directory_glob',
|
|
).replace_with(lambda path: path)
|
|
).replace_with(lambda path: path)
|
|
- extract_process = flexmock(
|
|
|
|
- stdout=flexmock(
|
|
|
|
- read=lambda: '{"config_paths": ["/borgmatic/config.yaml"]}',
|
|
|
|
- ),
|
|
|
|
- )
|
|
|
|
- flexmock(module.borgmatic.borg.extract).should_receive('extract_archive').with_args(
|
|
|
|
- False,
|
|
|
|
- 'repo',
|
|
|
|
- 'archive',
|
|
|
|
- object,
|
|
|
|
- config,
|
|
|
|
- object,
|
|
|
|
- object,
|
|
|
|
- extract_to_stdout=True,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg8',
|
|
|
|
- ).and_return(extract_process)
|
|
|
|
-
|
|
|
|
- assert module.get_config_paths(
|
|
|
|
- 'archive',
|
|
|
|
- bootstrap_arguments,
|
|
|
|
- global_arguments,
|
|
|
|
- local_borg_version,
|
|
|
|
- ) == ['/borgmatic/config.yaml']
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-def test_get_config_paths_with_missing_manifest_raises_value_error():
|
|
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'get_borgmatic_source_directory',
|
|
'get_borgmatic_source_directory',
|
|
).and_return('/source')
|
|
).and_return('/source')
|
|
- flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
|
|
- bootstrap_arguments = flexmock(
|
|
|
|
- repository='repo',
|
|
|
|
- archive='archive',
|
|
|
|
- ssh_command=None,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg7',
|
|
|
|
- borgmatic_source_directory=None,
|
|
|
|
- user_runtime_directory=None,
|
|
|
|
- )
|
|
|
|
- global_arguments = flexmock(
|
|
|
|
- dry_run=False,
|
|
|
|
- )
|
|
|
|
- local_borg_version = flexmock()
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- flexmock(),
|
|
|
|
- )
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
- 'make_runtime_directory_glob',
|
|
|
|
- ).replace_with(lambda path: path)
|
|
|
|
- flexmock(module.os.path).should_receive('join').and_return('run/borgmatic')
|
|
|
|
extract_process = flexmock(stdout=flexmock(read=lambda: ''))
|
|
extract_process = flexmock(stdout=flexmock(read=lambda: ''))
|
|
flexmock(module.borgmatic.borg.extract).should_receive('extract_archive').and_return(
|
|
flexmock(module.borgmatic.borg.extract).should_receive('extract_archive').and_return(
|
|
extract_process,
|
|
extract_process,
|
|
)
|
|
)
|
|
|
|
|
|
with pytest.raises(ValueError):
|
|
with pytest.raises(ValueError):
|
|
- module.get_config_paths(
|
|
|
|
|
|
+ module.load_config_paths_from_archive(
|
|
|
|
+ 'repo',
|
|
'archive',
|
|
'archive',
|
|
- bootstrap_arguments,
|
|
|
|
- global_arguments,
|
|
|
|
- local_borg_version,
|
|
|
|
|
|
+ config={},
|
|
|
|
+ local_borg_version=flexmock(),
|
|
|
|
+ global_arguments=flexmock(dry_run=False),
|
|
|
|
+ borgmatic_runtime_directory='/run',
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
-def test_get_config_paths_with_broken_json_raises_value_error():
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
- 'get_borgmatic_source_directory',
|
|
|
|
- ).and_return('/source')
|
|
|
|
- flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
|
|
- bootstrap_arguments = flexmock(
|
|
|
|
- repository='repo',
|
|
|
|
- archive='archive',
|
|
|
|
- ssh_command=None,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg7',
|
|
|
|
- borgmatic_source_directory=None,
|
|
|
|
- user_runtime_directory=None,
|
|
|
|
- )
|
|
|
|
- global_arguments = flexmock(
|
|
|
|
- dry_run=False,
|
|
|
|
- )
|
|
|
|
- local_borg_version = flexmock()
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- flexmock(),
|
|
|
|
- )
|
|
|
|
|
|
+def test_load_config_paths_from_archive_with_broken_json_raises_value_error():
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'make_runtime_directory_glob',
|
|
'make_runtime_directory_glob',
|
|
).replace_with(lambda path: path)
|
|
).replace_with(lambda path: path)
|
|
|
|
+ flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
+ 'get_borgmatic_source_directory',
|
|
|
|
+ ).and_return('/source')
|
|
extract_process = flexmock(
|
|
extract_process = flexmock(
|
|
stdout=flexmock(read=lambda: '{"config_paths": ["/oops'),
|
|
stdout=flexmock(read=lambda: '{"config_paths": ["/oops'),
|
|
)
|
|
)
|
|
@@ -235,38 +131,23 @@ def test_get_config_paths_with_broken_json_raises_value_error():
|
|
)
|
|
)
|
|
|
|
|
|
with pytest.raises(ValueError):
|
|
with pytest.raises(ValueError):
|
|
- module.get_config_paths(
|
|
|
|
|
|
+ module.load_config_paths_from_archive(
|
|
|
|
+ 'repo',
|
|
'archive',
|
|
'archive',
|
|
- bootstrap_arguments,
|
|
|
|
- global_arguments,
|
|
|
|
- local_borg_version,
|
|
|
|
|
|
+ config={},
|
|
|
|
+ local_borg_version=flexmock(),
|
|
|
|
+ global_arguments=flexmock(dry_run=False),
|
|
|
|
+ borgmatic_runtime_directory='/run',
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
-def test_get_config_paths_with_json_missing_key_raises_value_error():
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
- 'get_borgmatic_source_directory',
|
|
|
|
- ).and_return('/source')
|
|
|
|
- flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
|
|
- bootstrap_arguments = flexmock(
|
|
|
|
- repository='repo',
|
|
|
|
- archive='archive',
|
|
|
|
- ssh_command=None,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg7',
|
|
|
|
- borgmatic_source_directory=None,
|
|
|
|
- user_runtime_directory=None,
|
|
|
|
- )
|
|
|
|
- global_arguments = flexmock(
|
|
|
|
- dry_run=False,
|
|
|
|
- )
|
|
|
|
- local_borg_version = flexmock()
|
|
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- flexmock(),
|
|
|
|
- )
|
|
|
|
|
|
+def test_load_config_paths_from_archive_with_json_missing_key_raises_value_error():
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'make_runtime_directory_glob',
|
|
'make_runtime_directory_glob',
|
|
).replace_with(lambda path: path)
|
|
).replace_with(lambda path: path)
|
|
|
|
+ flexmock(module.borgmatic.config.paths).should_receive(
|
|
|
|
+ 'get_borgmatic_source_directory',
|
|
|
|
+ ).and_return('/source')
|
|
extract_process = flexmock(
|
|
extract_process = flexmock(
|
|
stdout=flexmock(read=lambda: '{}'),
|
|
stdout=flexmock(read=lambda: '{}'),
|
|
)
|
|
)
|
|
@@ -275,17 +156,27 @@ def test_get_config_paths_with_json_missing_key_raises_value_error():
|
|
)
|
|
)
|
|
|
|
|
|
with pytest.raises(ValueError):
|
|
with pytest.raises(ValueError):
|
|
- module.get_config_paths(
|
|
|
|
|
|
+ module.load_config_paths_from_archive(
|
|
|
|
+ 'repo',
|
|
'archive',
|
|
'archive',
|
|
- bootstrap_arguments,
|
|
|
|
- global_arguments,
|
|
|
|
- local_borg_version,
|
|
|
|
|
|
+ config={},
|
|
|
|
+ local_borg_version=flexmock(),
|
|
|
|
+ global_arguments=flexmock(dry_run=False),
|
|
|
|
+ borgmatic_runtime_directory='/run',
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
def test_run_bootstrap_does_not_raise():
|
|
def test_run_bootstrap_does_not_raise():
|
|
flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
flexmock(module).should_receive('make_bootstrap_config').and_return({})
|
|
- flexmock(module).should_receive('get_config_paths').and_return(['/borgmatic/config.yaml'])
|
|
|
|
|
|
+ flexmock(module.borgmatic.borg.repo_list).should_receive('resolve_archive_name').and_return(
|
|
|
|
+ 'archive',
|
|
|
|
+ )
|
|
|
|
+ flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
+ flexmock(),
|
|
|
|
+ )
|
|
|
|
+ flexmock(module).should_receive('load_config_paths_from_archive').and_return(
|
|
|
|
+ ['/borgmatic/config.yaml']
|
|
|
|
+ )
|
|
bootstrap_arguments = flexmock(
|
|
bootstrap_arguments = flexmock(
|
|
repository='repo',
|
|
repository='repo',
|
|
archive='archive',
|
|
archive='archive',
|
|
@@ -315,9 +206,6 @@ def test_run_bootstrap_does_not_raise():
|
|
flexmock(module.borgmatic.borg.extract).should_receive('extract_archive').and_return(
|
|
flexmock(module.borgmatic.borg.extract).should_receive('extract_archive').and_return(
|
|
extract_process,
|
|
extract_process,
|
|
).once()
|
|
).once()
|
|
- flexmock(module.borgmatic.borg.repo_list).should_receive('resolve_archive_name').and_return(
|
|
|
|
- 'archive',
|
|
|
|
- )
|
|
|
|
|
|
|
|
module.run_bootstrap(bootstrap_arguments, global_arguments, local_borg_version)
|
|
module.run_bootstrap(bootstrap_arguments, global_arguments, local_borg_version)
|
|
|
|
|
|
@@ -325,7 +213,21 @@ def test_run_bootstrap_does_not_raise():
|
|
def test_run_bootstrap_translates_ssh_command_argument_to_config():
|
|
def test_run_bootstrap_translates_ssh_command_argument_to_config():
|
|
config = {}
|
|
config = {}
|
|
flexmock(module).should_receive('make_bootstrap_config').and_return(config)
|
|
flexmock(module).should_receive('make_bootstrap_config').and_return(config)
|
|
- flexmock(module).should_receive('get_config_paths').and_return(['/borgmatic/config.yaml'])
|
|
|
|
|
|
+ flexmock(module.borgmatic.borg.repo_list).should_receive('resolve_archive_name').with_args(
|
|
|
|
+ 'repo',
|
|
|
|
+ 'archive',
|
|
|
|
+ config,
|
|
|
|
+ object,
|
|
|
|
+ object,
|
|
|
|
+ local_path='borg7',
|
|
|
|
+ remote_path='borg8',
|
|
|
|
+ ).and_return('archive')
|
|
|
|
+ flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
+ flexmock(),
|
|
|
|
+ )
|
|
|
|
+ flexmock(module).should_receive('load_config_paths_from_archive').and_return(
|
|
|
|
+ ['/borgmatic/config.yaml']
|
|
|
|
+ )
|
|
bootstrap_arguments = flexmock(
|
|
bootstrap_arguments = flexmock(
|
|
repository='repo',
|
|
repository='repo',
|
|
archive='archive',
|
|
archive='archive',
|
|
@@ -341,9 +243,6 @@ def test_run_bootstrap_translates_ssh_command_argument_to_config():
|
|
dry_run=False,
|
|
dry_run=False,
|
|
)
|
|
)
|
|
local_borg_version = flexmock()
|
|
local_borg_version = flexmock()
|
|
- flexmock(module.borgmatic.config.paths).should_receive('Runtime_directory').and_return(
|
|
|
|
- flexmock(),
|
|
|
|
- )
|
|
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
flexmock(module.borgmatic.config.paths).should_receive(
|
|
'make_runtime_directory_glob',
|
|
'make_runtime_directory_glob',
|
|
).replace_with(lambda path: path)
|
|
).replace_with(lambda path: path)
|
|
@@ -366,14 +265,5 @@ def test_run_bootstrap_translates_ssh_command_argument_to_config():
|
|
local_path='borg7',
|
|
local_path='borg7',
|
|
remote_path='borg8',
|
|
remote_path='borg8',
|
|
).and_return(extract_process).once()
|
|
).and_return(extract_process).once()
|
|
- flexmock(module.borgmatic.borg.repo_list).should_receive('resolve_archive_name').with_args(
|
|
|
|
- 'repo',
|
|
|
|
- 'archive',
|
|
|
|
- config,
|
|
|
|
- object,
|
|
|
|
- object,
|
|
|
|
- local_path='borg7',
|
|
|
|
- remote_path='borg8',
|
|
|
|
- ).and_return('archive')
|
|
|
|
|
|
|
|
module.run_bootstrap(bootstrap_arguments, global_arguments, local_borg_version)
|
|
module.run_bootstrap(bootstrap_arguments, global_arguments, local_borg_version)
|