Skip to content

Commit

Permalink
add new snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Mar 13, 2024
1 parent a5dd67a commit ece7322
Show file tree
Hide file tree
Showing 2 changed files with 338 additions and 0 deletions.
169 changes: 169 additions & 0 deletions crates/core/tests/snapshots/integration__backup-tar-tree-nix.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
---
source: crates/core/tests/integration.rs
expression: tree
---
Tree {
nodes: [
Node {
name: "empty-file",
node_type: File,
meta: Metadata {
mode: Some(
420,
),
mtime: Some(
2014-11-30T15:03:11+00:00,
),
atime: Some(
2014-11-30T15:03:11+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67866,
device_id: 2065,
size: 0,
links: 1,
extended_attributes: [],
},
content: Some(
[],
),
subtree: None,
},
Node {
name: "testfile",
node_type: File,
meta: Metadata {
mode: Some(
420,
),
mtime: Some(
2014-08-09T12:14:20+00:00,
),
atime: Some(
2014-08-09T12:14:20+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67861,
device_id: 2065,
size: 21,
links: 2,
extended_attributes: [],
},
content: Some(
[
649b8b471e7d7bc175eec758a7006ac693c434c8297c07db15286788c837154a,
],
),
subtree: None,
},
Node {
name: "testfile-hardlink",
node_type: File,
meta: Metadata {
mode: Some(
420,
),
mtime: Some(
2014-08-09T12:14:20+00:00,
),
atime: Some(
2014-08-09T12:14:20+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67861,
device_id: 2065,
size: 21,
links: 2,
extended_attributes: [],
},
content: Some(
[
649b8b471e7d7bc175eec758a7006ac693c434c8297c07db15286788c837154a,
],
),
subtree: None,
},
Node {
name: "testfile-symlink",
node_type: Symlink {
linktarget: "testfile",
linktarget_raw: None,
},
meta: Metadata {
mode: Some(
134218239,
),
mtime: Some(
2014-08-09T12:14:28+00:00,
),
atime: Some(
2014-08-09T12:14:28+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67873,
device_id: 2065,
size: 8,
links: 1,
extended_attributes: [],
},
content: None,
subtree: None,
},
],
}
169 changes: 169 additions & 0 deletions crates/core/tests/snapshots/integration__dryrun-tar-tree-nix.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
---
source: crates/core/tests/integration.rs
expression: tree
---
Tree {
nodes: [
Node {
name: "empty-file",
node_type: File,
meta: Metadata {
mode: Some(
420,
),
mtime: Some(
2014-11-30T15:03:11+00:00,
),
atime: Some(
2014-11-30T15:03:11+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67865,
device_id: 2065,
size: 0,
links: 1,
extended_attributes: [],
},
content: Some(
[],
),
subtree: None,
},
Node {
name: "testfile",
node_type: File,
meta: Metadata {
mode: Some(
420,
),
mtime: Some(
2014-08-09T12:14:20+00:00,
),
atime: Some(
2014-08-09T12:14:20+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67860,
device_id: 2065,
size: 21,
links: 2,
extended_attributes: [],
},
content: Some(
[
649b8b471e7d7bc175eec758a7006ac693c434c8297c07db15286788c837154a,
],
),
subtree: None,
},
Node {
name: "testfile-hardlink",
node_type: File,
meta: Metadata {
mode: Some(
420,
),
mtime: Some(
2014-08-09T12:14:20+00:00,
),
atime: Some(
2014-08-09T12:14:20+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67860,
device_id: 2065,
size: 21,
links: 2,
extended_attributes: [],
},
content: Some(
[
649b8b471e7d7bc175eec758a7006ac693c434c8297c07db15286788c837154a,
],
),
subtree: None,
},
Node {
name: "testfile-symlink",
node_type: Symlink {
linktarget: "testfile",
linktarget_raw: None,
},
meta: Metadata {
mode: Some(
134218239,
),
mtime: Some(
2014-08-09T12:14:28+00:00,
),
atime: Some(
2014-08-09T12:14:28+00:00,
),
ctime: Some(
2024-03-13T00:51:39.490651139+00:00,
),
uid: Some(
1001,
),
gid: Some(
127,
),
user: Some(
"runner",
),
group: Some(
"docker",
),
inode: 67867,
device_id: 2065,
size: 8,
links: 1,
extended_attributes: [],
},
content: None,
subtree: None,
},
],
}

0 comments on commit ece7322

Please sign in to comment.