test: keep delete safety cleanup fixture fresh

This commit is contained in:
pingqiu committed 2026-06-20 16:29:12 -07:00
1 parent 264aa010fe
commit ad2b0fe7b6
1 file changed
+2 -1
+2 -1
View File
@@ -606,12 +606,13 @@ func TestOpsExplainProjectsDeletingCRFromCleanupSummary(t *testing.T) {
t.Setenv("KUBERNETES_SERVICE_HOST", "10.0.0.1")
cleanupSummary := filepath.Join(t.TempDir(), "cleanup-summary.txt")
cleanupObservedAt := time.Now().UTC().Format(time.RFC3339)
if err := os.WriteFile(cleanupSummary, []byte(strings.Join([]string{
"cleanup_status=failed",
"iscsi_residue_count=1",
"failure_count=1",
"reason_codes=iscsi_node_records_present",
"cleanup_observed_at=2026-06-17T08:00:00Z",
"cleanup_observed_at=" + cleanupObservedAt,
}, "\n")), 0o600); err != nil {
t.Fatal(err)
}