(t *testing.T)
| 264 | } |
| 265 | |
| 266 | func TestLoadV31(t *testing.T) { |
| 267 | actual, err := loadYAML(` |
| 268 | version: "3.1" |
| 269 | services: |
| 270 | foo: |
| 271 | image: busybox |
| 272 | secrets: [super] |
| 273 | secrets: |
| 274 | super: |
| 275 | external: true |
| 276 | `) |
| 277 | assert.NilError(t, err) |
| 278 | assert.Check(t, is.Len(actual.Services, 1)) |
| 279 | assert.Check(t, is.Len(actual.Secrets, 1)) |
| 280 | } |
| 281 | |
| 282 | func TestLoadV33(t *testing.T) { |
| 283 | actual, err := loadYAML(` |