add unittest for full json/yaml

Signed-off-by: Gong Yongjie <yong-jie.gong@microfocus.com>
pull/10914/head
Gong Yongjie 3 years ago
parent 1a04b8b659
commit cb338c7092

@ -148,6 +148,16 @@ func TestListCmd(t *testing.T) {
cmd: "list", cmd: "list",
golden: "output/list.txt", golden: "output/list.txt",
rels: releaseFixture, rels: releaseFixture,
}, {
name: "list releases in full yaml format",
cmd: "list --output yaml",
golden: "output/list-full-yaml.txt",
rels: releaseFixture,
}, {
name: "list releases in full json format",
cmd: "list --output json",
golden: "output/list-full-json.txt",
rels: releaseFixture,
}, { }, {
name: "list all releases", name: "list all releases",
cmd: "list --all", cmd: "list --all",

Loading…
Cancel
Save