Fixed test case

Signed-off-by: Janario Oliveira <janario.oliveira@gmail.com>
pull/8810/head
Janario Oliveira 5 years ago
parent a8a7d0b3ce
commit 996ce10a00

@ -0,0 +1,9 @@
Release "updeps" has been upgraded. Happy Helming!
NAME: updeps
LAST DEPLOYED: Fri Sep 2 22:04:05 1977
NAMESPACE: default
STATUS: deployed
REVISION: 2
TEST SUITE: None
NOTES:
PARENT NOTES

@ -0,0 +1,9 @@
Release "updeps" does not exist. Installing it now.
NAME: updeps
LAST DEPLOYED: Fri Sep 2 22:04:05 1977
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
PARENT NOTES

@ -0,0 +1,2 @@
Release "nodeps" does not exist. Installing it now.
Error: found in Chart.yaml, but missing in charts/ directory: reqsubchart2

@ -127,13 +127,13 @@ func TestUpgradeCmd(t *testing.T) {
}, },
{ {
name: "install a release with missing dependencies", name: "install a release with missing dependencies",
cmd: fmt.Sprintf("upgrade bonkers-bunny -i '%s'", missingDepsPath), cmd: "upgrade nodeps -i testdata/testcharts/chart-missing-deps",
golden: "output/upgrade-with-install-missing-dependencies.txt", golden: "output/upgrade-with-install-missing-dependencies.txt",
wantError: true, wantError: true,
}, },
{ {
name: "install a release with missing dependencies", name: "install a release with missing dependencies",
cmd: fmt.Sprintf("upgrade bonkers-bunny -i --dependency-update '%s'", missingDepsPath), cmd: "upgrade updeps -i --dependency-update testdata/testcharts/chart-with-subchart-update",
golden: "output/upgrade-with-install-dependency-update.txt", golden: "output/upgrade-with-install-dependency-update.txt",
}, },
{ {
@ -150,8 +150,9 @@ func TestUpgradeCmd(t *testing.T) {
}, },
{ {
name: "upgrade a release with missing dependencies", name: "upgrade a release with missing dependencies",
cmd: fmt.Sprintf("upgrade --dependency-update bonkers-bunny %s", missingDepsPath), cmd: "upgrade updeps --dependency-update testdata/testcharts/chart-with-subchart-update",
golden: "output/upgrade-with-dependency-update.txt", golden: "output/upgrade-with-dependency-update.txt",
rels: []*release.Release{relMock("updeps", 1, ch)},
}, },
{ {
name: "upgrade a release with bad dependencies", name: "upgrade a release with bad dependencies",

Loading…
Cancel
Save