(t *testing.T)
| 140 | } |
| 141 | |
| 142 | func TestGetValues_Run_EmptyValues(t *testing.T) { |
| 143 | cfg := actionConfigFixture(t) |
| 144 | client := NewGetValues(cfg) |
| 145 | |
| 146 | releaseName := "test-release" |
| 147 | |
| 148 | rel := &release.Release{ |
| 149 | Name: releaseName, |
| 150 | Info: &release.Info{ |
| 151 | Status: common.StatusDeployed, |
| 152 | }, |
| 153 | Chart: &chart.Chart{ |
| 154 | Metadata: &chart.Metadata{ |
| 155 | Name: "test-chart", |
| 156 | Version: "1.0.0", |
| 157 | }, |
| 158 | }, |
| 159 | Config: map[string]any{}, |
| 160 | Version: 1, |
| 161 | Namespace: "default", |
| 162 | } |
| 163 | |
| 164 | require.NoError(t, cfg.Releases.Create(rel)) |
| 165 | |
| 166 | result, err := client.Run(releaseName) |
| 167 | require.NoError(t, err) |
| 168 | assert.Equal(t, map[string]any{}, result) |
| 169 | } |
| 170 | |
| 171 | func TestGetValues_Run_UnreachableKubeClient(t *testing.T) { |
| 172 | cfg := actionConfigFixture(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…