test: match cleanup evidence to bundle capture time

This commit is contained in:
pingqiu committed 2026-11-28 13:40:52 -08:00
1 parent c88406df7f
commit 4c7c99cf18
1 file changed
+2 -2
@@ -707,7 +707,7 @@ func TestObservationBundle_DeleteSafetyBlocksWithResidue(t *testing.T) {
}})
mustWrite(t, filepath.Join(dir, ObservationCleanupSummaryArtifact), strings.Join([]string{
"cleanup_status=failed",
"cleanup_observed_at=2026-05-27T12:00:00Z",
"cleanup_observed_at=2026-05-21T12:00:00Z",
"iscsi_residue_count=1",
"reason_codes=iscsi_node_records_present",
}, "\n"))
@@ -922,7 +922,7 @@ func TestObservationBundle_DeleteSafetyReleasableWithCleanCleanupEvidence(t *tes
FrontendAddr: "192.168.1.181:3260",
}},
}})
mustWrite(t, filepath.Join(dir, ObservationCleanupSummaryArtifact), "cleanup_status=ok\ncleanup_observed_at=2026-05-27T12:00:00Z")
mustWrite(t, filepath.Join(dir, ObservationCleanupSummaryArtifact), "cleanup_status=ok\ncleanup_observed_at=2026-05-21T12:00:00Z")
mustWrite(t, filepath.Join(dir, ObservationDeleteSafetyArtifact), strings.Join([]string{
"delete_requested=true",
"finalizer_present=true",