(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestDiff(t *testing.T) { |
| 201 | type flags struct { |
| 202 | skipNeeds bool |
| 203 | includeNeeds bool |
| 204 | noHooks bool |
| 205 | } |
| 206 | |
| 207 | testcases := []struct { |
| 208 | name string |
| 209 | loc string |
| 210 | ns string |
| 211 | concurrency int |
| 212 | skipDiffOnInstall bool |
| 213 | detailedExitcode bool |
| 214 | error string |
| 215 | flags flags |
| 216 | files map[string]string |
| 217 | selectors []string |
| 218 | lists map[exectest.ListKey]string |
| 219 | diffs map[exectest.DiffKey]error |
| 220 | upgraded []exectest.Release |
| 221 | deleted []exectest.Release |
| 222 | log string |
| 223 | overrideContext string |
| 224 | }{ |
| 225 | // |
| 226 | // complex test cases for smoke testing |
| 227 | // |
| 228 | { |
| 229 | name: "smoke", |
| 230 | loc: location(), |
| 231 | files: map[string]string{ |
| 232 | "/path/to/helmfile.yaml": ` |
| 233 | releases: |
| 234 | - name: database |
| 235 | chart: charts/mysql |
| 236 | needs: |
| 237 | - logging |
| 238 | - name: frontend-v1 |
| 239 | chart: charts/frontend |
| 240 | installed: false |
| 241 | needs: |
| 242 | - servicemesh |
| 243 | - logging |
| 244 | - backend-v1 |
| 245 | - name: frontend-v2 |
| 246 | chart: charts/frontend |
| 247 | needs: |
| 248 | - servicemesh |
| 249 | - logging |
| 250 | - backend-v2 |
| 251 | - name: frontend-v3 |
| 252 | chart: charts/frontend |
| 253 | needs: |
| 254 | - servicemesh |
| 255 | - logging |
| 256 | - backend-v2 |
| 257 | - name: backend-v1 |
nothing calls this directly
no test coverage detected