MCPcopy Create free account
hub / github.com/helm/helm / TestPostRenderer

Function TestPostRenderer

internal/plugin/loader_test.go:168–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

166}
167
168func TestPostRenderer(t *testing.T) {
169 dirname := "testdata/plugdir/good/postrenderer-v1"
170
171 expect := Metadata{
172 Name: "postrenderer-v1",
173 Version: "1.2.3",
174 Type: "postrenderer/v1",
175 APIVersion: "v1",
176 Runtime: "subprocess",
177 Config: &schema.ConfigPostRendererV1{},
178 RuntimeConfig: &RuntimeConfigSubprocess{
179 PlatformCommand: []PlatformCommand{
180 {
181 Command: "${HELM_PLUGIN_DIR}/sed-test.sh",
182 },
183 },
184 },
185 }
186
187 plug, err := LoadDir(dirname)
188 require.NoError(t, err)
189 assert.Equal(t, dirname, plug.Dir())
190 assert.Equal(t, expect, plug.Metadata())
191}
192
193func TestDetectDuplicates(t *testing.T) {
194 plugs := []Plugin{

Callers

nothing calls this directly

Calls 3

LoadDirFunction · 0.70
DirMethod · 0.65
MetadataMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…