snapshot size in restore CRs only

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2025-10-22 12:41:41 +08:00
parent 2aa319aa30
commit 6dbe772590
14 changed files with 7 additions and 53 deletions
@@ -856,7 +856,6 @@ func TestOnDataUploadCompleted(t *testing.T) {
Source: datapath.AccessPoint{
ByPath: "fake-path",
},
TotalBytes: int64(1000),
},
})
updatedDu := &velerov2alpha1api.DataUpload{}
@@ -865,7 +864,6 @@ func TestOnDataUploadCompleted(t *testing.T) {
assert.False(t, updatedDu.Status.CompletionTimestamp.IsZero())
assert.Equal(t, "fake-id", updatedDu.Status.SnapshotID)
assert.Equal(t, "fake-path", updatedDu.Status.Path)
assert.Equal(t, int64(1000), updatedDu.Status.SnapshotSize)
}
func TestFindDataUploadForPod(t *testing.T) {