MCPcopy Index your code
hub / github.com/devspace-sh/devspace / TestHelmDownload

Function TestHelmDownload

pkg/devspace/pipeline/engine/engine_test.go:123–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestHelmDownload(t *testing.T) {
124 stdout := &bytes.Buffer{}
125 stderr := &bytes.Buffer{}
126 err := ExecuteSimpleShellCommand(context.Background(), ".", expand.ListEnviron(os.Environ()...), stdout, stderr, nil, "helm")
127 if err != nil {
128 t.Fatal(err)
129 }
130 stdout1 := &bytes.Buffer{}
131 err = ExecuteSimpleShellCommand(context.Background(), ".", expand.ListEnviron(os.Environ()...), stdout1, stderr, nil, "helm version")
132 if err != nil {
133 t.Fatal(err)
134 }
135 assert.Assert(t, strings.Contains(stdout1.String(), `Version:"v3`))
136}

Callers

nothing calls this directly

Calls 4

StringMethod · 0.95
EnvironMethod · 0.65
FatalMethod · 0.45

Tested by

no test coverage detected