mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
Attempted CI test fixes. Also spelling.
This commit is contained in:
@@ -40,7 +40,7 @@ def test_container_secret():
|
||||
original_working_directory = os.getcwd()
|
||||
os.chdir(temporary_directory)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path, secrets_directory=temporary_directory)
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ def test_file_credential():
|
||||
original_working_directory = os.getcwd()
|
||||
os.chdir(temporary_directory)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
credential_path = os.path.join(temporary_directory, 'mycredential')
|
||||
generate_configuration(config_path, repository_path, credential_path)
|
||||
|
||||
@@ -39,7 +39,7 @@ def test_keepassxc_password():
|
||||
original_working_directory = os.getcwd()
|
||||
os.chdir(temporary_directory)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ def test_systemd_credential():
|
||||
original_working_directory = os.getcwd()
|
||||
os.chdir(temporary_directory)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ def test_btrfs_create_and_list():
|
||||
temporary_directory = tempfile.mkdtemp()
|
||||
repository_path = os.path.join(temporary_directory, 'test.borg')
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -443,7 +443,7 @@ def test_database_dump_and_restore():
|
||||
|
||||
original_working_directory = os.getcwd()
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
config = write_configuration(
|
||||
temporary_directory,
|
||||
@@ -501,7 +501,7 @@ def test_database_dump_and_restore_with_restore_cli_flags():
|
||||
|
||||
original_working_directory = os.getcwd()
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
config = write_simple_custom_restore_configuration(
|
||||
temporary_directory,
|
||||
@@ -582,7 +582,7 @@ def test_database_dump_and_restore_with_restore_configuration_options():
|
||||
|
||||
original_working_directory = os.getcwd()
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
config = write_custom_restore_configuration(
|
||||
temporary_directory,
|
||||
@@ -641,7 +641,7 @@ def test_database_dump_and_restore_with_directory_format():
|
||||
|
||||
original_working_directory = os.getcwd()
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
config = write_configuration(
|
||||
temporary_directory,
|
||||
@@ -737,7 +737,7 @@ def test_database_dump_and_restore_containers():
|
||||
|
||||
os.environ['PATH'] = f'/app/tests/end-to-end/commands:{original_path}'
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
config = write_container_configuration(
|
||||
temporary_directory,
|
||||
|
||||
@@ -41,7 +41,7 @@ def test_lvm_create_and_list():
|
||||
temporary_directory = tempfile.mkdtemp()
|
||||
repository_path = os.path.join(temporary_directory, 'test.borg')
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ def test_zfs_create_and_list():
|
||||
temporary_directory = tempfile.mkdtemp()
|
||||
repository_path = os.path.join(temporary_directory, 'test.borg')
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ def test_borgmatic_command(monitoring_hook_configuration, expected_request_count
|
||||
os.mkdir(extract_path)
|
||||
os.chdir(extract_path)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path, monitoring_hook_configuration)
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ def test_borgmatic_command(generate_configuration):
|
||||
os.mkdir(extract_path)
|
||||
os.chdir(extract_path)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ def test_borgmatic_command():
|
||||
os.chdir(extract_path)
|
||||
environment = dict(os.environ, PASSPHRASE='test')
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ def test_borgmatic_command():
|
||||
os.mkdir(extract_path)
|
||||
os.chdir(extract_path)
|
||||
|
||||
try: # noqa: PLW0717
|
||||
try:
|
||||
config_path = os.path.join(temporary_directory, 'test.yaml')
|
||||
generate_configuration(config_path, repository_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user