add rollback unit test

Signed-off-by: ithrael <wh01096045@gmail.com>
pull/12290/head
ithrael 11 months ago
parent db9460cc87
commit 0688046df6

@ -64,6 +64,12 @@ func TestRollbackCmd(t *testing.T) {
cmd: "rollback funny-honey",
golden: "output/rollback-no-revision.txt",
rels: rels,
}, {
name: "rollback a release with non-existent version",
cmd: "rollback funny-honey 3",
golden: "output/rollback-non-existent-version.txt",
rels: rels,
wantError: true,
}, {
name: "rollback a release without release name",
cmd: "rollback",

@ -0,0 +1 @@
Error: release has no 3 version
Loading…
Cancel
Save