@@ -106,6 +106,11 @@ func incrementalBackupTestSuite() {
106106 Expect (err ).NotTo (HaveOccurred (), "stderr: " + string (stderr ))
107107 Expect (rawImageData ).To (Equal (dataOnFullBackup ), "Data in raw.img does not match the expected data" )
108108
109+ By ("verifying the existence of checksum files" )
110+ rawChecksumPath := filepath .Join (volumePath , "raw.img.csum" )
111+ _ , stderr , err = minikubeSSH (nodes [0 ], nil , "test" , "-f" , rawChecksumPath )
112+ Expect (err ).NotTo (HaveOccurred (), "raw.img.csum should exist. stderr: " + string (stderr ))
113+
109114 By ("verifying the existence of the diff file" )
110115 Expect (ctrlClient .Get (ctx , client .ObjectKeyFromObject (finbackup2 ), finbackup2 )).NotTo (HaveOccurred ())
111116 _ , stderr , err = minikubeSSH (nodes [0 ], nil ,
@@ -226,14 +231,19 @@ func incrementalBackupTestSuite() {
226231 err = ctrlClient .Get (ctx , client .ObjectKeyFromObject (finbackup2 ), & dummy )
227232 Expect (err ).NotTo (HaveOccurred ())
228233
229- By ("verifying the non-existence of the diff file" )
234+ By ("verifying the non-existence of the diff file and its checksum " )
230235 Expect (ctrlClient .Get (ctx , client .ObjectKeyFromObject (finbackup2 ), finbackup2 )).NotTo (HaveOccurred ())
231236 var stderr []byte
232237 _ , stderr , err = minikubeSSH (nodes [0 ], nil ,
233238 "ls" , filepath .Join (volumePath , "diff" , strconv .Itoa (* finbackup2 .Status .SnapID ), "part-0" ))
234- Expect (err ).To (HaveOccurred (), "stderr: " + string (stderr ), "diff file does not exist" )
239+ Expect (err ).To (HaveOccurred (), "stderr: " + string (stderr ), "diff file should not exist" )
235240 ExpectDiffChecksumNotExists (nodes [0 ], finbackup2 , pvc )
236241
242+ By ("verifying raw.img.csum still exists after merge" )
243+ rawChecksumPath := filepath .Join (volumePath , "raw.img.csum" )
244+ _ , stderr , err = minikubeSSH (nodes [0 ], nil , "test" , "-f" , rawChecksumPath )
245+ Expect (err ).NotTo (HaveOccurred (), "raw.img.csum should still exist after merge. stderr: " + string (stderr ))
246+
237247 By ("verifying the data in raw.img as incremental backup" )
238248 var rawImageData []byte
239249 rawImageData , stderr , err = minikubeSSH (nodes [0 ], nil ,
0 commit comments