Skip to content

Commit

Permalink
Switch from "init" to "rcreate" for creating repos in end-to-end tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
witten committed Jun 24, 2023
1 parent b62017b commit 325b561
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/end-to-end/test_borgmatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_borgmatic_command():
generate_configuration(config_path, repository_path)

subprocess.check_call(
f'borgmatic -v 2 --config {config_path} init --encryption repokey'.split(' ')
f'borgmatic -v 2 --config {config_path} rcreate --encryption repokey'.split(' ')
)

# Run borgmatic to generate a backup archive, and then list it to make sure it exists.
Expand Down
10 changes: 5 additions & 5 deletions tests/end-to-end/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def test_database_dump_and_restore():
)

subprocess.check_call(
['borgmatic', '-v', '2', '--config', config_path, 'init', '--encryption', 'repokey']
['borgmatic', '-v', '2', '--config', config_path, 'rcreate', '--encryption', 'repokey']
)

# Run borgmatic to generate a backup archive including a database dump.
Expand Down Expand Up @@ -242,7 +242,7 @@ def test_database_dump_and_restore_with_restore_cli_arguments():
)

subprocess.check_call(
['borgmatic', '-v', '2', '--config', config_path, 'init', '--encryption', 'repokey']
['borgmatic', '-v', '2', '--config', config_path, 'rcreate', '--encryption', 'repokey']
)

# Run borgmatic to generate a backup archive including a database dump.
Expand Down Expand Up @@ -299,7 +299,7 @@ def test_database_dump_and_restore_with_restore_configuration_options():
)

subprocess.check_call(
['borgmatic', '-v', '2', '--config', config_path, 'init', '--encryption', 'repokey']
['borgmatic', '-v', '2', '--config', config_path, 'rcreate', '--encryption', 'repokey']
)

# Run borgmatic to generate a backup archive including a database dump.
Expand Down Expand Up @@ -344,7 +344,7 @@ def test_database_dump_and_restore_with_directory_format():
)

subprocess.check_call(
['borgmatic', '-v', '2', '--config', config_path, 'init', '--encryption', 'repokey']
['borgmatic', '-v', '2', '--config', config_path, 'rcreate', '--encryption', 'repokey']
)

# Run borgmatic to generate a backup archive including a database dump.
Expand Down Expand Up @@ -374,7 +374,7 @@ def test_database_dump_with_error_causes_borgmatic_to_exit():
)

subprocess.check_call(
['borgmatic', '-v', '2', '--config', config_path, 'init', '--encryption', 'repokey']
['borgmatic', '-v', '2', '--config', config_path, 'rcreate', '--encryption', 'repokey']
)

# Run borgmatic with a config override such that the database dump fails.
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/test_override.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_override_get_normalized():
generate_configuration(config_path, repository_path)

subprocess.check_call(
f'borgmatic -v 2 --config {config_path} init --encryption repokey'.split(' ')
f'borgmatic -v 2 --config {config_path} rcreate --encryption repokey'.split(' ')
)

# Run borgmatic with an override structured for an outdated config file format. If
Expand Down

0 comments on commit 325b561

Please sign in to comment.