MCPcopy Index your code
hub / github.com/databus23/helm-diff / TestLocalCmdDetailedExitCodeNoChanges

Function TestLocalCmdDetailedExitCodeNoChanges

cmd/local_test.go:188–210  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

186}
187
188func TestLocalCmdDetailedExitCodeNoChanges(t *testing.T) {
189 manifestYAML := `---
190apiVersion: v1
191kind: ConfigMap
192metadata:
193 name: test-config
194 namespace: default
195data:
196 key: value
197`
198 setupFakeHelm(t, "default", manifestYAML, "", "")
199
200 chart1 := t.TempDir()
201 chart2 := t.TempDir()
202
203 cmd := localCmd()
204 cmd.SetArgs([]string{chart1, chart2, "--detailed-exitcode"})
205
206 err := cmd.Execute()
207 if err != nil {
208 t.Errorf("Expected no error when no changes, but got: %v", err)
209 }
210}
211
212func TestLocalCmdNamespace(t *testing.T) {
213 manifestYAML := `---

Callers

nothing calls this directly

Calls 2

setupFakeHelmFunction · 0.85
localCmdFunction · 0.85

Tested by

no test coverage detected