diff --git a/changelog.d/+b2_uri_cmds.deprecated.md b/changelog.d/+b2_uri_cmds.deprecated.md index 98aeead6b..47c885563 100644 --- a/changelog.d/+b2_uri_cmds.deprecated.md +++ b/changelog.d/+b2_uri_cmds.deprecated.md @@ -1,3 +1,4 @@ Deprecated `download-file-by-id` and `download-file-by-name`, use `download-file` instead. Deprecated `get-file-info`, use `file-info` instead. Deprecated `make-url` and `make-friendly-url`, use `get-url` instead. + diff --git a/test/integration/test_b2_command_line.py b/test/integration/test_b2_command_line.py index 5c5c0896d..2dce5e1e3 100755 --- a/test/integration/test_b2_command_line.py +++ b/test/integration/test_b2_command_line.py @@ -2742,7 +2742,7 @@ def assert_expected(file_info, expected=expected_file_info): assert_expected(copied_version['fileInfo']) download_output = b2_tool.should_succeed( - ['download-file-by-id', file_version['fileId'], tmp_path / 'downloaded_file'] + ['download-file', f"b2id://{file_version['fileId']}", tmp_path / 'downloaded_file'] ) assert re.search(r'CacheControl: *max-age=3600', download_output) assert re.search(r'ContentDisposition: *attachment', download_output)