-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly finish progress bar in Repository::get_snapshot_group (#…
…263) Also adds a few more integration tests for snapshot gathering methods. --------- Co-authored-by: simonsan <[email protected]>
- Loading branch information
Showing
16 changed files
with
574 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 142 additions & 0 deletions
142
crates/core/tests/snapshots/integration__backup-tar-groups-nix.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
--- | ||
source: crates/core/tests/integration.rs | ||
expression: snap | ||
--- | ||
[ | ||
(SnapshotGroup( | ||
tags: Some(StringList([])), | ||
), [ | ||
SnapshotFile( | ||
time: "[time]", | ||
program_version: "rustic [rustic_core_version]", | ||
tree: "[tree_id]", | ||
paths: StringList([ | ||
"test", | ||
]), | ||
hostname: "[hostname]", | ||
username: "", | ||
uid: 0, | ||
gid: 0, | ||
tags: StringList([]), | ||
original: "[original]", | ||
summary: Some(SnapshotSummary( | ||
files_new: 73, | ||
files_changed: 0, | ||
files_unmodified: 0, | ||
total_files_processed: 73, | ||
total_bytes_processed: 1125674, | ||
dirs_new: 6, | ||
dirs_changed: 0, | ||
dirs_unmodified: 0, | ||
total_dirs_processed: 6, | ||
total_dirsize_processed: "[total_dirsize_processed]", | ||
data_blobs: 70, | ||
tree_blobs: 6, | ||
data_added: "[data_added]", | ||
data_added_packed: "[data_added_packed]", | ||
data_added_files: 1125653, | ||
data_added_files_packed: 78740, | ||
data_added_trees: "[data_added_trees]", | ||
data_added_trees_packed: "[data_added_trees_packed]", | ||
command: "[command]", | ||
backup_start: "[backup_start]", | ||
backup_end: "[backup_end]", | ||
backup_duration: "[backup_duration]", | ||
total_duration: "[total_duration]", | ||
)), | ||
id: "[id]", | ||
), | ||
SnapshotFile( | ||
time: "[time]", | ||
program_version: "rustic [rustic_core_version]", | ||
parent: "[some]", | ||
tree: "[tree_id]", | ||
paths: StringList([ | ||
"test", | ||
]), | ||
hostname: "[hostname]", | ||
username: "", | ||
uid: 0, | ||
gid: 0, | ||
tags: StringList([]), | ||
original: "[original]", | ||
summary: Some(SnapshotSummary( | ||
files_new: 0, | ||
files_changed: 0, | ||
files_unmodified: 73, | ||
total_files_processed: 73, | ||
total_bytes_processed: 1125682, | ||
dirs_new: 0, | ||
dirs_changed: 0, | ||
dirs_unmodified: 6, | ||
total_dirs_processed: 6, | ||
total_dirsize_processed: "[total_dirsize_processed]", | ||
data_blobs: 0, | ||
tree_blobs: 0, | ||
data_added: "[data_added]", | ||
data_added_packed: "[data_added_packed]", | ||
data_added_files: 0, | ||
data_added_files_packed: 0, | ||
data_added_trees: "[data_added_trees]", | ||
data_added_trees_packed: "[data_added_trees_packed]", | ||
command: "[command]", | ||
backup_start: "[backup_start]", | ||
backup_end: "[backup_end]", | ||
backup_duration: "[backup_duration]", | ||
total_duration: "[total_duration]", | ||
)), | ||
id: "[id]", | ||
), | ||
]), | ||
(SnapshotGroup( | ||
tags: Some(StringList([ | ||
"a", | ||
"b", | ||
])), | ||
), [ | ||
SnapshotFile( | ||
time: "[time]", | ||
program_version: "rustic [rustic_core_version]", | ||
parent: "[some]", | ||
tree: "[tree_id]", | ||
paths: StringList([ | ||
"test", | ||
]), | ||
hostname: "[hostname]", | ||
username: "", | ||
uid: 0, | ||
gid: 0, | ||
tags: StringList([ | ||
"a", | ||
"b", | ||
]), | ||
original: "[original]", | ||
summary: Some(SnapshotSummary( | ||
files_new: 0, | ||
files_changed: 0, | ||
files_unmodified: 73, | ||
total_files_processed: 73, | ||
total_bytes_processed: 1125682, | ||
dirs_new: 0, | ||
dirs_changed: 0, | ||
dirs_unmodified: 6, | ||
total_dirs_processed: 6, | ||
total_dirsize_processed: "[total_dirsize_processed]", | ||
data_blobs: 0, | ||
tree_blobs: 0, | ||
data_added: "[data_added]", | ||
data_added_packed: "[data_added_packed]", | ||
data_added_files: 0, | ||
data_added_files_packed: 0, | ||
data_added_trees: "[data_added_trees]", | ||
data_added_trees_packed: "[data_added_trees_packed]", | ||
command: "[command]", | ||
backup_start: "[backup_start]", | ||
backup_end: "[backup_end]", | ||
backup_duration: "[backup_duration]", | ||
total_duration: "[total_duration]", | ||
)), | ||
id: "[id]", | ||
), | ||
]), | ||
] |
Oops, something went wrong.