Files
velero/changelogs/unreleased
RalthosandGitHub 105350b78b Make restore logs testable by returning errors (#10234)
pkg/cmd/cli/restore/logs.go was the last command in the CLI still calling
cmd.Exit, which calls os.Exit directly. Two of its own tests were skipped
because of it, and said so:

    t.Skip("Cannot test restore not complete case due to cmd.Exit() call")

This gives restore logs the LogsOptions shape that backup logs already
uses: Complete, BindFlags and Run returning an error, with the cobra
command passing that to cmd.CheckError. Both skipped tests now run and
assert on the returned errors.

Exit status is unchanged; cmd.CheckError also exits 1. The two refusal
messages now carry the standard "An error occurred:" prefix and match
the wording backup logs uses.

Signed-off-by: saral <ilovegojo2580@gmail.com>
2026-08-11 14:33:02 -04:00
..
2026-02-24 23:17:03 +08:00
2026-03-02 10:49:14 +11:00
2026-03-19 02:38:11 +05:30
2026-03-24 20:49:16 +05:30
2026-04-17 15:38:44 +08:00
2026-04-21 14:14:24 +08:00
2026-04-28 03:11:49 -04:00
2026-05-22 06:26:40 +00:00
2026-05-27 14:59:16 +08:00
2026-05-28 14:41:54 +08:00
2026-06-03 13:23:08 +08:00
2026-06-16 17:47:21 +08:00
2026-06-18 15:39:44 +08:00
2026-07-11 10:09:39 +08:00
2026-07-17 16:35:19 +08:00