(t *testing.T)
| 280 | } |
| 281 | |
| 282 | func TestLoadV33(t *testing.T) { |
| 283 | actual, err := loadYAML(` |
| 284 | version: "3.3" |
| 285 | services: |
| 286 | foo: |
| 287 | image: busybox |
| 288 | credential_spec: |
| 289 | file: "/foo" |
| 290 | configs: [super] |
| 291 | configs: |
| 292 | super: |
| 293 | external: true |
| 294 | `) |
| 295 | assert.NilError(t, err) |
| 296 | assert.Assert(t, is.Len(actual.Services, 1)) |
| 297 | assert.Check(t, is.Equal(actual.Services[0].CredentialSpec.File, "/foo")) |
| 298 | assert.Assert(t, is.Len(actual.Configs, 1)) |
| 299 | } |
| 300 | |
| 301 | func TestLoadV38(t *testing.T) { |
| 302 | actual, err := loadYAML(` |