(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestLocalCmdExecution(t *testing.T) { |
| 50 | manifestYAML := `--- |
| 51 | apiVersion: v1 |
| 52 | kind: ConfigMap |
| 53 | metadata: |
| 54 | name: test-config |
| 55 | namespace: default |
| 56 | data: |
| 57 | key: value |
| 58 | ` |
| 59 | setupFakeHelm(t, "default", manifestYAML, "", "") |
| 60 | |
| 61 | chart1 := t.TempDir() |
| 62 | chart2 := t.TempDir() |
| 63 | |
| 64 | cmd := localCmd() |
| 65 | cmd.SetArgs([]string{chart1, chart2}) |
| 66 | |
| 67 | err := cmd.Execute() |
| 68 | if err != nil { |
| 69 | t.Errorf("Expected no error but got: %v", err) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | func TestLocalCmdNoChanges(t *testing.T) { |
| 74 | manifestYAML := `--- |
nothing calls this directly
no test coverage detected