MCPcopy
hub / github.com/databus23/helm-diff / TestConfigMapList

Function TestConfigMapList

manifest/parse_test.go:97–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestConfigMapList(t *testing.T) {
98 spec, err := os.ReadFile("testdata/configmaplist_v1.yaml")
99 require.NoError(t, err)
100
101 require.Equal(t,
102 []string{
103 "default, configmap-2-1, ConfigMap (v1)",
104 "default, configmap-2-2, ConfigMap (v1)",
105 },
106 foundObjects(Parse(spec, "default", false)),
107 )
108}
109
110func TestSecretList(t *testing.T) {
111 spec, err := os.ReadFile("testdata/secretlist_v1.yaml")

Callers

nothing calls this directly

Calls 2

foundObjectsFunction · 0.85
ParseFunction · 0.85

Tested by

no test coverage detected